1. 19 May, 2017 20 commits
  2. 18 May, 2017 5 commits
    • Eli Zaretskii's avatar
      Support hscrolling only the current line · 064b92d6
      Eli Zaretskii authored
      * src/xdisp.c (hscrolling_current_line_p): New function.
      (init_iterator): If auto-hscrolling just the current line, don't
      increment the iterator's first_visible_x and last_visible_x
      variables.
      (hscroll_window_tree): Recompute window's hscroll when moving
      vertically to another screen line.
      (redisplay_window): If we are hscrolling only the current line,
      disable the optimizations that rely on the current matrix being
      up-to-date.
      (display_line): Accept an additional argument CURSOR_VPOS, the
      vertical position of the current screen line which might need
      hscrolling; all callers changed.  Compute first_visible_x and
      last_visible_x specially when auto-hscrolling current line, by
      repeating the calculation that is done in init_iterator in other
      modes.
      (syms_of_xdisp) <auto-hscroll-mode>: No longer boolean, it can now
      accept a 3rd value 'current-line, to turn on the mode where
      only the current line is hscrolled.
      
      * etc/NEWS: Mention the new auto-hscroll-mode value.
      064b92d6
    • Eli Zaretskii's avatar
      Fix last change in line-move-finish · f6816a65
      Eli Zaretskii authored
      * lisp/simple.el (line-move-finish): Fix last change.  This corrects a
      regression in C-n and C-p when lines are truncated, introduced by the
      change in 2017-05-10.
      f6816a65
    • Simen Heggestøyl's avatar
      Expand docstring for CSS mode · 8deef1d6
      Simen Heggestøyl authored
      * lisp/textmodes/css-mode.el (css-completion-at-point, css-mode):
      Expand docstrings.
      8deef1d6
    • Tino Calancha's avatar
      Use the expression angle units while simplifying it · c48e5392
      Tino Calancha authored
      Don't use the angle mode, use the angle units included
      in the expression instead (Bug#23889).
      * lisp/calc/calc-alg.el (calc-input-angle-units): New defun.
      (math-simplify): Use it.
      * lisp/calc/calc-forms.el (math-to-hms, math-from-hms):
      Don't use calc-angle-mode if math-simplifying-units is non-nil.
      * lisp/calc/calc-math.el (calcFunc-nroot, math-from-radians)
      (math-to-radians-2, math-from-radians-2): Don't convert angle
      to radians if math-simplifying-units is non-nil.
      * test/lisp/calc/calc-tests.el (test-calc-23889): Add test.
      c48e5392
    • Tino Calancha's avatar
      Revert "Ignore angle mode while simplifying units" · eab1a630
      Tino Calancha authored
      This reverts commit 713e9222.
      This commit causes Bug#25652.
      eab1a630
  3. 17 May, 2017 9 commits
  4. 16 May, 2017 6 commits
    • Paul Eggert's avatar
      Fix minor timezone memory leak · f7c07930
      Paul Eggert authored
      * src/editfns.c (wall_clock_tz): Remove; unused.
      f7c07930
    • Paul Eggert's avatar
      Do not discard AddressSanitizer stderr · 69d0a850
      Paul Eggert authored
      * src/emacs.c (close_output_streams) [ADDRESS_SANITIZER]:
      Do not close stderr.
      69d0a850
    • Paul Eggert's avatar
      Simplify procname code to avoid GCC bug · be9e60fc
      Paul Eggert authored
      * src/process.c (server_accept_connection): Simplify and avoid
      multiple calls and struct literals in the last case of a switch.
      The old code ran afoul of GCC bug 80659, which caused an internal
      compiler error.  Problem reported by Jim Meyering in:
      http://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00182.html
      https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80659
      be9e60fc
    • Paul Eggert's avatar
      Pacify GCC 7 with --enable-gcc-warnings · c4ac34f2
      Paul Eggert authored
      * src/regex.c (regex_compile): Swap labels, so that the
      FALLTHROUGH immediately precedes the case label.
      c4ac34f2
    • Paul Eggert's avatar
      Merge with gnulib, pacifying GCC 7 · 2e1bebe2
      Paul Eggert authored
      This incorporates:
      2017-05-16 manywarnings: update for GCC 7
      2017-05-15 sys_select: Avoid "was expanded before it was required"
      * configure.ac (nw): Suppress GCC 7’s new -Wduplicated-branches and
      -Wformat-overflow=2 options, due to too many false alarms.
      * doc/misc/texinfo.tex, lib/strftime.c, m4/manywarnings.m4:
      Copy from gnulib.
      * m4/gnulib-comp.m4: Regenerate.
      * src/coding.c (decode_coding_iso_2022):
      Fix bug uncovered by -Wimplicit-fallthrough.
      * src/conf_post.h (FALLTHROUGH): New macro.
      Use it to mark all switch cases that fall through.
      * src/editfns.c (styled_format): Use !, not ~, on bool.
      * src/gtkutil.c (xg_check_special_colors):
      When using sprintf, don’t trust Gtk to output colors in [0, 1] range.
      (xg_update_scrollbar_pos): Avoid use of possibly-uninitialized bool;
      this bug was actually caught by Clang.
      * src/search.c (boyer_moore):
      Tell GCC that CHAR_BASE, if nonzero, must be a non-ASCII character.
      * src/xterm.c (x_draw_glyphless_glyph_string_foreground):
      Tell GCC that glyph->u.glyphless.ch must be a character.
      2e1bebe2
    • Michael Albinus's avatar
      Make autoloading Tramp more robust · 138c8256
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-file-name-for-operation):
      Use `default-directory' where appropriate.
      (tramp-file-name-handler): Do not autoload.
      (tramp-autoload-file-name-handler): Reintroduce function.
      (tramp-register-autoload-file-name-handlers): Use it.
      138c8256