]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Thu, 14 Nov 2019 11:51:38 +0000 (13:51 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years ago; * src/font.h (font_is_ignored): Add prototype to avoid warnings.
Eli Zaretskii [Thu, 14 Nov 2019 11:50:45 +0000 (13:50 +0200)]
; * src/font.h (font_is_ignored): Add prototype to avoid warnings.

5 years agoMerge branch 'scratch/so-long-updates'
Phil Sainty [Thu, 14 Nov 2019 11:43:46 +0000 (00:43 +1300)]
Merge branch 'scratch/so-long-updates'

5 years agoMake so-long disable flymake, flyspell, flycheck
Phil Sainty [Sat, 9 Nov 2019 06:52:06 +0000 (19:52 +1300)]
Make so-long disable flymake, flyspell, flycheck

* so-long.el (so-long-minor-modes): Add flymake-mode, flyspell-mode,
and flycheck-mode.

5 years agoSupport loading so-long.el on top of an earlier version
Phil Sainty [Mon, 21 Oct 2019 11:05:50 +0000 (00:05 +1300)]
Support loading so-long.el on top of an earlier version

* so-long.el (so-long-version, so-long--latest-version): New variables.

This enables users to safely load version 1.0 of so-long.el on top of
an earlier version, as well as making provisions for doing likewise
following any incompatible changes arising in future versions.

5 years agoBackwards-compatibility function definitions for so-long.el
Phil Sainty [Mon, 21 Oct 2019 11:01:59 +0000 (00:01 +1300)]
Backwards-compatibility function definitions for so-long.el

* so-long.el (so-long-inhibit-whitespace-mode)
(so-long-make-buffer-read-only, so-long-revert-buffer-read-only)
(so-long-inhibit-global-hl-line-mode): Restore dummy definitions of
now-obsolete hook functions used by earlier versions of so-long.el,
to support users who have saved these symbols in their customized
values for the hooks in question.

5 years ago* lisp/so-long.el (so-long-unload-function): Improved feature unload
Phil Sainty [Mon, 21 Oct 2019 11:00:16 +0000 (00:00 +1300)]
* lisp/so-long.el (so-long-unload-function): Improved feature unload

5 years ago; * lisp/so-long.el (so-long-predicate): Custom type consistency
Phil Sainty [Mon, 21 Oct 2019 10:57:55 +0000 (23:57 +1300)]
; * lisp/so-long.el (so-long-predicate): Custom type consistency

This is for consistency with the other function options, which all
used the 'radio' custom type.

5 years agoDefer triggering `so-long' until the buffer is displayed
Phil Sainty [Mon, 21 Oct 2019 10:52:29 +0000 (23:52 +1300)]
Defer triggering `so-long' until the buffer is displayed

* lisp/so-long.el (so-long-invisible-buffer-function): New user option.
(so-long--set-auto-mode): Use so-long-invisible-buffer-function.
(so-long-deferred): New function/value for so-long-invisible-buffer-function.
(so-long, so-long--disable): Support for so-long-deferred.

* test/lisp/so-long-tests/autoload-longlines-mode-tests.el
* test/lisp/so-long-tests/autoload-major-mode-tests.el
* test/lisp/so-long-tests/autoload-minor-mode-tests.el
* test/lisp/so-long-tests/so-long-tests.el:
Support for so-long-deferred.

Pre-existing tests have been updated to ensure the buffer is already
displayed in cases where a call to `normal-mode' is the (potential)
trigger for `so-long'.

5 years ago; Documentation and spelling
Phil Sainty [Mon, 21 Oct 2019 12:01:28 +0000 (01:01 +1300)]
; Documentation and spelling

* lisp/so-long.el: Documentation fixes.  For the purposes of
consistency, this reverts some of the changes made in commit
41ba8231ef072571e1a6feabc15d113e5cf57556, including one which
had introduced inconsistent spelling.

ispell configuration and LocalWords have been added such that
`ispell-buffer' should find no misspellings for this library.

* test/lisp/so-long-tests/spelling-tests.el (so-long-spelling):
New test to check the spelling using `ispell-buffer'.

5 years agoFix recent documentation changes
Eli Zaretskii [Thu, 14 Nov 2019 10:25:10 +0000 (12:25 +0200)]
Fix recent documentation changes

* doc/lispref/minibuf.texi (Multiple Queries): Move the
reference to 'read-char-from-minibuffer' from here...
* doc/lispref/commands.texi (Reading One Event): ...to here.
Fix the wording of the description of
'read-char-from-minibuffer'.

5 years agoMake GTK font chooser respect face-ignored-fonts
Robert Pluim [Wed, 13 Nov 2019 14:19:04 +0000 (15:19 +0100)]
Make GTK font chooser respect face-ignored-fonts

* src/font.c (font_delete_unmatched): Move Vface_ignored_fonts
matching to...
(font_is_ignored): ..Here.  New function.
* src/gtkutil.c (xg_font_filter): New function, uses font_is_ignored
to filter fonts.
(xg_get_font): Set GTK font chooser filter to xg_font_filter.
* src/gtkutil.h: Add prototype for font_is_ignored.

5 years agoObsolete rfc2047-quote-special-characters-in-quoted-strings (bug#38200)
Katsumi Yamaoka [Thu, 14 Nov 2019 08:27:58 +0000 (08:27 +0000)]
Obsolete rfc2047-quote-special-characters-in-quoted-strings (bug#38200)

* lisp/mail/rfc2047.el
(rfc2047-quote-special-characters-in-quoted-strings): Make obsolete
instead of removing it.

5 years agoRemove rfc2047-quote-special-characters-in-quoted-strings (bug#38200)
Katsumi Yamaoka [Thu, 14 Nov 2019 08:05:05 +0000 (08:05 +0000)]
Remove rfc2047-quote-special-characters-in-quoted-strings (bug#38200)

* lisp/mail/rfc2047.el
(rfc2047-quote-special-characters-in-quoted-strings): Remove function.
(rfc2047-encode-message-header, rfc2047-encode-region): Don't use it.

5 years ago(vc-default-update-on-retrieve-tag): Accept backend argument
Andrii Kolomoiets [Thu, 14 Nov 2019 07:18:22 +0000 (08:18 +0100)]
(vc-default-update-on-retrieve-tag): Accept backend argument

* lisp/vc/vc.el (vc-default-update-on-retrieve-tag): Accept
backend argument (bug#38156).  This fixes a bug introduced in the
previous patch.

5 years agoFix mouse-1 on Gnus article buffer buttons
Lars Ingebrigtsen [Thu, 14 Nov 2019 06:48:41 +0000 (07:48 +0100)]
Fix mouse-1 on Gnus article buffer buttons

* lisp/gnus/gnus-art.el (gnus-article-add-button): Make mouse-1
work as required by mouse-1-click-follows-link (bug#38144).

5 years agoVC: ability to skip update buffers prompt
Andrii Kolomoiets [Thu, 14 Nov 2019 05:55:28 +0000 (06:55 +0100)]
VC: ability to skip update buffers prompt

* lisp/vc/vc.el (vc-default-update-on-retrieve-tag): New function.
(vc-retrieve-tag): Call `update-on-retrieve-tag' backend function
to determine if prompt for update buffers is needed; Include tag
name into the "Retrieving tag" message.
* lisp/vc/vc-git.el (vc-git-update-on-retrieve-tag):
* lisp/vc/vc-hg.el (vc-hg-update-on-retrieve-tag):
* lisp/vc/vc-svn.el (vc-svn-udate-on-retrieve-tag): New functions.
Buffers update prompt on `vc-retrieve-tag' is omitted (bug#38156).

5 years agoMake clone-buffer not unbind global variable
Braun Gábor [Thu, 14 Nov 2019 05:45:37 +0000 (06:45 +0100)]
Make clone-buffer not unbind global variable

* lisp/simple.el (clone-buffer): Make clone-buffer not globally
unset locally void variable (bug#38179).

Copyright-paperwork-exempt: yes

5 years agoUpdate signature in etc/DISTRIB
Lars Ingebrigtsen [Thu, 14 Nov 2019 05:37:09 +0000 (06:37 +0100)]
Update signature in etc/DISTRIB

* etc/DISTRIB: Update signature (bug#38188).

5 years agoMake dired-do-compress-to require format-spec
Lars Ingebrigtsen [Thu, 14 Nov 2019 05:31:50 +0000 (06:31 +0100)]
Make dired-do-compress-to require format-spec

* lisp/dired-aux.el (dired-do-compress-to): Require format-spec
runtime (bug#38189).

5 years agoAllow using edebug-remove-instrumentation more fine-grained
Lars Ingebrigtsen [Thu, 14 Nov 2019 05:19:59 +0000 (06:19 +0100)]
Allow using edebug-remove-instrumentation more fine-grained

* lisp/emacs-lisp/edebug.el (edebug-remove-instrumentation):
Prompt the user for what functions to remove instrumentation from
a la cancel-edebug-on-entry (bug#38195).

5 years agotime-stamp: update support for time zone numeric offset
Stephen Gildea [Thu, 14 Nov 2019 04:21:42 +0000 (20:21 -0800)]
time-stamp: update support for time zone numeric offset

* time-stamp.el (time-stamp-string-preprocess): Change new format for
numeric time zone from %:z to %5z to match format-time-string better.
(time-stamp-format): Document support for numeric time zone.
See discussion in bug#32931.

* NEWS: Mention time-stamp-format %5z.

5 years agoDon't show Attachment(s) header in html article viewed with browse-url
Katsumi Yamaoka [Thu, 14 Nov 2019 02:24:26 +0000 (02:24 +0000)]
Don't show Attachment(s) header in html article viewed with browse-url

* lisp/gnus/gnus-art.el (gnus-article-browse-html-article):
Bind gnus-mime-display-attachment-buttons-in-header to nil.

5 years ago* lisp/tab-line.el (tab-line-tabs-buffer-list): Use window-prev-buffers too.
Juri Linkov [Wed, 13 Nov 2019 22:09:06 +0000 (00:09 +0200)]
* lisp/tab-line.el (tab-line-tabs-buffer-list): Use window-prev-buffers too.

* lisp/tab-line.el (tab-line-tabs-buffer-list): Move window-prev-buffers here
from tab-line-tabs-buffer-groups.

5 years agoFix double-rounding bug in ceiling etc.
Paul Eggert [Wed, 13 Nov 2019 21:07:01 +0000 (13:07 -0800)]
Fix double-rounding bug in ceiling etc.

This is doable now that we have bignums.
* src/floatfns.c (integer_value): Remove; no longer used.
(rescale_for_division): New function.
(rounding_driver): Use it to divide properly (by using bignums)
even when arguments are float, fixing a double-rounding FIXME.
* src/lisp.h (LOG2_FLT_RADIX): Move here ...
* src/timefns.c (frac_to_double): ... from here.
* test/src/floatfns-tests.el (big-round):
Add a test to catch the double-rounding bug.

5 years agoRefactor bignum multiplication, exponentiation
Paul Eggert [Wed, 13 Nov 2019 20:10:31 +0000 (12:10 -0800)]
Refactor bignum multiplication, exponentiation

This doesn’t alter behavior, and simplifies the next commit.
* src/bignum.c (GMP_NLIMBS_MAX, NLIMBS_LIMIT, emacs_mpz_size)
(emacs_mpz_mul, emacs_mpz_mul_2exp, emacs_mpz_pow_ui): Move here ...
* src/data.c: ... from here.

5 years agoRefactor double integer scaling
Paul Eggert [Sun, 10 Nov 2019 23:06:49 +0000 (15:06 -0800)]
Refactor double integer scaling

This doesn’t alter behavior, and simplifies a future commit.
* src/floatfns.c (double_integer_scale): New function,
with body adapted from the old timefns.c.
* src/timefns.c (decode_float_time): Use it.

5 years agoFinish last Tramp patch
Michael Albinus [Wed, 13 Nov 2019 14:55:35 +0000 (15:55 +0100)]
Finish last Tramp patch

* lisp/net/tramp.el (outline-regexp): Remove declaration.
(tramp-debug-outline-regexp): Add thread regexp.
(tramp-debug-font-lock-keywords): New defconst.
(tramp-debug-outline-level): Adapt to changed
`tramp-debug-outline-regexp'.
(tramp-get-debug-buffer): Use `tramp-debug-font-lock-keywords'.

5 years agoAdd "Noto Color Emoji" to face-ignored-fonts
Robert Pluim [Wed, 13 Nov 2019 13:43:33 +0000 (14:43 +0100)]
Add "Noto Color Emoji" to face-ignored-fonts

* src/xfaces.c (syms_of_xfaces) [HAVE_XFT]: Add "Noto Color Emoji" to
face-ignored-fonts (Bug#37786).

5 years agoSome refinement in Tramp debug buffer.
Michael Albinus [Wed, 13 Nov 2019 13:53:43 +0000 (14:53 +0100)]
Some refinement in Tramp debug buffer.

* lisp/net/tramp.el (outline-regexp): Remove declaration.
(tramp-debug-font-lock-keywords): New defconst.
(tramp-get-debug-buffer): Use it.

5 years agoAdapt Tramp docstrings according to checkdoc
Michael Albinus [Wed, 13 Nov 2019 12:10:58 +0000 (13:10 +0100)]
Adapt Tramp docstrings according to checkdoc

* lisp/net/tramp.el (tramp-backup-directory-alist)
(tramp-echoed-echo-mark-regexp, tramp-syntax-values)
(tramp-lookup-syntax, tramp-build-prefix-format)
(tramp-build-prefix-regexp, tramp-build-method-regexp)
(tramp-build-postfix-method-format)
(tramp-build-postfix-method-regexp)
(tramp-build-prefix-ipv6-format, tramp-build-prefix-ipv6-regexp)
(tramp-build-postfix-ipv6-format)
(tramp-build-postfix-ipv6-regexp)
(tramp-build-postfix-host-format)
(tramp-build-postfix-host-regexp, tramp-unknown-id-string)
(tramp-unknown-id-integer, tramp-build-file-name-regexp)
(tramp-build-completion-file-name-regexp, tramp-chunksize)
(tramp-find-method, tramp-find-user, tramp-find-host)
(tramp-dissect-file-name, tramp-get-buffer)
(tramp-get-connection-buffer, tramp-debug-message, tramp-error)
(with-tramp-connection-property, tramp-run-real-handler)
(tramp-file-name-for-operation, tramp-file-name-handler)
(tramp-completion-file-name-handler)
(tramp-completion-handle-file-name-completion)
(tramp-completion-dissect-file-name)
(tramp-completion-dissect-file-name1)
(tramp-handle-file-name-as-directory)
(tramp-handle-file-name-directory)
(tramp-handle-file-name-nondirectory, tramp-mode-string-to-int)
(tramp-file-mode-from-int):
* lisp/net/tramp-adb.el (tramp-adb-file-name-p):
* lisp/net/tramp-archive.el (tramp-archive-run-real-handler)
(tramp-archive-file-name-handler)
(tramp-archive-dissect-file-name)
(with-parsed-tramp-archive-file-name)
(tramp-archive-gvfs-file-name, tramp-archive-handle-access-file):
* lisp/net/tramp-cmds.el (tramp-list-remote-buffers):
* lisp/net/tramp-compat.el (tramp-unload-file-name-handlers)
(tramp-compat-funcall, tramp-compat-tramp-file-name-slots):
* lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler)
(tramp-ftp-file-name-p):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-p)
(tramp-gvfs-file-name-handler)
(tramp-gvfs-stringify-dbus-message)
(tramp-gvfs-monitor-process-filter)
(tramp-gvfs-handler-mounted-unmounted):
* lisp/net/tramp-integration.el
(tramp-rfn-eshadow-update-overlay-regexp):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-p)
(tramp-rclone-file-name-handler, tramp-rclone-send-command):
* lisp/net/tramp-sh.el (tramp-sh--quoting-style-options)
(tramp-sh-gio-monitor-process-filter)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-find-executable)
(tramp-set-remote-path, tramp-open-shell, tramp-find-shell)
(tramp-send-command-and-check, tramp-shell-case-fold)
(tramp-get-remote-path):
* lisp/net/tramp-smb.el (tramp-smb-file-name-p)
(tramp-smb-file-name-handler)
(tramp-smb-do-file-attributes-with-stat)
(tramp-smb-handle-substitute-in-file-name)
(tramp-smb-get-stat-capability, tramp-smb-shell-quote-argument):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-p)
(tramp-sudoedit-file-name-handler)
(tramp-sudoedit-send-command-string):
* test/lisp/net/tramp-archive-tests.el (tramp-archive-test-all):
* test/lisp/net/tramp-tests.el (tramp--test-gvfs-p)
(tramp--test-with-proper-process-name-and-buffer)
(tramp-test-all): Adapt docstrings according to `checkdoc'.

5 years agoAvoid fido-mode's setup on non-icomplete minibuffers
João Távora [Wed, 13 Nov 2019 09:47:25 +0000 (09:47 +0000)]
Avoid fido-mode's setup on non-icomplete minibuffers

Otherwise we would lose things like C-r (isearch-backward) when doing
simple stuff like non-icomplete pp-eval-expression.

* lisp/icomplete.el (icomplete--fido-mode-setup): Restrict setup
to when icomplete-mode really kicks in.

5 years ago* lisp/tab-line.el (tab-line-tabs-buffer-list-function): New variable.
Juri Linkov [Tue, 12 Nov 2019 21:31:12 +0000 (23:31 +0200)]
* lisp/tab-line.el (tab-line-tabs-buffer-list-function): New variable.

(tab-line-tabs-buffer-list): New function.
(tab-line-tabs-mode-buffers, tab-line-tabs-buffer-groups):
Call tab-line-tabs-mode-buffers.
(tab-line-tabs-buffer-groups): Add 'close' function that uses
kill-buffer instead of bury-buffer that makes no sense here.
(tab-line-format): Don't show the close button when a tab
has no 'close' function or buffer.
(tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab):
Support tabs with 'buffer' properties.
(tab-line-close-tab): Call 'close' function when defined.

5 years ago* lisp/dired.el (dired-dwim-target): Add new choices (bug#35385)
Juri Linkov [Tue, 12 Nov 2019 21:21:14 +0000 (23:21 +0200)]
* lisp/dired.el (dired-dwim-target): Add new choices (bug#35385)

* lisp/dired.el (dired-dwim-target): Add choices
dired-dwim-target-next and dired-dwim-target-recent.

* lisp/dired-aux.el (dired-dwim-target-next)
(dired-dwim-target-recent): New functions.
(dired-dwim-target-directories): Call either of them.

* doc/emacs/dired.texi (Operating on Files): Mention new
preferences in dired-dwim-target.

5 years agoConditionally omit edition numbers, dates in doc
Paul Eggert [Tue, 12 Nov 2019 19:29:00 +0000 (11:29 -0800)]
Conditionally omit edition numbers, dates in doc

This redoes the 2019-11-02T00:24:02!eggert@cs.ucla.edu patch,
updated after consultation with John Sullivan.
Omit printed edition numbers in online manuals while keeping
them in printed manuals.  In online manuals the edition
numbers seem to cause more confusion than they cure; e.g.,
https://shop.fsf.org/books/gnu-emacs-manual-18th-edition-v-261
currently advertises "18th edition" even as it points to
https://www.gnu.org/software/emacs/manual/pdf/emacs.pdf which
says "Seventeenth Edition".  It is simpler and less confusing
to stick to one version number like "27.0" in online manuals.
For printed manuals people can run, e.g., "texi2any -D
'EDITION Nineteenth'" when generating the 19th printed edition
of the Emacs manual.
* doc/emacs/emacs.texi (EDITION):
* doc/lispintro/emacs-lisp-intro.texi (edition-number, update-date):
* doc/lispref/elisp.texi (VERSION, DATE):
Remove definitions.  Instead, let the person printing the book
specify these values, with the default being the online version
which does not have printed edition numbers.
* doc/lispintro/emacs-lisp-intro.texi (titlepage-edition-number):
New flag, for the edition number as it appears on the title page.

5 years agoMake sure buffer is live before retrieving underline properties (Bug#38038)
Martin Rudalics [Tue, 12 Nov 2019 15:44:30 +0000 (16:44 +0100)]
Make sure buffer is live before retrieving underline properties (Bug#38038)

* src/window.h (WINDOW_BUFFER_LOCAL_VALUE): New macro.
* src/nsterm.m (ns_draw_text_decoration):
* src/w32term.c (w32_draw_glyph_string):
* src/xterm.c (x_draw_glyph_string): Make sure buffer is live
before retrieving underline properties from it (Bug#38038).

5 years ago* lisp/emacs-lisp/easymenu.el (easy-menu-make-symbol): Fix last change
Stefan Monnier [Tue, 12 Nov 2019 13:39:18 +0000 (08:39 -0500)]
* lisp/emacs-lisp/easymenu.el (easy-menu-make-symbol): Fix last change

5 years agoFix a few more minor quoting problems.
Paul Eggert [Tue, 12 Nov 2019 06:54:06 +0000 (22:54 -0800)]
Fix a few more minor quoting problems.

5 years agoRename font-log-refontify
Lars Ingebrigtsen [Tue, 12 Nov 2019 02:40:06 +0000 (03:40 +0100)]
Rename font-log-refontify

* lisp/font-lock.el (font-lock-debug-fontify): Rename to make it
clearer what the function is for.
* doc/lispref/modes.texi (Font Lock Basics): Ditto.

5 years ago* lisp/startup.el (command-line): Fix last change in package--activated
Stefan Monnier [Mon, 11 Nov 2019 22:14:30 +0000 (17:14 -0500)]
* lisp/startup.el (command-line): Fix last change in package--activated

5 years agoFix some quoting glitches in doc strings
Paul Eggert [Mon, 11 Nov 2019 18:30:13 +0000 (10:30 -0800)]
Fix some quoting glitches in doc strings

5 years agoFix quoting glitch in formatting Gnus messages
Paul Eggert [Mon, 11 Nov 2019 18:29:56 +0000 (10:29 -0800)]
Fix quoting glitch in formatting Gnus messages

* lisp/gnus/gnus-util.el (defmacro, gnus-message): Use
‘format-message’, not ‘format’, to be compatible with ‘message’.

5 years agoFix glitch in generating cxterm doc strings
Paul Eggert [Mon, 11 Nov 2019 18:29:09 +0000 (10:29 -0800)]
Fix glitch in generating cxterm doc strings

* lisp/international/titdic-cnv.el (tit-process-header):
In generated doc strings, escape \, ", ', and ` properly.
Currently only ' appears but we might as well future-proof this.

5 years agoVerilog-Mode collected updates.
Wilson Snyder [Mon, 11 Nov 2019 16:47:54 +0000 (11:47 -0500)]
Verilog-Mode collected updates.

* lisp/progmodes/verilog-mode.el (verilog-read-decls): Fix to skip
over base64-encoded protected data while reading AUTO declarations.
Reported by Berend Ozceri.
(verilog-auto-inst-port, verilog-auto-inst-vector): Support 'unsigned'
in `verilog-auto-inst-vector'. Reported by Jeff Riley.
(verilog-read-decls): Fix to ignore `line in AUTOINST, git
bug18. Reported by Berend Ozceri.
(verilog-library-extensions): Support .va /.vah/.sva/.svah file
extensions to load verilog-mode for Verilog-AMS.  Reported by Shareef
Jalloq.
(verilog-read-sub-decls-expr): Fix AUTOOUTPUT etc misparsing Verilog
casts, bug1526.  Reported by Udi Finkelstein.

5 years agoAdd several configuration files to auto-mode-alist
Stefan Kangas [Mon, 11 Nov 2019 15:05:21 +0000 (16:05 +0100)]
Add several configuration files to auto-mode-alist

* lisp/files.el (auto-mode-alist): Use conf-mode for .asoundrc,
.mairixrc, .mbsyncr, .msmtprc, .nvidia-settings-rc, .offlineimaprc,
.reportbugrc, .rtorrent.rc, .screenrc, .mpdconf, .notmuch-config.  Use
conf-windows-mode for .redshift.conf.  (Bug#38065)

5 years agoDocument Lisp floats a bit better
Paul Eggert [Sun, 10 Nov 2019 23:01:06 +0000 (15:01 -0800)]
Document Lisp floats a bit better

* doc/lispref/numbers.texi (Float Basics):
* doc/misc/cl.texi (Implementation Parameters):
* lisp/emacs-lisp/cl-lib.el (cl-most-positive-float)
(cl-least-positive-float)
(cl-least-positive-normalized-float, cl-float-epsilon)
(cl-float-negative-epsilon):
Document IEEE floating point better.  Don’t suggest that Emacs
might use some floating-point format other than IEEE format, as
Emacs currently assumes IEEE in several places and there seems
little point in removing those assumptions.

5 years ago* lisp/tab-bar.el: Better handling of closed-tabs in tab-bar-list.
Juri Linkov [Sun, 10 Nov 2019 21:30:41 +0000 (23:30 +0200)]
* lisp/tab-bar.el: Better handling of closed-tabs in tab-bar-list.

* lisp/tab-bar.el (tab-bar-list-delete-from-list): Add closed tab to
tab-bar-closed-tabs.
(tab-bar-list-select): Don't add the closed intermediate tab to
tab-bar-closed-tabs.

5 years ago* lisp/autorevert.el: Use 'minibuffer-message' to not obscure the prompt.
Juri Linkov [Sun, 10 Nov 2019 21:21:46 +0000 (23:21 +0200)]
* lisp/autorevert.el: Use 'minibuffer-message' to not obscure the prompt.

* lisp/autorevert.el (auto-revert-handler): Use 'minibuffer-message'
instead of 'message'.  Call it from the original window's buffer
that in case of the minibuffer should be current, so
minibuffer-message could add a message to it.  (Bug#34614)

* lisp/emacs-lisp/ert-x.el (ert--make-message-advice): Add nil to
the list of values to not use for format-message, because
minibuffer-message calls 'message' with nil argument, and tests fail.

5 years agoMake dired-get-subdir-min obsolete
Stefan Kangas [Sun, 10 Nov 2019 21:15:31 +0000 (22:15 +0100)]
Make dired-get-subdir-min obsolete

* lisp/dired.el (dired-get-subdir-min): Redefine as obsolete function
alias for 'cdr'.  (Bug#11571)
(dired-get-subdir, dired-get-subdir-max, dired-clear-alist)
(dired-next-subdir, dired-current-directory):
* lisp/dired-aux.el (dired-rename-subdir-2)
(dired-alist-sort, dired-insert-subdir-del)
(dired-insert-subdir-doupdate, dired-goto-subdir)
(dired-hide-subdir, dired-hide-all): Use 'cdr' instead of
the above obsolete function.
(dired-subdir-alist): Doc fix.

Co-authored-by: Drew Adams <drew.adams@oracle.com>
5 years agoMove read-char-from-minibuffer from simple.el to subr.el and document it.
Juri Linkov [Sun, 10 Nov 2019 21:06:37 +0000 (23:06 +0200)]
Move read-char-from-minibuffer from simple.el to subr.el and document it.

* doc/lispref/minibuf.texi (Multiple Queries):
Document read-char-from-minibuffer (bug#10477, bug#38076).

* lisp/subr.el (read-char-history)
(read-char-from-minibuffer-map)
(read-char-from-minibuffer-map-hash)
(read-char-from-minibuffer-insert-char)
(read-char-from-minibuffer-insert-other, empty-history)
(read-char-from-minibuffer): Move from simple.el to subr.el.

5 years ago* lisp/cedet/semantic/wisent/comp.el (wisent-struct): Remove
Stefan Monnier [Sun, 10 Nov 2019 04:57:22 +0000 (23:57 -0500)]
* lisp/cedet/semantic/wisent/comp.el (wisent-struct): Remove

(core, shifts, reductions, errs): Use cl-defstruct instead.
Adjust all users of the set-<struct>-<field> setters to use
`setf` instead.

5 years agoAdd extra bindings to fido-mode.
Jimmy Aguilar Mena [Sun, 10 Nov 2019 03:39:53 +0000 (04:39 +0100)]
Add extra bindings to fido-mode.

* lisp/icomplete.el (icomplete-fido-mode-map) : Add arrows and other
bindings to reproduce ido behaviour.

5 years agoDisable a portion of one doc-test
Glenn Morris [Sun, 10 Nov 2019 03:38:05 +0000 (19:38 -0800)]
Disable a portion of one doc-test

* test/src/doc-tests.el (doc-test-substitute-command-keys):
Disable component that fails twice in the past 5 weeks
due to changes in the minibuffer map.

5 years agoDon't overwrite y-or-n-p prompt by message from asynchronous man (bug#19064)
Juri Linkov [Sat, 9 Nov 2019 22:51:25 +0000 (00:51 +0200)]
Don't overwrite y-or-n-p prompt by message from asynchronous man (bug#19064)

* lisp/man.el (Man-bgproc-sentinel): Postpone displaying the message
and deleting the buffer until exiting the code block with
with-current-buffer.  Use minibuffer-message to display message
to handle possibly active minibuffer.

5 years agoDon't obscure the minibuffer by message (bug#17272)
Juri Linkov [Sat, 9 Nov 2019 22:46:29 +0000 (00:46 +0200)]
Don't obscure the minibuffer by message (bug#17272)

* lisp/subr.el (do-after-load-evaluation): Use minibuffer-message
to not obscure a possibly active minibuffer.

* lisp/minibuffer.el (minibuffer-message):
Record message in the *Messages* buffer.

5 years agoUse the minibuffer to read answer in userlock.el (bug#38076)
Juri Linkov [Sat, 9 Nov 2019 22:43:09 +0000 (00:43 +0200)]
Use the minibuffer to read answer in userlock.el (bug#38076)

* lisp/userlock.el: Rename 'fn' to 'filename'.
(ask-user-about-supersession-threat): Use read-char-from-minibuffer
instead of read-char-choice.

5 years ago* lisp/startup.el (package--activated): Fix redundant definition
Stefan Monnier [Sat, 9 Nov 2019 22:42:36 +0000 (17:42 -0500)]
* lisp/startup.el (package--activated): Fix redundant definition

5 years ago* lisp/ffap.el (ffap-read-file-or-url): Don't use url-file-handler
Stefan Monnier [Sat, 9 Nov 2019 18:32:20 +0000 (13:32 -0500)]
* lisp/ffap.el (ffap-read-file-or-url): Don't use url-file-handler

Simplify accordingly (and don't call substitute-in-file-name redundantly).

5 years agohack-local-variables-confirm uses the minibuffer to read answer (bug#38076)
Juri Linkov [Sat, 9 Nov 2019 22:32:09 +0000 (00:32 +0200)]
hack-local-variables-confirm uses the minibuffer to read answer (bug#38076)

* lisp/files.el (hack-local-variables-confirm):
Use read-char-from-minibuffer instead of read-char-choice.
Remove special handling of original window scrolling
that is now supported in the minibuffer.  This fixes
https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg01020.html
(files--ask-user-about-large-file): Use read-char-from-minibuffer
instead of read-char-choice.

5 years agoAdd CHARS arg to read-char-from-minibuffer compatible with read-char-choice.
Juri Linkov [Sat, 9 Nov 2019 22:21:26 +0000 (00:21 +0200)]
Add CHARS arg to read-char-from-minibuffer compatible with read-char-choice.

* lisp/simple.el (read-char-history):
Rename from read-char-from-minibuffer-history.  (Bug#38076)
(read-char-from-minibuffer-insert-char):
Rename from read-char-from-minibuffer-self-insert.
(read-char-from-minibuffer-map-hash): New defconst.
(read-char-from-minibuffer-insert-other): New command.
(read-char-from-minibuffer): Add optional args CHARS and HISTORY.
(zap-to-char): Use 'read-char-history as HISTORY arg of
read-char-from-minibuffer.

* lisp/emacs-lisp/map-ynp.el (read-answer): Use sit-for instead of sleep-for.
Replace short answer history yes-or-no-p-history with read-char-history.

5 years ago'y-or-n-p' now uses the minibuffer to read 'y' or 'n' answer (bug#38076)
Juri Linkov [Sat, 9 Nov 2019 22:04:13 +0000 (00:04 +0200)]
'y-or-n-p' now uses the minibuffer to read 'y' or 'n' answer (bug#38076)

* doc/lispref/minibuf.texi (Yes-or-No Queries): Update the fact
that y-or-n-p uses the minibuffer.

* lisp/subr.el (y-or-n-p-history-variable): New variable.
(y-or-n-p-map): New keymap.
(y-or-n-p-insert-y, y-or-n-p-insert-n, y-or-n-p-insert-other):
New commands.
(y-or-n-p): Rewrite to use read-from-minibuffer and make-composed-keymap
with y-or-n-p-map and query-replace-map.

5 years agoRun scroll/recenter commands from minibuffer in original window (bug#38076)
Juri Linkov [Sat, 9 Nov 2019 21:32:46 +0000 (23:32 +0200)]
Run scroll/recenter commands from minibuffer in original window (bug#38076)

* lisp/minibuffer.el (with-minibuffer-selected-window): New macro.
(minibuffer-recenter-top-bottom, minibuffer-scroll-up-command)
(minibuffer-scroll-down-command, minibuffer-scroll-other-window):
(minibuffer-scroll-other-window-down): New commands.
(minibuffer-local-map): Remap recenter/scroll symbols to their
minibuffer wrappers: recenter-top-bottom to minibuffer-recenter-top-bottom.

* src/window.c (Fother_window_for_scrolling): Use 'lambda' value for
MINIBUF arg of Fnext_window, so minibuffer-scroll-other-window and
minibuffer-scroll-other-window-down doesn't try to scroll the
minibuffer window.

5 years agoImprove an error about the message signer
Karl Fogel [Mon, 4 Nov 2019 20:39:14 +0000 (14:39 -0600)]
Improve an error about the message signer

* lisp/gnus/mml-sec.el (mml-secure-epg-sign): Don't suggest setting
  `mml-secure-smime-sign-with-sender' if it's already non-nil.

5 years agoFix font-lock-keywords slightly
Lars Ingebrigtsen [Sat, 9 Nov 2019 20:02:18 +0000 (21:02 +0100)]
Fix font-lock-keywords slightly

* lisp/font-lock.el (font-lock-keywords): Tweak doc string
slightly (bug#35005).

5 years agoFix case-insensitive completion of buffer names
Eli Zaretskii [Sat, 9 Nov 2019 19:56:30 +0000 (21:56 +0200)]
Fix case-insensitive completion of buffer names

* 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)

5 years agoFix an error in selecting encoding when writing zip files
Eli Zaretskii [Sat, 9 Nov 2019 19:40:53 +0000 (21:40 +0200)]
Fix an error in selecting encoding when writing zip files

* 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)

5 years ago* lisp/progmodes/cc-vars.el (c-mark-wrong-style-of-comment):
Glenn Morris [Sat, 9 Nov 2019 19:17:20 +0000 (11:17 -0800)]
* lisp/progmodes/cc-vars.el (c-mark-wrong-style-of-comment):
Fix version.

5 years agoRevert "Nudge icomplete-mode a little closer to fido-mode"
João Távora [Sat, 9 Nov 2019 14:54:09 +0000 (14:54 +0000)]
Revert "Nudge icomplete-mode a little closer to fido-mode"

Fixes bug#38131.

This is not the best way to have fido-mdoe emulate that particular bit
of ido-mode.

This reverts commit 5761a1a3939e23d8e8c725241dd9398a12f191b0.

5 years agoRename some commands to reflect they are fido-mode specific
João Távora [Fri, 8 Nov 2019 23:44:44 +0000 (23:44 +0000)]
Rename some commands to reflect they are fido-mode specific

* lisp/icomplete.el (icomplete-fido-kill)
(icomplete-fido-delete-char, icomplete-fido-ret)
(icomplete-fido-backward-updir): Rename from icomplete-magic-ido-*
versions.
(icomplete-fido-mode-map): Use new command names.

5 years agoProtect flex's display-sort-function against 0-length candidates
João Távora [Fri, 8 Nov 2019 23:40:18 +0000 (23:40 +0000)]
Protect flex's display-sort-function against 0-length candidates

* lisp/minibuffer.el (completion--flex-adjust-metadata): Assume a
candidate missing a score has a score of 0.

5 years agoWiden around c-font-lock-fontify-region. This fixes bug #38049.
Alan Mackenzie [Sat, 9 Nov 2019 14:30:52 +0000 (14:30 +0000)]
Widen around c-font-lock-fontify-region.  This fixes bug #38049.

* 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.

5 years agoCC Mode. Allow fontification of "wrong" style comments with warning face.
Alan Mackenzie [Sat, 9 Nov 2019 12:09:30 +0000 (12:09 +0000)]
CC Mode.  Allow fontification of "wrong" style comments with warning face.

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
function.
(c-cpp-matchers): Call c-maybe-font-lock-wrong-style-comments when
appropriate.

* lisp/progmodes/cc-vars.el (c-mark-wrong-style-of-comment): New customizable
option.

* 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
footnote.
(Wrong Comment Style): New page.

5 years agoFix unresponsive Help menu in macOS
Nick Helm [Mon, 14 Oct 2019 01:11:25 +0000 (14:11 +1300)]
Fix unresponsive Help menu in macOS

* src/nsterm.m (ns_check_menu_open): Don't postpone mouse drag and
non-user-generated mouse down events (Bug#31371).

5 years agoAvoid compiler warnings in addpm.c and ddeclient.c
Eli Zaretskii [Sat, 9 Nov 2019 09:53:02 +0000 (11:53 +0200)]
Avoid compiler warnings in addpm.c and ddeclient.c

* nt/ddeclient.c (DdeCallback):
* nt/addpm.c (DdeCallback): Modify types of the last 2
arguments to avoid compiler warnings in 64-bit builds.
(Bug#38040)

5 years agoFix last change
Eli Zaretskii [Sat, 9 Nov 2019 09:43:19 +0000 (11:43 +0200)]
Fix last change

* 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)

5 years agoMention future history in history-related minibuffer commands
Hong Xu [Sat, 2 Nov 2019 01:06:44 +0000 (18:06 -0700)]
Mention future history in history-related minibuffer commands

* 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)

5 years agoFix some quoting glitches in doc strings
Paul Eggert [Sat, 9 Nov 2019 01:07:13 +0000 (17:07 -0800)]
Fix some quoting glitches in doc strings

This also fixes a misplaced "only".

5 years ago* lisp/ffap.el (ffap-read-file-or-url): Fix some URL cases
Stefan Monnier [Fri, 8 Nov 2019 18:59:23 +0000 (13:59 -0500)]
* lisp/ffap.el (ffap-read-file-or-url): Fix some URL cases

5 years ago* lisp/ffap.el (ffap-read-file-or-url): Simplify further
Stefan Monnier [Fri, 8 Nov 2019 18:32:46 +0000 (13:32 -0500)]
* lisp/ffap.el (ffap-read-file-or-url): Simplify further

5 years ago* lisp/ffap.el (ffap-read-file-or-url): Use `read-file-name`
Thierry Volpiatto [Fri, 8 Nov 2019 15:20:40 +0000 (10:20 -0500)]
* lisp/ffap.el (ffap-read-file-or-url): Use `read-file-name`

Since we use `url-handler-mode` to deal with URLs, `read-file-name`
works just as well, with the added benefit that it interacts correctly
with packages that rebind `read-file-name-function`, such as Helm.

(ffap-read-url-internal, ffap-read-file-or-url-internal): Remove, unused.

5 years agoFix MS-Windows version reference in FAQ
Eli Zaretskii [Fri, 8 Nov 2019 14:41:26 +0000 (15:41 +0100)]
Fix MS-Windows version reference in FAQ

* doc/misc/efaq-w32.texi (Which versions of Windows): Clarify that we
support all recent versions of MS-Windows.  (Bug#38023)

5 years agoNudge icomplete-mode a little closer to fido-mode
João Távora [Fri, 8 Nov 2019 00:11:34 +0000 (00:11 +0000)]
Nudge icomplete-mode a little closer to fido-mode

* lisp/icomplete.el (icomplete-completions): Don't use ellipsis when
truncating determ in fido-mode.  Highlight the center part of
determ with icomplete-first-match.

5 years agoHave pcm styles apply faces to face prop, not font-lock-face
João Távora [Thu, 7 Nov 2019 23:54:21 +0000 (23:54 +0000)]
Have pcm styles apply faces to face prop, not font-lock-face

This is the way the basic completion styles work.  This fixes
candidate highlighting in icomplete.

* lisp/minibuffer.el (completion-pcm--hilit-commonality): Apply
faces to 'face property, not font-lock-face.

5 years agoMinor copyedits in ELisp manual
Eli Zaretskii [Fri, 8 Nov 2019 09:55:36 +0000 (11:55 +0200)]
Minor copyedits in ELisp manual

* doc/lispref/lists.texi (Sets And Lists): Minor rewording of
the "Common Lisp note".  (Bug#37811)

5 years agoEnsure building and running on non-IPv6 capable hosts works
Robert Pluim [Thu, 7 Nov 2019 15:16:39 +0000 (16:16 +0100)]
Ensure building and running on non-IPv6 capable hosts works

* src/process.c (Fmake_network_process) [AF_INET6]: Only build ::1
localhost when IPv6 is supported.
(Fnetwork_lookup_address_info) [AF_INET6]: Move check for Qipv6 inside
ifdef, since its definition depends on AF_INET6.  Don't return IPv6
addresses when they're not supported.

* test/src/process-tests.el (lookup-family-specification,
lookup-google): Only do IPv6 lookup if IPv6 is supported.

5 years agoHandle case where a face's :extend attribute is unspecified (Bug#37774)
Jimmy Aguilar Mena [Fri, 8 Nov 2019 08:31:33 +0000 (09:31 +0100)]
Handle case where a face's :extend attribute is unspecified (Bug#37774)

* src/xfaces.c (merge_face_vectors, merge_named_face): Handle case
where the :extend attribute's value is 'unspecified' (Bug#37774).

5 years ago* lisp/emacs-lisp/easymenu.el: Don't quote lambdas
Stefan Monnier [Thu, 7 Nov 2019 22:08:51 +0000 (17:08 -0500)]
* lisp/emacs-lisp/easymenu.el: Don't quote lambdas

(easy-menu-do-define, easy-menu-make-symbol): Replace `(lambda ..)
with a closure.

5 years agoHandle different system names of w32 in Tramp (Bug#38079)
Michael Albinus [Thu, 7 Nov 2019 17:40:13 +0000 (18:40 +0100)]
Handle different system names of w32 in Tramp (Bug#38079)

* lisp/net/tramp.el (tramp-restricted-shell-hosts-alist):
Initialize with `system-name' in small and capital chars.

5 years agoDescribe IPv6 format in docstring for 'make-network-process'
Robert Pluim [Thu, 7 Nov 2019 13:19:43 +0000 (14:19 +0100)]
Describe IPv6 format in docstring for 'make-network-process'

* src/process.c (Fmake_network_process): Add description of IPv6
address format.

5 years agoRevert "Don't flash previous buffer when connecting with emacsclient"
Eli Zaretskii [Thu, 7 Nov 2019 17:11:23 +0000 (19:11 +0200)]
Revert "Don't flash previous buffer when connecting with emacsclient"

This reverts commit 49fc040077b33bd1e78ee425575e76329b772a41.
It turns out that the fix for a minor aesthetical annoyance
caused much more serious bugs: bug#31038, bug#35726, Bug#37097,

5 years ago; * etc/NEWS: Fix wording of last change.
Eli Zaretskii [Thu, 7 Nov 2019 16:55:55 +0000 (18:55 +0200)]
; * etc/NEWS: Fix wording of last change.

5 years agopython.el: Pdbtracking improvements
Andrii Kolomoiets [Sat, 2 Nov 2019 16:08:13 +0000 (18:08 +0200)]
python.el: Pdbtracking improvements

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-unset-tracked-buffer)
(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
overlay-arrow-string.
(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

5 years ago; * etc/NEWS: Minor copyedits in the Fido mode entry.
Eli Zaretskii [Thu, 7 Nov 2019 14:16:12 +0000 (16:16 +0200)]
; * etc/NEWS: Minor copyedits in the Fido mode entry.

5 years agoMake ange-ftp fit for tramp-tests
Michael Albinus [Thu, 7 Nov 2019 11:03:19 +0000 (12:03 +0100)]
Make ange-ftp fit for tramp-tests

* 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-substitute-in-file-name)
(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-test05-expand-file-name-relative)
(tramp-test06-directory-file-name, tramp-test10-write-region)
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test17-insert-directory)
(tramp-test26-file-name-completion)
(tramp-test37-make-auto-save-file-name)
(tramp-test38-find-backup-file-name)
(tramp--test-special-characters): Use it.

5 years agoClean up major mode check in package-menu-mode
Stefan Kangas [Thu, 7 Nov 2019 03:10:43 +0000 (04:10 +0100)]
Clean up major mode check in package-menu-mode

* 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)

5 years agoTest that comint-password-prompt-regexp matches "git push"
Stefan Kangas [Thu, 7 Nov 2019 00:42:31 +0000 (01:42 +0100)]
Test that comint-password-prompt-regexp matches "git push"

* test/lisp/comint-tests.el (comint-testsuite-password-strings): Test
that 'comint-password-prompt-regexp' matches 'git push'
output.  (Bug#20910)

5 years ago* lisp/dired-aux.el (dired-vc-rename-file): New defcustom.
Juri Linkov [Wed, 6 Nov 2019 23:14:58 +0000 (01:14 +0200)]
* lisp/dired-aux.el (dired-vc-rename-file): New defcustom.

(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.

https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00069.html

5 years ago* lisp/tab-bar.el (tab-bar-history-old): Rename from tab-bar-history-current.
Juri Linkov [Wed, 6 Nov 2019 23:01:12 +0000 (01:01 +0200)]
* lisp/tab-bar.el (tab-bar-history-old): Rename from tab-bar-history-current.

(tab-bar-history-old-minibuffer-depth):
Rename from tab-bar-history--minibuffer-depth.

5 years ago* lisp/tab-line.el: More configurability for tab buffer groups.
Juri Linkov [Wed, 6 Nov 2019 22:59:28 +0000 (00:59 +0200)]
* lisp/tab-line.el: More configurability for tab buffer groups.

* lisp/tab-line.el (tab-line-tabs-buffer-group-function)
(tab-line-tabs-buffer-group-sort-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
mouse-buffer-menu-mode-groups.

5 years agoSimplify fixnum division slightly
Paul Eggert [Wed, 6 Nov 2019 19:47:39 +0000 (11:47 -0800)]
Simplify fixnum division slightly

* 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.