1. 25 Jun, 2017 2 commits
  2. 24 Jun, 2017 13 commits
  3. 23 Jun, 2017 2 commits
    • Eli Zaretskii's avatar
      Fix background color beyond EOB and cursor display · bbaf2f3d
      Eli Zaretskii authored
      * src/xdisp.c: 	(maybe_produce_line_number): Use the default face
      for background of the blank glyphs in the line-number area which
      are drawn beyond EOB.
      (display_line): Reset the glyph row's displays_text_p flag only on
      empty lines that don't display line numbers.  This fixes cursor
      display beyond EOB.  Fix the bidi information in the glyphs
      produced for line numbers.  Set the avoid_cursor_p flag of glyphs
      produced for line numbers.
      bbaf2f3d
    • Eli Zaretskii's avatar
      Fix display of indicate-empty-lines when line numbers are displayed · d4eddb08
      Eli Zaretskii authored
      * src/xdisp.c (row_text_area_empty): New function.
      (display_line): Call row_text_area_empty to verify that a glyph
      row's text area is devoid of any glyphs that came from a buffer or
      a string.  This fixes a bug with empty-lines indication
      disappearing when line numbers or line-prefix are displayed.
      (display_line): Delete the argument FORCE; all callers changed.
      Remove the condition for actually producing the glyphs for the
      line number, as even if the number didn't change we need to
      produce empty space.
      d4eddb08
  4. 17 Jun, 2017 1 commit
    • Eli Zaretskii's avatar
      Finish up native display of line numbers · 7277c0fc
      Eli Zaretskii authored
      * src/xdisp.c (maybe_produce_line_number): Produce a blank before
      the number, for R2L rows.  Increment 'g' in the loop even if
      glyph_row is NULL.  Accept 2nd argument FORCE and produce the
      line-number glyphs if it is non-zero.
      (move_it_in_display_line_to): Account for the space taken by the
      line-number glyphs.  Call maybe_produce_line_number with 2nd
      argument non-zero.
      (set_cursor_from_row): Fix calculation of cursor X coordinate in
      R2L rows with display-produced glyphs at the beginning.
      (syms_of_xdisp) <line-number>: New face symbol.
      <relative, display-line-width>: New symbols.
      (maybe_produce_line_number): Use the line-number face for
      displaying line numbers.  Support relative line-number display.
      Support user-defined width for displaying line numbers.
      (try_cursor_movement, try_window_id): Disable these optimizations
      when displaying relative line numbers.
      * src/dispextern.h (struct it): New member 'pt_lnum'.
      
      * lisp/faces.el (line-number): New face.
      * lisp/cus-start.el (standard): Provide customization forms for
      display-line-numbers and display-line-width.
      * lisp/menu-bar.el (menu-bar-showhide-menu): Add menu-bar item to
      turn display-line-numbers on and off.
      
      * etc/NEWS: Document the new feature.
      7277c0fc
  5. 16 Jun, 2017 1 commit
    • Eli Zaretskii's avatar
      Initial version of native display of line numbers · daf78963
      Eli Zaretskii authored
      * src/xdisp.c (syms_of_xdisp) <display-line-numbers>: New
      buffer-local variable.
      Include <math.h>.
      (maybe_produce_line_number): New function.
      (DISP_INFINITY): Rename from INFINITY, since math.h defines INFINITY.
      (try_window_reusing_current_matrix): Don't use this method when
      display-line-numbers is in effect.
      * src/dispextern.h (struct it): New members 'lnum'.
      daf78963
  6. 15 Jun, 2017 5 commits
    • Alan Mackenzie's avatar
      Create a toggle between block and line comments in CC Mode. · 7a2038d7
      Alan Mackenzie authored
      Also (unrelated change) initialize the modes' keymaps at each loading.
      
      * lisp/progmodes/cc-cmds.el (c-update-modeline): amend for the new information
      on the modeline.
      (c-block-comment-flag): New variable.
      (c-toggle-comment-style): New function.
      
      * lisp/progmodes/cc-langs.el (c-block-comment-starter)
      (c-line-comment-starter): Make them c-lang-defvars.
      (c-block-comment-is-default): New c-lang-defvar.
      (comment-start, comment-end): Make the default values dependent on
      c-block-comment-is-default.
      
      * lisp/progmodes/cc-mode.el (c-mode-base-map): Define C-c C-k in this map.
      (c-basic-common-init): Initialize c-block-comment-flag.
      (c-mode-map, c++-mode-map, objc-mode-map, java-mode-map, idl-mode-map)
      (pike-mode-map, awk-mode-map): Make entries in these key maps each time the
      mode is loaded rather than just once per Emacs session.
      
      * doc/misc/cc-mode.texi (Comment Commands): Introduce the notion of comment
      style.
      (Minor Modes): Define comment style.  Describe how comment style influences
      the information displayed on the modeline.  Document c-toggle-comment-style.
      (FAQ): Add a question about toggling the comment style.
      7a2038d7
    • Paul Eggert's avatar
      Pacify clang without munging C source · 21d10e59
      Paul Eggert authored
      * configure.ac (WARN_CFLAGS): With Clang, use
      -Wno-tautological-compare regardless of --enable-gcc-warnings.
      (WERROR_CFLAGS): Simplify assignments, and guarantee it’s always set.
      * lib/strftime.c: Copy from gnulib, reverting Clang-specific
      change which I hope is no longer needed.
      * src/emacs.c (main): Revert rlim_t change, as rlim_t is signed on
      some older non-POSIX hosts.
      21d10e59
    • Paul Eggert's avatar
      No need to complicate make-docfile.c for Clang · 2b9620e6
      Paul Eggert authored
      * lib-src/make-docfile.c (put_filename): Undo recent change.
      The Clang false alarm occurs only with CFLAGS=-save-temps and
      we needn’t worry about pacifying unusual compiler configurations.
      2b9620e6
    • Paul Eggert's avatar
      Port './configure CC=clang' to Fedora 25 · 1ac8c9bb
      Paul Eggert authored
      * configure.ac (HAVE_IMAGEMAGICK): Disable if even a
      standard function like MagickRelinquishMemory does not link.
      1ac8c9bb
    • Paul Eggert's avatar
      Don’t worry about __STDC_VERSION__ in emacs-module · ebdcfa96
      Paul Eggert authored
      * src/emacs-module.h: Remove __STDC_VERSION__ check.  In the past
      we’ve found that some compilers do not define this symbol even
      when they work well enough.  If necessary features like stdbool.h
      are missing the compiler will complain eventually anyway.
      ebdcfa96
  7. 14 Jun, 2017 13 commits
  8. 13 Jun, 2017 3 commits