1. 01 Dec, 2016 6 commits
    • Eli Zaretskii's avatar
    • Helmut Eller's avatar
      Forth related improvements for etags · bb8e3827
      Helmut Eller authored
      Generate correct tags names for things like "(foo)".
      Previously "(foo" created.
      Fix a bug where a tag for "-bar" was created when encountering things
      like "create-bar".
      Recognize more words from the Forth-2012 Standard.
      * lib-src/etags.c (Forth_words): Check for whitespace after defining
      words.  Create tag with make_tag instead of get_tag to avoid notiname
      which isn't appropriate for Forth.
      * test/manual/etags/forth-src/test-forth.fth: Add some test cases.
      * test/manual/etags/ETAGS.good_1:
      * test/manual/etags/ETAGS.good_2:
      * test/manual/etags/ETAGS.good_3:
      * test/manual/etags/ETAGS.good_4:
      * test/manual/etags/ETAGS.good_5:
      * test/manual/etags/ETAGS.good_6:
      * test/manual/etags/CTAGS.good: Adapt to the changes in etags.c and
      new test cases.
    • Eli Zaretskii's avatar
      Fix bugs with buffer-local tags tables · 2f68cb3e
      Eli Zaretskii authored
      * lisp/progmodes/etags.el (visit-tags-table): After
      'visit-tags-table-buffer' returns, retrieve the value of
      'tags-file-name' from the buffer we started in.  Force
      recomputation of 'tags-completion-table' next time it is used,
      since the list of tags table has changed.
      (visit-tags-table-buffer): Accept an additional optional argument
      CBUF, the buffer in which to start processing, and switch to that
      buffer if CBUF is non-nil.  All callers changed to supply a
      non-nil CBUF when they call 'visit-tags-table-buffer' in a loop.
      Doc fix.
      (tags-completion-table): Accept an optional argument, the buffer
      for which to build 'tags-completion-table', and build that
      buffer's completion table.
      (tags-lazy-completion-table): Pass the current buffer to
      (tags-file-name): Don't say in the doc string that setting this
      variable directly is enough; say that 'visit-tags-table' should be
      used for that.  (Bug#158)  (Bug#17326)  (Bug#23164)
      * doc/emacs/maintaining.texi (Select Tags Table): Delete the
      advice to set 'tags-file-name' directly.
      * test/lisp/progmodes/etags-tests.el: New tests.
    • Glenn Morris's avatar
      ; Auto-commit of loaddefs files. · 7d35b3d3
      Glenn Morris authored
    • Paul Eggert's avatar
      * src/lisp.h (LISP_INITIALLY_ZERO): Remove. · 04355cb5
      Paul Eggert authored
      All uses replaced by LISPSYM_INITIALLY.
    • Paul Eggert's avatar
      Make Cairo safer for --enable-gcc-warnings · fccd7d3c
      Paul Eggert authored
      * src/image.c (xcolor_to_argb32, pbm_load, jpeg_load_body, gif_load):
      Avoid overflow warnings about ‘0xff << 24’.
      (xpm_load, gif_load): Avoid unnecessary casts.
      (gif_load): Fewer ifdefs.
  2. 30 Nov, 2016 1 commit
  3. 29 Nov, 2016 9 commits
    • Noam Postavsky's avatar
      Fix previous commit · a283d655
      Noam Postavsky authored
      * lisp/vc/diff-mode.el (diff-refine-hunk): Make sure to go to beginning
      of hunk before calling `diff-hunk-style'.
    • Noam Postavsky's avatar
    • Glenn Morris's avatar
      Use archive-mode for .cbr files · fa525b7d
      Glenn Morris authored
      * lisp/files.el (auto-mode-alist): Add cbr.  (Bug#24994)
    • Paul Eggert's avatar
      Pacify Sun C 5.14 · 36dbdede
      Paul Eggert authored
      * src/lisp.h (enum Lisp_Save_Type): Put SAVE_UNUSED,
      into this enum rather than into an anonymous enum.  This avoids
      diagnostics from Sun C 5.14 and is a bit clearer anyway.
    • Paul Eggert's avatar
      Adjust lwlib to recent config.h change · 9221b77c
      Paul Eggert authored
      * lwlib/lwlib-Xaw.c: Include <stdlib.h> for 'abort' (Bug#24506).
    • Paul Eggert's avatar
    • Michael Albinus's avatar
      Improve user retrieval from auth-source in Tramp · bb4212d1
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-read-passwd, tramp-clear-passwd):
      Use user for auth-source request only in case it exists.
    • Katsumi Yamaoka's avatar
      shr.el: Don't render a normal table twice · e42b964c
      Katsumi Yamaoka authored
      * lisp/net/shr.el (shr-collect-extra-strings-in-table):
      Don't render a table if it is called for the first time,
      IOW, recognize it to never be invalid (bug#25051).
    • Dima Kogan's avatar
      Improve diff-mode navigation/manipulation · 2c8a7e50
      Dima Kogan authored
      This is Bug #17544.
      Navigation and use of diff buffers had several annoying corner cases
      that this patch fixes.  These corner cases were largely due to
      inconsistent treatment of file headers.  Say you have a diff such as
       --- aaa
       +++ bbb
       @@ -52,7 +52,7 @@
       @@ -74,7 +74,7 @@
       --- ccc
       +++ ddd
       @@ -608,6 +608,6 @@
       @@ -654,7 +654,7 @@
      The file headers here are the '---' and '+++' lines.  With the point on
      such a line, hunk operations would sometimes refer to the next hunk and
      sometimes to the previous hunk.  Most of the time it would be the
      previous hunk, which is not what the user would expect.  This patch
      consistently treats such headers as the next hunk.  So with this patch,
      if the point is on the '--- ccc' line, the point is seen as referring to
      Specific behaviors this fixes are:
      1. It should be possible to place the point in the middle of a diff
      buffer, and press M-k repeatedly to kill hunks in the order they appear
      in the buffer.  With the point on hunk1, M-k M-k would kill hunk1 then
      hunk2.  With the point on hunk3, it would kill hunk3 then hunk4; this is
      fine.  However, with the point on hunk2, it'd kill hunk2 then hunk1.
      This is fixed by this patch.
      2. Similarly, it should be possible to apply hunks in order.  Previously
      with the point at the start, C-c C-a would apply the hunk1, then move
      the point to the first @@ header, and thus C-c C-a would try to apply
      the same hunk again.
      * lisp/vc/diff-mode.el (diff--wrap-navigation): New function to add better
      navigation logic to diff-{hunk,file}-{next,prev}.
      (diff-hunk-next, diff-hunk-prev):
      (diff-file-next, diff-file-prev): Better navigation logic if
      skip-hunk-start is true, which happens when called interactively.
      (diff-bounds-of-hunk, diff-find-source-location):
      (diff-apply-hunk, diff-current-defun, diff-refine-hunk): Small tweaks to
      improve hunk navigation.
  4. 28 Nov, 2016 5 commits
    • Noam Postavsky's avatar
      Upcase Path and ComSpec in process-environment · 753c565d
      Noam Postavsky authored
      Since 2016-07-18 "Keep w32 environment settings internal only", the
      upcasing of environment variables "Path" and "ComSpec" occured after
      initializing process-environment.  This meant that Lisp code trying to
      override "PATH" environment had no effect (Bug #24956).
      * src/w32.c (init_environment): Upcase the "Path" and "ComSpec" entries
      in Vprocess_environment.
    • Philipp Stephani's avatar
      Guard terminal parameter in XTerm mouse mode · 13d468fc
      Philipp Stephani authored
      It has been observed (in the HTerm terminal emulator) that the
      event stored in the 'xterm-mouse-last-down' terminal parameter gets
      overwritten during a mouse drag operation, causing Emacs to attempt to
      synthesize the non-existing <drag-mouse-0> event.  Copy the event into
      the terminal parameter to protect against such modifications.
      * lisp/xt-mouse.el (xterm-mouse-translate-1): Guard against modification
      of input event list.
    • Paul Eggert's avatar
      Fix template for module functions · 1228055b
      Paul Eggert authored
      Reported by Syohei YOSHIDA (Bug#24932).
      * modules/modhelp.py (TEMPLATES):
      c_func’s 2nd arg is ptrdiff_t, not int.
    • Paul Eggert's avatar
      Pacify gcc -Wswitch. · d020ff3e
      Paul Eggert authored
      * src/keyboard.c (kbd_buffer_store_buffered_event):
      Move initialization into default case.
    • Thierry Volpiatto's avatar
      Reuse already existing lisp symbols for ignore_event (bug#19547). · 43ec6efa
      Thierry Volpiatto authored
      * lisp/subr.el (while-no-input-ignore-events): Use them instead.
      * src/keyboard.c (kbd_buffer_store_buffered_event):
      Use help-echo for HELP_EVENT, iconify-frame for ICONIFY_EVENT,
      and make-frame-visible for DEICONIFY_EVENT.
      (syms_of_keyboard): Remove unneeded symbols.
  5. 27 Nov, 2016 2 commits
  6. 26 Nov, 2016 5 commits
    • Simen Heggestøyl's avatar
      Add will change module to CSS property list · 4478cf0a
      Simen Heggestøyl authored
      * lisp/textmodes/css-mode.el (css-property-alist)
      (css-value-class-alist): Add new property and value class from CSS
      Will Change Module.
    • Paul Eggert's avatar
      Don't access pointers to freed storage in regex.c · b7f3a305
      Paul Eggert authored
      Remove __BOUNDED_POINTERS__ code, which does not work with
      -fcheck-pointer-bound and which has undefined behavior anyway.
      Problem found when trying to port to gcc -fcheck-pointer-bounds.
      (This code was removed from glibc and gnulib regex.c many years ago.)
      * src/regex.c (ELSE_EXTEND_BUFFER_HIGH_BOUND): Remove.
      (EXTEND_BUFFER): Use a more-portable approach that avoids
      undefined behavior due to inspecting pointers to freed storage.
    • Eli Zaretskii's avatar
      ; Fix last change in cpp.el · caec5c06
      Eli Zaretskii authored
      * lisp/progmodes/cpp.el (cpp-message-min-time-interval): Fix the
      ':type' attribute.
    • Paul Eggert's avatar
      Port build to gcc -fcheck-pointer-bounds · d2d4b074
      Paul Eggert authored
      This does not let Emacs run, just build.
      * lib-src/etags.c (main):
      * lib-src/profile.c (main):
      Use return, not exit.
      * src/bytecode.c (BYTE_CODE_THREADED) [__CHKP__]:
      Do not define, as -fcheck-pointer-bounds is incompatible with taking
      addresses of labels.
      * src/menu.c (Fx_popup_dialog): Use eassume, not eassert,
      to pacify gcc -fcheck-pointer-bounds -Wnull-dereference.
    • Tino Calancha's avatar
  7. 25 Nov, 2016 6 commits
  8. 24 Nov, 2016 3 commits
  9. 23 Nov, 2016 2 commits
    • Ulf Jasper's avatar
      Fix Bug#24199. · f8e1b18d
      Ulf Jasper authored
      * lisp/calendar/icalendar.el (icalendar--do-create-ical-alarm): Quote
        bracket in doc string (make checkdoc happy).
        (icalendar--add-diary-entry): Rename argument diary-file to
        diary-filename (make checkdoc happy).
        (icalendar--convert-recurring-to-diary): Take care of byday-clause
        in monthly recurring events.  Actually fix Bug#24199.
      * test/lisp/calendar/icalendar-tests.el (icalendar-import-bug-24199): New.
    • Tino Calancha's avatar
  10. 22 Nov, 2016 1 commit
    • Mark Oteiza's avatar
      ; Fix previous change · c542fab2
      Mark Oteiza authored
      strlen is already computed, just use the symbol.
      * lisp/ibuffer.el (ibuffer-compile-make-eliding-form): Use strlen.