1. 02 May, 2019 1 commit
    • Michael Albinus's avatar
      Fix tramp-compat-file-name-quoted-p · cd3a7f35
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-compat-file-local-name)
      (tramp-compat-file-name-quoted-p): Declare them.
      (top): Do not use `eval-and-compile'.
      (tramp-compat-file-name-quoted-p): Check also func-arity of
  2. 01 May, 2019 7 commits
    • Stefan Monnier's avatar
      * lisp/mail/footnote.el: Consolidate the two marker-alists · 4299e5ef
      Stefan Monnier authored
      Consolidate footnote-text-marker-alist and footnote-pointer-marker-alist
      into a single footnote--markers-alist.
      (footnote--markers-alist): New var.
      (footnote-text-marker-alist, footnote-pointer-marker-alist): Delete vars.
      (footnote--refresh-footnotes, footnote--text-under-cursor)
      (footnote--calc-fn-alignment-column, footnote-add-footnote)
      (footnote-goto-footnote, footnote-back-to-message): Adjust accordingly.
      (footnote--make-hole, footnote-delete-footnote)
      (footnote-renumber-footnotes): Simplify accordingly.
      (footnote-cycle-style): Indicate style name in echo area.
      (footnote--renumber): Take a single `alist-elem` arg instead of
      `pointer-alist` and `text-alist`.
      (footnote--insert-text-marker, footnote--insert-pointer-marker):
      Add to footnote--markers-alist instead.
      (footnote--first-text-marker): New function.
      (footnote--get-area-point-min): Use it.
      footnote--goto-first): New function.
      (footnote--insert-footnote): Use it.
      (footnote-style-number): Use defvar-local.
    • Stefan Monnier's avatar
      * lisp/mail/footnote.el: Minor simplifications · c9b820dd
      Stefan Monnier authored
      Remove redundant :group args.
      (footnote-mode-hook): Let define-minor-mode define it.
      (footnote--style-p): Delete function.
      (footnote--index-to-string): Inline it instead, and simplify.
      (footnote-cycle-style): Use a pointer into the alist as the "index"
      instead of a number.
      (footnote-set-style): Use footnote-style-alist as the completion table.
      Prefer `assq` over `footnote--assoc-index`.
      (footnote--assoc-index): Delete function.
      (footnote--renumber): Remove first (unused) argument; Adjust all callers.
      (footnote--sort): Use car-less-than-car.
    • Lars Ingebrigtsen's avatar
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/edebug.el: Better handle instrumentation of `end-of-defun` · 9e8e3975
      Stefan Monnier authored
      Remove redundant :group args.
      (edebug-read-top-level-form): Let-bind edebug-active.
      (edebug-active): Move before this new first use.
    • Stefan Monnier's avatar
    • Basil L. Contovounesios's avatar
    • Glenn Morris's avatar
      ; Auto-commit of loaddefs files. · 7124fec0
      Glenn Morris authored
  3. 30 Apr, 2019 8 commits
    • Basil L. Contovounesios's avatar
      Minor region-noncontiguous-p simplification · 7dafbe3a
      Basil L. Contovounesios authored
      * lisp/simple.el (region-noncontiguous-p): Don't needlessly traverse
    • Stefan Monnier's avatar
      * lisp/progmodes/cc-engine.el: Silence minor compiler warnings · 910d1707
      Stefan Monnier authored
      (c-restricted-<>-arglists, c-parse-and-markup-<>-arglists):
      Move declaration before first use.
      (c-after-change-unmark-raw-strings): Remove unused var `found-end`.
    • Paul Eggert's avatar
      Fix decode-time/encode-time roundtrip on macOS · 325f51c8
      Paul Eggert authored
      * src/timefns.c (Fencode_time): Ignore DST flag when the zone is
      numeric or is a cons, as the doc string says it’s ignored in that
      case, and not ignoring it causes encode-time to not invert
      decode-time on some platforms (Bug#35502).
      * test/src/timefns-tests.el (encode-time-dst-numeric-zone):
      New test.
    • Stefan Monnier's avatar
      * lisp/progmodes/cc-fonts.el: Silence some compiler warnings · 35ef33dd
      Stefan Monnier authored
      (c-font-lock-declarators): Mark `id_end` and `not-top` as unused.
    • Paul Eggert's avatar
      Update from Gnulib · 46b434a6
      Paul Eggert authored
      * build-aux/config.guess, doc/misc/texinfo.tex:
      * lib/mktime-internal.h, lib/mktime.c, lib/timegm.c:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
    • Mattias Engdegård's avatar
    • Alan Mackenzie's avatar
      CC Mode: in certain font lock loops, check point is not beyond limit. · 28853721
      Alan Mackenzie authored
      * /lisp/progmodes/cc-fonts.el (c-font-lock-enum-body)
      (autodoc-font-lock-line-markup): As part of the `while' condition, check that
      the previous iteration of the loop hasn't moved point past `limit', thus
      obviating "wrong side of point" errors in re-search-forward, etc.
    • Mattias Engdegård's avatar
      Don't poll auto-revert files that use notification (bug#35418) · c61bbb4c
      Mattias Engdegård authored
      It is a waste to periodically poll files that use change notification
      in auto-revert mode; stop doing that.  If no files need polling,
      turn off the periodic execution entirely to further avoid wasting power.
      Use a timer to inhibit immediate reversion for some time after a
      notification, for throttling.
      This change does not apply to files in global-auto-revert-mode, where
      polling is still necessary.  It is disabled by default, and enabled by
      setting `auto-revert-avoid-polling' to non-nil.
      * lisp/autorevert.el
      (toplevel): Require cl-lib.
      (auto-revert-avoid-polling, auto-revert--polled-buffers)
      (auto-revert--need-polling-p, auto-revert--lockout-interval)
      (auto-revert--lockout-timer, auto-revert--end-lockout): New.
      (global-auto-revert-mode): Keep notifiers for buffers in auto-revert mode.
      (auto-revert-set-timer): Use auto-revert--need-polling-p.
      (auto-revert-notify-handler): Restart polling if notification stopped.
      Use new lockout timer.
      Use auto-revert--polled-buffers and auto-revert--need-polling-p.
      (auto-revert-buffers-counter, auto-revert-buffers-counter-lockedout):
      * etc/NEWS (Changes in Specialized Modes and Packages):
      Describe the new auto-revert-avoid-polling variable.
      * doc/emacs/files.texi (Reverting):
      Add paragraph describing auto-revert-avoid-polling.
  4. 29 Apr, 2019 11 commits
  5. 28 Apr, 2019 13 commits