1. 03 Jan, 2017 3 commits
    • Eli Zaretskii's avatar
      Generate nt/gnulib.mk from lib/gnulib.mk · 10444dcf
      Eli Zaretskii authored
      This was proposed by Paul Eggert <eggert@cs.ucla.edu>,
      with the purpose of avoiding manual maintenance of
      * nt/gnulib-modules-to-delete.cfg: New file.
      * nt/Makefile.in (AM_V_GEN, am__v_GEN_, am__v_GEN_0)
      (am__v_GEN_1): New variables.
      (${srcdir}/gnulib.mk): Rules to generate gnulib.mk from
      lib/gnulib.mk and list of modules in gnulib-modules-to-delete.cfg.
      * make-dist (nt): Add gnulib-modules-to-delete.cfg to the list of
      files to link.
      * configure.ac (GNULIB_MK): Compute the value according to $opsys.
      * autogen.sh: Create nt/gnulib.mk if it doesn't exist, before
      running autoreconf.
      * Makefile.in (gnulib_mk): New variable.
      ($(srcdir)/nt/gnulib.mk): Rule to produce it.
      (AUTOMAKE_INPUTS): Use $(gnulib_mk) instead of a literal file
      * .gitignore: Add nt/gnulib.mk.
      * src/w32.c (acl_errno_valid): Implement it here, as we no longer
      build the acl-permissions module from Gnulib.
    • Noam Postavsky's avatar
      Handle multibyte chars spanning chunks in term.el · 134e86b3
      Noam Postavsky authored
      * lisp/term.el (term-terminal-undecoded-bytes): New variable.
      (term-mode): Make it buffer local.  Don't make `term-terminal-parameter'
      buffer-local twice.
      (term-emulate-terminal): Check for bytes of incompletely decoded
      characters, and save them until the next call when they can be fully
      decoded (Bug#25288).
    • Michael Albinus's avatar
      Finish work on filenotify-tests.el · 975b2acf
      Michael Albinus authored
      * test/lisp/filenotify-tests.el (file-notify--test-monitors):
      New variable.
      (file-notify--test-cleanup, file-notify--test-monitor): Use it.
      (file-notify--test-read-event, file-notify-test02-events)
      (file-notify-test04-file-validity): Handle "gvfs-monitor-dir.exe".
      Set `file-notify--test-desc' for proper work of
      `file-notify--test-monitor'.  (Bug#21804)
  2. 02 Jan, 2017 4 commits
    • Michael Albinus's avatar
      Check also for "gvfs-monitor-dir.exe" in Tramp · 1d714e41
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-get-remote-gvfs-monitor-dir): Check also
      for "gvfs-monitor-dir.exe".
    • Eli Zaretskii's avatar
      Fix compilation --without-x · 443f1719
      Eli Zaretskii authored
      * src/composite.c (autocmp_chars) [HAVE_WINDOW_SYSTEM]: Call
      font_range only if it is compiled in.  (Bug#25334)
    • Sašo Živanović's avatar
      Fix RefTeX to show table of contents for dtx files (tiny change) · 1e8bb313
      Sašo Živanović authored
      * lisp/textmodes/reftex.el (reftex-compile-variables): Change the
        section regexp so that it accepts lines starting with the comment
        character. (tiny change)
      * lisp/textmodes/reftex-parse.el (reftex-parse-from-file): Filter
        gathered toc entries, accepting a commented entry if and only if the
        source file is a ".dtx" file. (tiny change)
    • Paul Eggert's avatar
      Remove mistakenly-added files · 367dadf5
      Paul Eggert authored
      Problem reported by Glenn Morris in:
      * lisp/gnus/gnus-ems.el, lisp/gnus/gnus-sync.el:
      * lisp/gnus/messcompat.el, lisp/nxml/nxml-glyph.el:
      * lisp/nxml/nxml-uchnm.el, lisp/obsolete/awk-mode.el:
      * lisp/obsolete/iso-acc.el, lisp/obsolete/iso-insert.el:
      * lisp/obsolete/iso-swed.el, lisp/obsolete/resume.el:
      * lisp/obsolete/scribe.el, lisp/obsolete/spell.el:
      * lisp/obsolete/swedish.el, lisp/obsolete/sym-comp.el:
      Remove files that were added by mistake during a merge.
  3. 01 Jan, 2017 24 commits
  4. 31 Dec, 2016 9 commits
    • Paul Eggert's avatar
      Clarify internal_catch etc. · 535ef18e
      Paul Eggert authored
      The recent change to internal_catch and friends relied on some
      confusion I introduced to the code in 2013.  Attempt to fix
      the confusion by clarifying the code instead.  This saves an
      instruction and a load dependency in the typical case.
      * src/eval.c (internal_catch, internal_condition_case)
      (internal_condition_case_1, internal_condition_case_2)
      (internal_condition_case_n): Undo the previous change.  Instead,
      use use ‘c’ rather than ‘handlerlist’ in the typical case.
      Also, use ‘eassert’ rather than ‘clobbered_eassert’ when possible.
    • Ken Brown's avatar
      Further improve filenotify-tests.el · a60d77b8
      Ken Brown authored
      * test/lisp/filenotify-tests.el
      (file-notify--test-read-event): Adapt to file monitors of type
      GFamFileMonitor, which occur on Cygwin.
      (file-notify--test-monitor): Update doc string.
    • Paul Eggert's avatar
    • Alan Third's avatar
      Rework NS event handling (bug#25265) · e0e5b0f4
      Alan Third authored
      * src/nsterm.m (unwind_apploopnr): Remove.
      (ns_read_socket): Remove references to apploopnr.  Make processing the
      NS event loop conditional on being in the main thread.
      (ns_select): Remove references to apploopnr.  Remove all fd_handler
      related stuff.  Check if there are events waiting on the NS event
      queue rather than running the event loop.  Remove unused variables and
      (fd_handler): Remove.
      (ns_term_init): Remove creation of fd_handler thread.
      (hold_event, EmacsApp:sendEvent, EmacsView:mouseMoved,
      EmacsView:windowDidExpose): Remove send_appdefined.
      (ns_send_appdefined): Always check the event queue for
      applicationDefined events rather than relying on send_appdefined var.
      * src/nsterm.h: Remove reference to fd_handler method.
    • Philipp Stephani's avatar
      Checkdoc: use syntax functions instead of regex · 4bbd5424
      Philipp Stephani authored
      In checkdoc.el, get rid of the error-prone regex to find definition
      forms, and use existing syntax-based navigation functions instead.
      This fixes a corner case with one-argument `defvar' forms.
      * lisp/emacs-lisp/checkdoc.el (checkdoc--next-docstring): New function.
      (checkdoc-next-docstring, checkdoc-defun): Use it.
      * test/lisp/emacs-lisp/checkdoc-tests.el (checkdoc-tests--next-docstring):
      Add unit test.
    • Eli Zaretskii's avatar
      Don't define NOMINMAX on MS-Windows · 8a165813
      Eli Zaretskii authored
      * src/callproc.c (NOMINMAX) [WINDOWSNT]: Don't define.  This is no
      longer needed with the current sources and MinGW headers, while
      defining NOMINMAX causes an annoying compiler warning.
    • Chris Gregory's avatar
      Simplify code in eval.c that calls 'setjmp' · ff9adb75
      Chris Gregory authored
      * src/eval.c (internal_catch, internal_condition_case)
      (internal_condition_case_1, internal_condition_case_2)
      (internal_condition_case_n): Factor out the common tail of the
      Copyright-paperwork-exempt: yes
    • Chris Gregory's avatar
      Simplify code in 'string_from_display_spec' · 1da34d6a
      Chris Gregory authored
      * src/xdisp.c (string_from_display_spec): Eliminate a redundant
      test before the loop.
      Copyright-paperwork-exempt: yes
    • Eli Zaretskii's avatar
      Serialize random number generation on MS-Windows · a78a167a
      Eli Zaretskii authored
      * src/w32.c (rand_as183): New function.
      (random): Use it instead of MS runtime's 'rand'.  This avoids
      producing separate and identical random series in each Lisp
      (srandom): Modify to supply 3 seed values to 'rand_as183'.