1. 09 Nov, 2019 13 commits
    • Eli Zaretskii's avatar
      Fix case-insensitive completion of buffer names · f2019fc6
      Eli Zaretskii authored
      * test/src/minibuf-tests.el (test-try-completion-ignore-case):
      New test, suggested by Stefan Monnier <monnier@iro.umontreal.ca>.
      * src/minibuf.c (Ftry_completion): Don't treat strings that
      are identical but for the case as if they were identical for
      the purposes of not counting the same string twice.  This
      fixes case-insensitive completion when all the candidates are
      identical but for the letter-case.  (Bug#11339)
    • Eli Zaretskii's avatar
      Fix an error in selecting encoding when writing zip files · a1a724d7
      Eli Zaretskii authored
      * lisp/international/mule-cmds.el (select-safe-coding-system):
      Treat no-conversion-multibyte that came from find-auto-coding
      the same as no-conversion for the purposes of encoding.  The
      same logic that considers no-conversion always safe should do
      the same with no-conversion-multibyte.  (Bug#38155)
    • Glenn Morris's avatar
      * lisp/progmodes/cc-vars.el (c-mark-wrong-style-of-comment): · e7318413
      Glenn Morris authored
      Fix version.
    • João Távora's avatar
      Revert "Nudge icomplete-mode a little closer to fido-mode" · afe4969a
      João Távora authored
      Fixes bug#38131.
      This is not the best way to have fido-mdoe emulate that particular bit
      of ido-mode.
      This reverts commit 5761a1a3.
    • João Távora's avatar
      Rename some commands to reflect they are fido-mode specific · 5c74b806
      João Távora authored
      * lisp/icomplete.el (icomplete-fido-kill)
      (icomplete-fido-delete-char, icomplete-fido-ret)
      (icomplete-fido-backward-updir): Rename from icomplete-magic-ido-*
      (icomplete-fido-mode-map): Use new command names.
    • João Távora's avatar
      Protect flex's display-sort-function against 0-length candidates · d9c6b437
      João Távora authored
      * lisp/minibuffer.el (completion--flex-adjust-metadata): Assume a
      candidate missing a score has a score of 0.
    • Alan Mackenzie's avatar
      Widen around c-font-lock-fontify-region. This fixes bug #38049. · 7362554e
      Alan Mackenzie authored
      * lisp/progmodes/cc-mode (c-font-lock-fontify-region): Widen in this function,
      to ensure that the CC Mode font locking mechanism can examine characters
      outside the given region.
    • Alan Mackenzie's avatar
      CC Mode. Allow fontification of "wrong" style comments with warning face. · b293aa91
      Alan Mackenzie authored
      This fixes bug #4192.
      * etc/NEWS: Add a new entry.
      * lisp/progmodes/cc-defs.el (c-font-lock-flush): New macro.
      * lisp/progmodes/cc-cmds.el (c-toggle-comment-style): On toggling the comment
      style, invoke c-font-lock-flush when c-mark-wrong-style-of-comment is non-nil,
      to cause that marking to be done instead on the other style of comment.
      * lisp/progmodes/cc-fonts.el (c-maybe-font-lock-wrong-style-comments): New
      (c-cpp-matchers): Call c-maybe-font-lock-wrong-style-comments when
      * lisp/progmodes/cc-vars.el (c-mark-wrong-style-of-comment): New customizable
      * doc/misc/cc-mode.texi (top level, Indentation Commands, Guessing the Style,
      Custom Macros): For some opening quote marks, correct '' to ``.
      (Minor Modes): Add an xref to the new page "Wrong Comment Style" in a
      (Wrong Comment Style): New page.
    • Nick Helm's avatar
      Fix unresponsive Help menu in macOS · 6daa80d0
      Nick Helm authored
      * src/nsterm.m (ns_check_menu_open): Don't postpone mouse drag and
      non-user-generated mouse down events (Bug#31371).
    • Eli Zaretskii's avatar
      Avoid compiler warnings in addpm.c and ddeclient.c · 273604dd
      Eli Zaretskii authored
      * nt/ddeclient.c (DdeCallback):
      * nt/addpm.c (DdeCallback): Modify types of the last 2
      arguments to avoid compiler warnings in 64-bit builds.
    • Eli Zaretskii's avatar
      Fix last change · 4e444027
      Eli Zaretskii authored
      * lisp/simple.el (goto-history-element)
      (next-history-element): Fix quoting of "future history".
      * doc/lispref/minibuf.texi (Minibuffer Commands)
      (Text from Minibuffer): Add index entry and cross-reference
      for "future history".  (Bug#38026)
    • Hong Xu's avatar
      Mention future history in history-related minibuffer commands · 15f4c415
      Hong Xu authored
      * lisp/simple.el (goto-history-element):
      * doc/lispref/minibuf.texi (Minibuffer Commands): Explain
      negative NABS.
      * lisp/simple.el (next-history-element):
      * doc/lispref/minibuf.texi (Minibuffer Commands): Mention
      "future history."  (Bug#38026)
    • Paul Eggert's avatar
      Fix some quoting glitches in doc strings · f8284f1e
      Paul Eggert authored
      This also fixes a misplaced "only".
  2. 08 Nov, 2019 9 commits
  3. 07 Nov, 2019 10 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/easymenu.el: Don't quote lambdas · a070bd1c
      Stefan Monnier authored
      (easy-menu-do-define, easy-menu-make-symbol): Replace `(lambda ..)
      with a closure.
    • Michael Albinus's avatar
      Handle different system names of w32 in Tramp (Bug#38079) · e8bcf45f
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-restricted-shell-hosts-alist):
      Initialize with `system-name' in small and capital chars.
    • Robert Pluim's avatar
      Describe IPv6 format in docstring for 'make-network-process' · 8ce2ec15
      Robert Pluim authored
      * src/process.c (Fmake_network_process): Add description of IPv6
      address format.
    • 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)
  4. 06 Nov, 2019 8 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.