1. 11 Aug, 2017 1 commit
    • Noam Postavsky's avatar
      Respect buffer-local value of tags-table-list (Bug#27772) · 179499cd
      Noam Postavsky authored
      * lisp/progmodes/etags.el (visit-tags-table-buffer): Save the current
      buffer around the `tags-table-including' calls so as to get buffer
      local variables from the right buffer later.
      * test/lisp/progmodes/etags-tests.el (etags-visit-tags-table-buffer):
      New test.
      * test/lisp/progmodes/etags-tests.el (etags-tests--test-dir): New
      (etags-bug-158, etags-bug-23164): Use it so that when running the test
      interactively, setting EMACS_TEST_DIRECTORY is not needed.
  2. 09 Aug, 2017 5 commits
    • Tom Tromey's avatar
      Fix auto-filling regression · 81656add
      Tom Tromey authored
      * lisp/newcomment.el (comment-indent-new-line): Check
      comment-auto-fill-only-comments.  Reverts earlier change.
      * lisp/simple.el (internal-auto-fill): Call auto-fill-function, not
    • Paul Eggert's avatar
      Merge from gnulib · 904be8c4
      Paul Eggert authored
      This incorporates:
      2017-08-09 tempname: do not depend on secure_getenv
      2017-08-08 extensions: add _OPENBSD_SOURCE
      2017-08-06 manywarnings: Add support for C++
      2017-08-06 warnings, manywarnings: Add support for multiple languages
      * admin/merge-gnulib: Don't use m4/manywarnings-c++.m4.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/secure_getenv.c, m4/secure_getenv.m4: Remove.
      * lib/tempname.c, m4/extensions.m4, m4/manywarnings.m4, m4/warnings.m4:
      Copy from gnulib.
    • Eli Zaretskii's avatar
      Fix crashing emacs-module tests on MS-Windows · 7fc27ea7
      Eli Zaretskii authored
      * src/w32fns.c (syms_of_w32fns) <w32-disable-abort-dialog>: New
      (emacs_abort): If w32-disable-abort-dialog is non-nil, abort right
      away, without displaying the Abort dialog, which waits for the user.
      * test/src/emacs-module-tests.el (module--test-assertion): Run the
      inferior Emacs with the w32 abort dialog disabled.  Expect the
      status of the aborted Emacs sub-process to be 3 on MS-Windows and
      2 on MS-DOS.
    • Tino Calancha's avatar
      dired-delete-file: Dont't ask for empty dirs · da4438e1
      Tino Calancha authored
      * lisp/dired.el (dired--yes-no-all-quit-help): New defun.
      (dired-delete-file): Use it.  Dont't ask for empty dirs (Bug#27940).
      * test/lisp/dired-tests.el (dired-test-with-temp-dirs):
      New auxiliar macro.
      (dired-test-bug27940): Add new test.
    • Tino Calancha's avatar
      Ask files for deletion in buffer order: top first, botton later · 9ecbdeea
      Tino Calancha authored
      * lisp/dired.el (dired-do-flagged-delete, dired-do-delete):
      Call `nreverse' t invert the output of `dired-map-over-marks'.
  3. 08 Aug, 2017 10 commits
    • Alexander Gramiak's avatar
      Use help-mode xrefs in describe-font · 97237821
      Alexander Gramiak authored
      * lisp/international/mule-diag.el (describe-font): Use help-setup-xref
    • Katsumi Yamaoka's avatar
      Don't try to jump to non-existent part (bug#28013) · 2ef880cc
      Katsumi Yamaoka authored
      * lisp/gnus/gnus-art.el (gnus-article-edit-part): Don't try to jump to
      the next part if there is the only one part in the article (bug#28013).
    • Mark Oteiza's avatar
      Replace some uses of eval · 63b5a4a6
      Mark Oteiza authored
      There are a number of places where eval is used unnecessarily to get
      or set the value of a symbol.
      * lisp/calendar/calendar.el (diary-date-forms): Use default-value in
      custom setter.
      * lisp/desktop.el (desktop-clear): Use set-default instead.
      * lisp/international/ogonek.el (ogonek-read-encoding): Use
    • Mark Oteiza's avatar
      Convert uses of looking-at in viper-ex to following-char · 884d43b4
      Mark Oteiza authored
      * lisp/emulation/viper-ex.el (viper-get-ex-token): Bind
      (following-char) and use it in the subsequent cond's clauses.
      (viper-ex, ex-quit, viper-get-ex-file): Use following-char instead.
      Convert single branch ifs to when
    • Mark Oteiza's avatar
      Some cleanup in message.el · 4cb0bdd6
      Mark Oteiza authored
      * lisp/gnus/message.el (message-cross-post-insert-note):
      (message-strip-forbidden-properties): Mark unused args.
      (message-canlock-generate): Remove extinct variable
      (message-make-mail-followup-to): Use loop's thereis clause.
    • Paul Eggert's avatar
      Document make-temp-name magic limitations · 7d1115e0
      Paul Eggert authored
      * doc/lispref/files.texi (Unique File Names):
      * src/fileio.c (Fmake_temp_name): Document that make-temp-name
      does not guarantee uniqueness on magic file names.
    • Tom Tromey's avatar
      Show number of errors in compilation-mode mode-line · 846870e5
      Tom Tromey authored
      * lisp/progmodes/compile.el (compilation-num-errors-found): Provide
      default value.
      (compilation-num-warnings-found, compilation-num-infos-found): New
      (compilation-mode-line-errors): New defconst.
      (compilation-face): Remove.
      (compilation-type, compilation--note-type): New functions.
      (compilation-parse-errors): Call compilation--note-type.
      (compilation-start): Include compilation-mode-line-errors in
      (compilation-setup): Initialize compilation-num-* variables to 0.
      (compilation-handle-exit): Include compilation-mode-line-errors in
      * doc/emacs/building.texi (Compilation): Document new feature.
    • Mark Oteiza's avatar
      Do some cleanup in mailcap.el · c3445aed
      Mark Oteiza authored
      * lisp/net/mailcap.el: Use lexical-binding.
      (mailcap--set-user-mime-data, mailcap-possible-viewers): Use pcase
      (mailcap-mime-data): Remove some entries for ancient functions.
      (mailcap-parse-mailcaps, mailcap-mime-info): Nix single-branch ifs.
      (mailcap-parse-mimetype-file): Just use append.
      (mailcap-command-p): Remove unused function.
    • Tino Calancha's avatar
      query-replace: Undo replacements performed with 'comma · 919ac3ae
      Tino Calancha authored
      During a `query-replace', the char ',' replaces the character
      at point and doesn't move point;  right after, the char 'u'
      must undo such replacement (Bug#27268).
      * lisp/replace.el (replace--push-stack):
      New macro extracted from `perform-replace'.
      (perform-replace): Use it.
      * test/lisp/replace-tests.el (query-replace--undo): Add test.
    • Noam Postavsky's avatar
  4. 07 Aug, 2017 18 commits
  5. 06 Aug, 2017 6 commits
    • Paul Eggert's avatar
      Fix some crashes on self-modifying Elisp code · 93511e94
      Paul Eggert authored
      Prompted by a problem report by Alex in:
      * src/eval.c (For, Fprogn, Fsetq, FletX, eval_sub):
      Compute XCDR (x) near XCAR (x); although this doesn't fix any bugs,
      it is likely to run a bit faster with typical hardware caches.
      (Fif): Use Fcdr instead of XCDR, to avoid crashing on
      self-modifying S-expressions.
      (Fsetq, Flet, eval_sub): Count the number of arguments as we go
      instead of trusting an Flength prepass, to avoid problems when the
      code is self-modifying.
      (Fquote, Ffunction, Fdefvar, Fdefconst): Prefer !NILP to CONSP
      where either will do.  This is mostly to document the fact that
      the value must be a proper list.  It's also a tiny bit faster on
      typical machines nowadays.
      (Fdefconst, FletX): Prefer XCAR+XCDR to Fcar+Fcdr when either will do.
      (eval_sub): Check that the args are a list as opposed to some
      other object that has a length. This prevents e.g. (if . "string")
      from making Emacs dump core in some cases.
      * test/src/eval-tests.el (eval-tests--if-dot-string)
      (eval-tests--let-with-circular-defs, eval-tests--mutating-cond):
      New tests.
    • Eli Zaretskii's avatar
    • Mark Oteiza's avatar
      ; Fix previous commit · c2a8cffe
      Mark Oteiza authored
      The mailcap minibuffer completion used dynamic binding.  Locally set
      a dynamic variable.
      * lisp/dired-aux.el: Store list of files in
    • Tino Calancha's avatar
      Minor tweak in a dired test · b1b99edd
      Tino Calancha authored
      * test/lisp/dired-tests.el (dired-test-bug27968):
      Ensure the new header has different length than the original one.
    • Tino Calancha's avatar
      dired-delete-file: Do not TAB complete the user answer · e7aabd8b
      Tino Calancha authored
      This action might delete directories containing valuable information.
      Before previous commit, we prompted users with `yes-or-no-p'
      which doesn't TAB complete the user answer.  Let's play safe and
      keep requiring full answers.
      * emacs-master/lisp/dired.el (dired-delete-file): Use `read-string'
      instead of `completing-read' to read the user answers.
    • Tino Calancha's avatar
      dired-do-delete: Allow to delete dirs recursively without prompts · cbea38e5
      Tino Calancha authored
      * lisp/dired.el (dired-delete-file): Accept 2 additional answers:
      'all', to delete all directories recursively and no prompt anymore.
      'quit', to cancel directory deletions (Bug#27940).
      Show help message when user inputs 'help'.
      (dired-do-flagged-delete): Bind locally dired-recursive-deletes
      so that we can overwrite its global value.
      Wrapp the loop within a catch '--delete-cancel to catch when
      the user abort the directtry deletion.
      * doc/emacs/dired.texi (Dired Deletion): Update manual.
      * etc/NEWS (Changes in Specialized Modes and Packages in Emacs 26.1):
      Announce this change.