1. 07 Nov, 2019 7 commits
    • Eli Zaretskii's avatar
      Revert "Don't flash previous buffer when connecting with emacsclient" · e06324a0
      Eli Zaretskii authored
      This reverts commit 49fc0400.
      It turns out that the fix for a minor aesthetical annoyance
      caused much more serious bugs: bug#31038, bug#35726, Bug#37097,
    • Eli Zaretskii's avatar
      ; * etc/NEWS: Fix wording of last change. · 1b715834
      Eli Zaretskii authored
    • Andrii Kolomoiets's avatar
      python.el: Pdbtracking improvements · e50587b1
      Andrii Kolomoiets authored
      Allow not to kill buffers when pdbtracking session is finished.
      Pdbtracking session considered finished judging from the user input.
      * lisp/progmodes/python.el (python-pdbtrack-kill-buffers): New
      customizable variable.
      (python-pdbtrack-set-tracked-buffer): Use it.
      (python-pdbtrack-tracking-finish): New functions.
      (python-pdbtrack-continue-command, python-pdbtrack-exit-command):
      New customizable variables.
      (python-pdbtrack-process-sentinel): New function.  Finish
      pdbtracking session when process is killed.
      (python-pdbtrack-prev-command-continue): New variable.
      (python-pdbtrack-comint-input-filter-function): New function.
      Finish pdbtracking session based on commands sent to pdb.
      (python-pdbtrack-comint-output-filter-function): Unset/set
      tracking buffer if looking at pdb prompt; finish pdbtracking
      session if filename of current stack frame starts with
      "<" e.g. "<stdin>".
      (python-pdbtrack-comint-output-filter-function): Don't override
      (python-pdbtrack-setup-tracking): New function.
      (inferior-python-mode): Use it.
      (python-pdbtrack-stacktrace-info-regexp): Default value is changed.
      Must also match lines with filename like "<stdin>" and "<string>".
      * etc/NEWS: Mention python-pdbtrack-kill-buffers
    • Eli Zaretskii's avatar
    • Michael Albinus's avatar
      Make ange-ftp fit for tramp-tests · 4ab78001
      Michael Albinus authored
      * lisp/net/ange-ftp.el (ange-ftp-repaint-minibuffer): Use empty message.
      (ange-ftp-quote-string): Unquote the string.
      (ange-ftp-substitute-in-file-name, ange-ftp-access-file)
      (ange-ftp-copy-directory, ange-ftp-make-symbolic-link)
      (ange-ftp-add-name-to-file): New defuns.  Set 'ange-ftp property.
      (ange-ftp-real-copy-directory): New defuns.
      (ange-ftp-file-name-as-directory): Care about `non-essential'.
      (ange-ftp-file-attributes): Handle ID-STRING.
      (ange-ftp-copy-file-internal, ange-ftp-rename-file)
      (ange-ftp-make-directory): Improve error handling.
      (ange-ftp-insert-directory): Initialize SWITCHES if they are nil.
      * test/lisp/net/tramp-tests.el (ange-ftp-make-backup-files): Declare.
      (tramp-test39-make-nearby-temp-file, tramp--test-ange-ftp-p): New defun.
      (tramp-test06-directory-file-name, tramp-test10-write-region)
      (tramp-test11-copy-file, tramp-test12-rename-file)
      (tramp--test-special-characters): Use it.
    • Stefan Kangas's avatar
      Clean up major mode check in package-menu-mode · ddb797cf
      Stefan Kangas authored
      * lisp/emacs-lisp/package.el (package--ensure-package-menu-mode):
      Extract function to warn about incorrect major mode...
      (package-menu-toggle-hiding, package-menu-refresh)
      (package-menu-execute): ...from here.
      (package-menu--mark-upgrades-1): And here, but move call...
      (package-menu-mark-upgrades): ...here instead.
      (package-menu-hide-package, package-menu-mark-delete)
      (package-menu-mark-install, package-menu-mark-unmark)
      (package-menu-quick-help, package-menu-get-status)
      (package-menu-filter-by-keyword, package-menu-filter-by-name)
      (package-menu-clear-filter): Add call to new function.  (Bug#37891)
    • Stefan Kangas's avatar
      Test that comint-password-prompt-regexp matches "git push" · 1428dfe6
      Stefan Kangas authored
      * test/lisp/comint-tests.el (comint-testsuite-password-strings): Test
      that 'comint-password-prompt-regexp' matches 'git push'
      output.  (Bug#20910)
  2. 06 Nov, 2019 12 commits
    • Juri Linkov's avatar
      * lisp/dired-aux.el (dired-vc-rename-file): New defcustom. · deb61da7
      Juri Linkov authored
      (dired-rename-file): Call vc-rename-file when dired-vc-rename-file is non-nil.
      * lisp/vc/vc.el (vc-rename-file): Allow renaming added files.
      Call vc-file-clearprops on new file too for the case when
      old and new files were renamed to each other back and forth.
    • Juri Linkov's avatar
      * lisp/tab-bar.el (tab-bar-history-old): Rename from tab-bar-history-current. · 528485d0
      Juri Linkov authored
      Rename from tab-bar-history--minibuffer-depth.
    • Juri Linkov's avatar
      * lisp/tab-line.el: More configurability for tab buffer groups. · f5f40af1
      Juri Linkov authored
      * lisp/tab-line.el (tab-line-tabs-buffer-group-function)
      (tab-line-tabs-buffer-groups-sort-function): New defvars.
      (tab-line-tabs-buffer-group-name): Rename from
      tab-line-tabs-buffer-groups--name and use tab-line-tabs-buffer-group-function.
      (tab-line-tabs-buffer-groups): Use tab-line-tabs-buffer-groups-sort-function
      and tab-line-tabs-buffer-group-sort-function.
      (tab-line-new-tab): Let bind tab-line-tabs-buffer-groups to
    • Paul Eggert's avatar
      Simplify fixnum division slightly · b5bcc6f9
      Paul Eggert authored
      * src/data.c (arith_driver): Streamline fixnum division a bit
      more, and add a comment about why overflow is impossible.
      This responds to a private comment by Stefan Monnier.
    • Alan Mackenzie's avatar
      Add a full set of CC Mode language variables to js.el. · 4ad6c932
      Alan Mackenzie authored
      This will allow js.el to work after maintenance changes in CC Mode, e.g. the
      fix to bug #11165.
      * lisp/progmodes/js.el (top level): Create a CC Mode derived language called
      js-mode and based on Java Mode.
      (js-mode): call c-init-language-vars for js-mode.  Remove the direct settings
      of several CC Mode language variables which are now defined through the
      derived language mechanism.  Call c-set-style and set up the needed style
      variables c-block-comment-prefix and c-comment-prefix-regexp.
    • Eli Zaretskii's avatar
      Minor fix in the Emacs manual · e72a48ee
      Eli Zaretskii authored
      * doc/emacs/msdos.texi (ls in Lisp): Fix the description of
      'ls-lisp-verbosity'.  (Bug#38077)
    • Stephen Gildea's avatar
      time-stamp: add support for time zone numeric offset · 9ce67baa
      Stephen Gildea authored
      * time-stamp.el: Implement %:z as expanding to the numeric time zone
      offset, to address the feature request of bug#32931.  Do not document it
      yet, to discourage compatibility problems in mixed Emacs 26 and Emacs 27
      environments.  Documentation will be added in a subsequent release at
      least two years later.  (We cannot yet use %z for numeric time zone
      because in Emacs 26 it was documented to do something else.)
      * time-stamp-tests.el (time-stamp-test-format-time-zone): expand this
      test and break it into two tests, time-stamp-test-format-time-zone-name
      and time-stamp-test-format-time-zone-offset.
    • Michael Albinus's avatar
      More error checks in Tramp's make-directory · da2df1c1
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-make-directory):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-make-directory):
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-directory):
      * lisp/net/tramp-smb.el (tramp-smb-handle-make-directory):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-make-directory):
      Signal `file-already-exists' if DIR exists.
      * test/lisp/net/tramp-tests.el (tramp-test04-substitute-in-file-name):
      Fix thinko.
      (tramp-test13-make-directory, tramp-test14-delete-directory)
      (tramp-test15-copy-directory): Extend tests.
    • Stefan Kangas's avatar
      Fix problem with my last commit in package.el · d30f5e7e
      Stefan Kangas authored
      * lisp/emacs-lisp/package.el (package-menu--refresh-archives): Rename
      from duplicated name package-menu--refresh.  (Bug#38084)
      (package-menu-mode, list-packages): Use new name.
    • Paul Eggert's avatar
      Update from Gnulib · 2b1dc8c2
      Paul Eggert authored
      This incorporates:
      2019-10-24 timespec-add, timespec-sub: simplify
      * lib/timespec-add.c, lib/timespec-sub.c:
      Copy from Gnulib.
    • Paul Eggert's avatar
      Remove unneeded overflow check in integer division · 6039acb8
      Paul Eggert authored
      * src/data.c (arith_driver): Remove unnecessary runtime test,
      since integer overflow is impossible on division of fixnums,
      given that the worst case is MOST_NEGATIVE_FIXNUM / -1 which is
      representable as an EMACS_INT (albeit not as a fixnum).
    • Stefan Kangas's avatar
      Avoid changing value of defcustom package-enable-at-startup · 0661a39d
      Stefan Kangas authored
      * lisp/emacs-lisp/package.el (package--activated): New variable to
      avoid changing value of defcustom 'package-enable-at-startup'.
      (package-initialize): Don't set 'package-enable-at-startup'.
      (package-initialize, package-activate-all): Set 'package--activated'
      instead of 'package-enable-at-startup'.
      (package--initialized): Add doc string.
      * lisp/startup.el (command-line): Check if 'package--activated' is
      non-nil before activating packages.
      * doc/lispref/package.texi (Packaging Basics): Update docs.
  3. 05 Nov, 2019 16 commits
    • Stefan Kangas's avatar
      Make 'g' refresh package data in package menu · 0c293f15
      Stefan Kangas authored
      * lisp/emacs-lisp/package.el (package-menu--refresh): Rename from
      'package-menu-refresh', make internal and non-interactive.
      (package-menu-mode-map, package-menu-mode-menu, package-menu-mode)
      (list-packages): Use the above.  (Bug#35504)
      (package-menu-refresh): Redefine as obsolete fuction alias for
      * doc/emacs/package.texi (Package Menu): Document it.
      * etc/NEWS: Announce it.
    • Stefan Kangas's avatar
      Rename *-multiframe-window to *-window-any-frame · c91c145d
      Stefan Kangas authored
      Suggested by Drew Adams.
      * lisp/frame.el
      (next-multiframe-window): Define as obsolete alias for...
      (next-window-any-frame): ...new function name.
      (previous-multiframe-window): Define as obsolete alias for...
      (previous-window-any-frame): ...new function name.  (Bug#12436)
      * lisp/term/ns-win.el (global-map): Use new command name.
      * doc/emacs/windows.texi (Other Window): Document it.
      * etc/NEWS: Announce it.
    • João Távora's avatar
      Follow JSONRPC spec by not sending :result field on errors · a8dbb7cc
      João Távora authored
      Also don't send :error field on non-errors.
      * lisp/jsonrpc.el (jsonrpc--reply): Don't send :result and :error
      if none supplied.
      (Version): Bump to 1.0.8
    • Juri Linkov's avatar
      Add prefix arg to more isearch commands (bug#14563) · fbcfee3a
      Juri Linkov authored
      * lisp/isearch.el (isearch--yank-char-or-syntax)
      (isearch-yank-word-or-char, isearch-yank-symbol-or-char)
      (isearch-yank-until-char): Add optional prefix arg.
    • Juri Linkov's avatar
      * lisp/tab-line.el: New option for tabs where buffers are grouped by mode. · e4f49e87
      Juri Linkov authored
      * lisp/tab-line.el (tab-line-tabs-function): Add option
      (tab-line-tabs-buffer-groups): New defvar defaulted to
      (tab-line-tabs-buffer-groups--name, tab-line-tabs-buffer-groups):
      New functions.
      (tab-line-format): Support tabs in the format '(tab (name . "name") ...)'.
      (tab-line-select-tab): Move part of code to tab-line-select-tab-buffer.
      (tab-line-select-tab-buffer): New function.
      (tab-line-tab-current): Rename from tab-line-tab-selected.
    • João Távora's avatar
      Document fido-mode · 213643a8
      João Távora authored
      * doc/emacs/buffers.texi (Icomplete): Document Fido Mode.
      * etc/NEWS: Mention Fido Mode.
      * lisp/icomplete.el (icomplete-mode): Ensure fido-mode is off.
      (fido-mode): Ensure icomplete-mode is off.
      (icomplete-magic-ido-ret): Don't force completions if no
    • João Távora's avatar
      New fido-mode, emulates ido-mode with icomplete-mode · e1d24f3c
      João Távora authored
      * lisp/icomplete.el (icomplete-fido-mode-map): New variable.
      (icomplete--fido-mode-setup): New function.
      (fido-mode): New global minor mode.
    • Paul Eggert's avatar
      Pacify byte-compiler in calculator.el · e5f10c67
      Paul Eggert authored
      * lisp/calculator.el (calculator-expt): Open-code cl-evenp to
      pacify warning “the function ‘cl-evenp’ might not be defined”.
      Problem reported by Juanma Barranquero in:
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
    • Stefan Kangas's avatar
      Declare unused macro package--push obsolete · d76bc06a
      Stefan Kangas authored
      * lisp/emacs-lisp/package.el (package--push): Declare obsolete.
    • Michael Albinus's avatar
      Improve Tramp's copy-directory · d270d7d4
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
      Add `copy-directory'.
      * lisp/net/tramp.el (tramp-handle-copy-directory): New defun.
    • Robert Pluim's avatar
      Always check for client-certificates · 91c732f6
      Robert Pluim authored
      * lisp/net/network-stream.el
      (network-stream-use-client-certificates): New user option.
      (open-network-stream): If 'network-stream-use-client-certificates'
      is t, and the user hasn't specified :client-certificate, do
      certificate lookups via 'auth-source'.
      (network-stream-certificate): Only return key and certificate
      files that exist.
      * doc/lispref/processes.texi (Network): Document new
      client-certificate behavior.
      * etc/NEWS: Document 'network-stream-use-client-certificates'.
    • Paul Eggert's avatar
      Simplify calculator-expt · 3843711a
      Paul Eggert authored
      * lisp/calculator.el (calculator-expt): Simplify, now that
      expt does the right thing if the first arg is -1, 0, or 1.
    • Paul Eggert's avatar
      Overflow errors are range errors · 799d738b
      Paul Eggert authored
      * etc/NEWS: Mention this.
      * doc/lispref/errors.texi (Standard Errors):
      Document overflow-error, which was formerly undocumented.
      It is a range error, not a domain error.
      * src/data.c (syms_of_data): overflow-error and (undocumented)
      underflow-error are subtypes range-error, not domain-error.
      This fixes bugs in timezone-time-from-absolute and in
    • Paul Eggert's avatar
      Don’t signal overflow for (expt 1 bignum) · 5ab29400
      Paul Eggert authored
      Similarly for (expt 0 bignum) and (expt -1 bignum).
      The result is always a -1, 0 or 1, so do not signal overflow.
      * src/data.c (expt_integer): Do not signal an overflow if
      -1 <= X <= 1.  Be clearer about when overflow is signaled.
      * test/src/floatfns-tests.el (bignum-expt): Test this.
  4. 04 Nov, 2019 5 commits
    • Ronnie Schnell's avatar
    • Michael Albinus's avatar
      Improve Tramp error handling · dd19cc3a
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-set-syntax): Add missing argument.
      (tramp-signal-hook-function): Make it more robust.
      * lisp/net/tramp-adb.el
      (tramp-adb-handle-copy-file, tramp-adb-handle-rename-file):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
      * lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file)
      * lisp/net/tramp-sh.el (tramp-sh-handle-directory-files-and-attributes)
      (tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-copy-file, tramp-smb-handle-directory-files)
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
      Improve error handling.
      * test/lisp/net/tramp-tests.el (tramp-test11-copy-file)
      (tramp-test12-rename-file, tramp-test14-delete-directory)
      (tramp-test15-copy-directory, tramp-test16-directory-files)
      (tramp-test19-directory-files-and-attributes): Extend tests.
    • Eli Zaretskii's avatar
      Fix last change in dired.c · a256e03b
      Eli Zaretskii authored
      * src/dired.c (file_name_completion): Fix arguments to
      Fcompare_strings.  (Bug#38056)
    • Stephen Gildea's avatar
      Fix English grammar in some doc strings and comments · 1d4862e8
      Stephen Gildea authored
      (files.el subr.el): Fix some grammar errors in doc strings and comments.
      (frame.c fringe.c image.c xfns.c xterm.c): Fix some English grammar
      errors in doc strings.
    • Paul Eggert's avatar
      Improve time documentation a bit more · 8ae7c886
      Paul Eggert authored
      * doc/lispref/os.texi (Time of Day, Time Conversion)
      (Time Parsing, Time Calculations): Improve doc.