1. 31 May, 2019 1 commit
  2. 30 May, 2019 6 commits
    • Alan Mackenzie's avatar
      Optimize one of CC Mode's syntax caches for long comments and strings. · 57e9141a
      Alan Mackenzie authored
      * lisp/progmoes/cc-langs.el (c-block-comment-awkward-chars): New lang
      constant and variable.
      * lisp/progmodes/cc-engine.el (c-state-semi-nonlit-pos-cache): Enhance the
      doc comment.
      (c-state-semi-get-near-cache-entry, c-state-semi-pp-to-literal): Reuse entry
      if the sought position is in a literal, and lies between the literal start and
      the entry's position.
      (c-cache-to-parse-ps-state, c-parse-ps-state-below): Amend such that instead
      of cacheing a state for a position after a backslash or first character of a
      2-character comment delimiter, this is done for the previous character
    • Dmitry Gutov's avatar
      Fix a void-function error · a0c7a640
      Dmitry Gutov authored
      * lisp/dired-aux.el (dired-do-find-regexp):
      Require 'xref' (bug#35352).
    • Dmitry Gutov's avatar
      Rename xref-refresh-results to xref-revert-buffer · a01693a4
      Dmitry Gutov authored
      * lisp/progmodes/xref.el (xref-revert-buffer): Rename from
      'xref-refresh-results' (https://debbugs.gnu.org/35737#40).
    • Dmitry Gutov's avatar
      New command ruby-find-library-file · 27f56271
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (ruby-find-library-file):
      New command.
      (ruby-mode-map): Add binding for it.
    • Dmitry Gutov's avatar
    • Basil L. Contovounesios's avatar
      Simplify Gnus buffer liveness checking and killing · ceca1740
      Basil L. Contovounesios authored
      * lisp/gnus/gnus-agent.el (gnus-agent-synchronize-group-flags):
      Fix indentation.
      * lisp/gnus/gnus-util.el (gnus-buffer-exists-p): Define as obsolete
      alias of gnus-buffer-live-p.
      (gnus-buffer-live-p): If the given argument is or names a live
      buffer, return the corresponding buffer object instead of a boolean.
      * lisp/gnus/gnus-win.el (gnus-delete-windows-in-gnusey-frames)
      (gnus-remove-some-windows): Simplify.
      * lisp/gnus/gnus.el (gnus-prune-buffers): Redefine as alias of
      (gnus-kill-buffer, gnus-buffers, gnus-group-find-parameter):
      * lisp/gnus/gnus-art.el (gnus-kill-sticky-article-buffers)
      * lisp/gnus/gnus-bcklg.el (gnus-backlog-shutdown):
      * lisp/gnus/gnus-cus.el (gnus-group-customize)
      * lisp/gnus/gnus-draft.el (gnus-draft-edit-message):
      * lisp/gnus/gnus-group.el (gnus-group-set-mode-line)
      (gnus--abort-on-unsaved-message-buffers, gnus-group-compact-group):
      * lisp/gnus/gnus-msg.el (gnus-inews-add-send-actions)
      (gnus-summary-supersede-article, gnus-copy-article-buffer):
      * lisp/gnus/gnus-score.el (gnus-score-edit-current-scores)
      * lisp/gnus/gnus-spec.el (gnus-update-format-specifications):
      * lisp/gnus/gnus-srvr.el (gnus-server-compact-server):
      * lisp/gnus/gnus-start.el (gnus-clear-system, gnus-dribble-enter)
      (gnus-dribble-save, gnus-dribble-clear, gnus-save-newsrc-file):
      * lisp/gnus/gnus-sum.el (gnus-summary-setup-buffer)
      (gnus-update-summary-mark-positions, gnus-summary-exit)
      (gnus-deaden-summary, gnus-kill-or-deaden-summary)
      * lisp/gnus/gnus-win.el (gnus-configure-frame):
      * lisp/gnus/mail-source.el (mail-source-movemail):
      * lisp/gnus/message.el (message-with-reply-buffer)
      (message-with-reply, message-send-and-exit)
      (message-send-mail-with-sendmail, message-pop-to-buffer)
      (message-do-send-housekeeping, message-forward-make-body-plain)
      * lisp/gnus/mm-decode.el (mm-display-external, mm-remove-part):
      * lisp/gnus/nnbabyl.el (nnbabyl-server-opened)
      (nnbabyl-possibly-change-newsgroup, nnbabyl-read-mbox)
      * lisp/gnus/nndiary.el (nndiary-save-nov):
      * lisp/gnus/nndoc.el (nndoc-close-group)
      * lisp/gnus/nnfolder.el (nnfolder-close-group, nnfolder-save-nov):
      * lisp/gnus/nnimap.el (nnimap-make-process-buffer, nnimap-keepalive)
      * lisp/gnus/nnmail.el (nnmail-cache-open, nnmail-cache-close):
      * lisp/gnus/nnmbox.el (nnmbox-close-server, nnmbox-server-opened)
      (nnmbox-possibly-change-newsgroup, nnmbox-read-mbox):
      * lisp/gnus/nnml.el (nnml-save-incremental-nov, nnml-open-nov)
      * lisp/gnus/nnoo.el (nnoo-server-opened):
      * lisp/gnus/nntp.el (nntp-kill-buffer, nntp-make-process-buffer)
      (nntp-open-connection, nntp-async-trigger):
      * lisp/net/mairix.el (mairix-gnus-fetch-field): Simplify buffer
      liveness checking and killing, replacing buffer-name with
      buffer-live-p and gnus-buffer-exists-p with gnus-buffer-live-p or
      equivalent where applicable.
  3. 29 May, 2019 4 commits
    • Stefan Monnier's avatar
      * lisp/subr.el (add-hook): Turn `append` into `depth` (bug#35508) · fe0cb43f
      Stefan Monnier authored
      Make it possible to control the relative ordering of functions on hooks by
      specifying `depth` in the same was as was possible with `add-function`.
      * lisp/electric.el (electric--sort-post-self-insertion-hook):
      Delete function.
      (electric-indent-mode, electric-layout-mode, electric-quote-mode):
      * lisp/elec-pair.el (electric-pair-mode): Use new `depth` arg instead of
      * lisp/emacs-lisp/syntax.el (syntax-propertize, syntax-ppss):
      Use new `depth` arg to make sure noone accidentally gets added
      after syntax-ppss-flush-cache.
      * doc/lispref/modes.texi (Setting Hooks): Document new `depth` arg.
      * test/lisp/subr-tests.el (subr-tests-add-hook-depth): New test.
    • Simen Heggestøyl's avatar
      Use lexical-binding in makesum.el and add tests · 49cdbb4a
      Simen Heggestøyl authored
      * lisp/makesum.el: Use lexical-binding.
      (make-command-summary): Replace `if..progn' with `when'.
      (double-column): Add docstring and apply trivial simplifications.
      * test/lisp/makesum-tests.el: New file with tests for makesum.el.
    • Basil L. Contovounesios's avatar
      Simplify gnus-or and gnus-and · 7f3b0d1c
      Basil L. Contovounesios authored
      * lisp/gnus/gnus-art.el: Make implicit seq.el dependency explicit.
      (gnus-treat-predicate): Use seq-some in place of mapcar + gnus-or
      and evaluate lambda predicate.
      * lisp/gnus/gnus-util.el (gnus-or, gnus-and): Simplify.
    • Stefan Monnier's avatar
  4. 28 May, 2019 4 commits
    • Stefan Monnier's avatar
      * lisp/international/mule-cmds.el (encode-coding-char): Fix ASCII case · 96a0d4fe
      Stefan Monnier authored
      Don't bother with string-as-multibyte since `string` already returns
      multibyte when needed.  Don't forget to encode when the string is
      ASCII, e.g. for ebcdic case and to make sure we always return
      a unibyte string.
      * test/lisp/international/mule-tests.el (mule-cmds-tests--encode-ebcdic):
      New test.
    • Stefan Monnier's avatar
      * lisp/gnus/gnus-art.el: Use mail-header-p · 6daa6957
      Stefan Monnier authored
      (gnus-summary-save-in-pipe, gnus-article-prepare)
      (gnus-request-article-this-buffer): Use mail-header-p instead of vectorp.
      (gnus-request-article-this-buffer): Use insert-buffer-substring since
      it doesn't behave like string-make-multibyte any more.
    • Stefan Monnier's avatar
      * lisp/frameset.el: Stop using obsolete registerv objects · 4b117065
      Stefan Monnier authored
      (frameset-register): New type.
      (register-val-jump-to): Define on this new type, replacing
      (register-val-describe): Define on this new type, replacing
      (frameset-to-register): Use new frameset-make-register.
      (frameset--reuse-frame): η-reduce.
    • Stefan Kangas's avatar
      Cleanup of TODO to prefer report-emacs-bug · dd5ea0a0
      Stefan Kangas authored
      * etc/TODO: Remove already completed removal of `report-calc-bug'.
      * lisp/calc/calc.el: Remove any mention of `report-calc-bug'.
      * lisp/epg-config.el: Redefine `epg-bug-report-address' as obsolete
      variable alias for `report-emacs-bug-address'.
      * lisp/expand.el: Remove any mention of `expand-submit-report'.
      * lisp/obsolete/fast-lock.el: Remove commented out code for
  5. 27 May, 2019 3 commits
    • Simen Heggestøyl's avatar
      Remap `complete-symbol' in CSS mode · 464770d2
      Simen Heggestøyl authored
      * lisp/textmodes/css-mode.el (css-mode-map): Remap `complete-symbol'
      to `completion-at-point'.
      (css-mode): Update docstring to produce the right key binding.
    • Mattias Engdegård's avatar
      Correctly eliminate duplicate cases in switch compilation · 68b374a6
      Mattias Engdegård authored
      Fix code mistakes that prevented the correct elimination of duplicated
      cases when compiling a `cond' form to a switch bytecode, as in
        (cond ((eq x 'a) 1)
              ((eq x 'b) 2)
              ((eq x 'a) 3)   ; should be elided
              ((eq x 'c) 4))
      Sometimes, this caused the bytecode to use the wrong branch (bug#35770).
      * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-vars): Return obj2 eval'ed.
      Discard redundant condition.  Use `obj2' as evaluated.
      Discard duplicated cases instead of failing the table generation.
      * test/lisp/emacs-lisp/bytecomp-tests.el (toplevel): Require subr-x.
      (byte-opt-testsuite-arith-data, bytecomp-test--switch-duplicates): Test.
    • Michael Albinus's avatar
      Another attempt to fix Bug#35769 · 457b0244
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-call-process, tramp-call-process-region)
      (tramp-process-lines): Suppress `process-environment' entries
      dedicated for remote processes.  (Bug#35769)
  6. 26 May, 2019 7 commits
  7. 25 May, 2019 5 commits
  8. 24 May, 2019 6 commits
  9. 23 May, 2019 4 commits