]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoImprove documentation of exiting recursive editing
Miha Rihtaršič [Mon, 20 Sep 2021 06:00:08 +0000 (08:00 +0200)]
Improve documentation of exiting recursive editing

* doc/lispref/commands.texi (Recursive Editing): Mention what happens
when throwing a string or any other value to 'exit.
* src/keyboard.c (Frecursive_edit): Document throwing a function
to 'exit (bug#49700).

3 years agoRefactor minibuffer aborting
Miha Rihtaršič [Mon, 20 Sep 2021 05:59:29 +0000 (07:59 +0200)]
Refactor minibuffer aborting

* lisp/minibuffer.el (minibuffer-quit-recursive-edit): New optional
argument to specify how many levels of recursion to quit.

* src/eval.c (internal_catch): Remove special handling of 'exit
tag (bug#49700).
* src/minibuf.c (Fabort_minibuffers): Use
minibuffer-quit-recursive-edit to quit multiple levels of minibuffer
recursion.

3 years agoFix dolist-with-progress-reporter behaviour
Philip Kaludercic [Mon, 12 Jul 2021 15:26:43 +0000 (17:26 +0200)]
Fix dolist-with-progress-reporter behaviour

* subr.el (dolist-with-progress-reporter): Use the length of list
  argument as maximal value the reporter with reach

3 years agoRevert "Flag checkdoc-symbol-words as a :safe variable"
Stefan Kangas [Sun, 19 Sep 2021 20:28:46 +0000 (22:28 +0200)]
Revert "Flag checkdoc-symbol-words as a :safe variable"

There was no need for this change, as this variable was already marked
as :safe.

This reverts commit 222a7a1a8afdf6921e5981133c605c2d695e9281.

3 years agoAvoid segfaults due to 'bug-reference-mode'
Eli Zaretskii [Sun, 19 Sep 2021 18:39:18 +0000 (21:39 +0300)]
Avoid segfaults due to 'bug-reference-mode'

* src/xdisp.c (handle_fontified_prop): Set the frame's
inhibit_clear_image_cache flag around calls to
'fontification-functions', to avoid Lisp triggering the clearing
of image and/or face caches behind redisplay's back.  (Big#50571)

3 years agoFix blocks.awk wrt to Emoji characters
Eli Zaretskii [Sun, 19 Sep 2021 18:33:02 +0000 (21:33 +0300)]
Fix blocks.awk wrt to Emoji characters

* admin/unidata/blocks.awk: Fix emoji-data.txt processing for
older Awks.

3 years agoDo not save empty passwords in auth-source-search
Michael Albinus [Sun, 19 Sep 2021 17:59:05 +0000 (19:59 +0200)]
Do not save empty passwords in auth-source-search

* lisp/auth-source.el (auth-source-netrc-create)
(auth-source-secrets-create): Set :save-function only for non
empty passwords.

* lisp/net/tramp.el (tramp-read-passwd): Don't save empty passwords.

* test/lisp/auth-source-tests.el
(auth-source-test-secrets-create-secret): Adapt test.
(auth-source-test-netrc-create-secret): New test.

3 years agoBe explicit about missing sections in eshell manual
Stefan Kangas [Sun, 19 Sep 2021 16:33:35 +0000 (18:33 +0200)]
Be explicit about missing sections in eshell manual

* doc/misc/eshell.texi (Writing a module, Module testing)
(Directory handling, Key rebinding, Smart scrolling)
(Terminal emulation): Explicitly say that these sections remain to
be written.  (Bug#49306)

3 years ago* lisp/progmodes/elisp-mode.el (elisp-context-menu): Improve menu items.
Juri Linkov [Sun, 19 Sep 2021 16:21:27 +0000 (19:21 +0300)]
* lisp/progmodes/elisp-mode.el (elisp-context-menu): Improve menu items.

3 years agoFix build with native compilation on Cygwin
Ken Brown [Sat, 18 Sep 2021 18:03:41 +0000 (14:03 -0400)]
Fix build with native compilation on Cygwin

* src/Makefile.in (emacs$(EXEEXT)) [CYGWIN]: Rebase the *.eln
files after they are all created, to avoid fork problems later
in the build.  (Bug#50666)

3 years ago; Fix typo in package.el doc string
王滋涵 Zephyr Wang [Sun, 19 Sep 2021 15:39:26 +0000 (17:39 +0200)]
; Fix typo in package.el doc string

* lisp/emacs-lisp/package.el (package-archive-column-width): Fix
copy-paste in doc string (bug#50678).

Copyright-paperwork-exempt: yes

3 years agoClarify docstring of pcase-exhaustive
Stefan Kangas [Sun, 19 Sep 2021 15:25:39 +0000 (17:25 +0200)]
Clarify docstring of pcase-exhaustive

* lisp/emacs-lisp/pcase.el (pcase-exhaustive): Clarify docstring
by contrasting with pcase.  (Bug#44166)

3 years agoMake two unused variables obsolete
Stefan Kangas [Sun, 19 Sep 2021 14:55:10 +0000 (16:55 +0200)]
Make two unused variables obsolete

* lisp/progmodes/idlw-help.el (idlwave-help-directory)
(idlwave-help-use-hh): Make unused variables obsolete.

3 years ago; Delete a spurious comment
Stefan Kangas [Sun, 19 Sep 2021 14:54:38 +0000 (16:54 +0200)]
; Delete a spurious comment

3 years ago; Stylistic docfixes in net/*.el found by checkdoc
Stefan Kangas [Sun, 19 Sep 2021 14:48:35 +0000 (16:48 +0200)]
; Stylistic docfixes in net/*.el found by checkdoc

3 years ago* etc/NEWS: Add section on recent checkdoc changes.
Stefan Kangas [Sun, 19 Sep 2021 14:28:29 +0000 (16:28 +0200)]
* etc/NEWS: Add section on recent checkdoc changes.

3 years agoInitialise unread buffer
Mattias Engdegård [Sun, 19 Sep 2021 14:16:34 +0000 (16:16 +0200)]
Initialise unread buffer

The reader has an extra 1-char unread buffer that was incorrectly
initialised to 0, which means that the first character read would
always be NUL.  As this is often the code that looks for the
lexical-binding cookie, the first loaded source module would be
treated as dynamically bound.  During bootstrapping this is loadup.el
and so its local variables got dumped into the global environment.

* src/lread.c (unread_char): Initialise to empty.
(Fload): Initialise here too just in case.

3 years agocheckdoc: Verify format of yes-or-no-p and format-message
Stefan Kangas [Sun, 19 Sep 2021 12:09:20 +0000 (14:09 +0200)]
checkdoc: Verify format of yes-or-no-p and format-message

* lisp/emacs-lisp/checkdoc.el (checkdoc-message-text-next-string):
Check also for "yes-or-no-p" and "format-message".  Convert regexps to
use rx.

3 years ago; Some more docfixes for erc/*.el
Stefan Kangas [Sun, 19 Sep 2021 11:21:56 +0000 (13:21 +0200)]
; Some more docfixes for erc/*.el

3 years ago; Stylistic docfixes in language/*.el found by checkdoc
Stefan Kangas [Sun, 19 Sep 2021 11:15:41 +0000 (13:15 +0200)]
; Stylistic docfixes in language/*.el found by checkdoc

3 years agoFlag checkdoc-symbol-words as a :safe variable
Stefan Kangas [Sun, 19 Sep 2021 11:13:56 +0000 (13:13 +0200)]
Flag checkdoc-symbol-words as a :safe variable

* lisp/emacs-lisp/checkdoc.el (checkdoc-symbol-words): Flag as a safe
file local variable.

3 years ago; Stylistic docfixes in erc/*.el found by checkdoc
Stefan Kangas [Sun, 19 Sep 2021 10:59:01 +0000 (12:59 +0200)]
; Stylistic docfixes in erc/*.el found by checkdoc

3 years ago; Stylistic docfixes in eshell/*.el found by checkdoc
Stefan Kangas [Sun, 19 Sep 2021 10:45:56 +0000 (12:45 +0200)]
; Stylistic docfixes in eshell/*.el found by checkdoc

3 years ago; * lisp/subr.el (setq-local): Fix docstring quotes (bug#50646)
Phil Sainty [Sun, 19 Sep 2021 10:25:37 +0000 (22:25 +1200)]
; * lisp/subr.el (setq-local): Fix docstring quotes (bug#50646)

3 years agoTeach Mail mode to request Disposition Notifications
Eli Zaretskii [Sun, 19 Sep 2021 08:44:22 +0000 (11:44 +0300)]
Teach Mail mode to request Disposition Notifications

* lisp/mail/sendmail.el (mail-insert-disposition-notification-to):
New function.
(mail-mode-map): Add it to key bindings and menu bar.

3 years ago; * lisp/cedet/semantic/symref/grep.el: Use grep quoting, not egrep.
Mattias Engdegård [Sun, 19 Sep 2021 07:29:33 +0000 (09:29 +0200)]
; * lisp/cedet/semantic/symref/grep.el: Use grep quoting, not egrep.

Kindly noticed by Dmitry Gutov.

3 years agoAdd new '/opme' and '/deopme' convenience ERC commands
Amin Bandali [Sun, 19 Sep 2021 03:29:44 +0000 (23:29 -0400)]
Add new '/opme' and '/deopme' convenience ERC commands

* lisp/erc/erc.el (erc-cmd-OPME, erc-cmd-DEOPME): Add convenience
commands for setting and unsetting the operator status on the current
nick in the current channel.  'erc-cmd-OPME' relies on ChanServ for
obtaining the operator status (see doc string for more details).

* etc/NEWS: Announce the addition of the commands.

3 years agoRevert previous mode-line-modes change to unbreak bootstrap
Stefan Kangas [Sat, 18 Sep 2021 23:08:30 +0000 (01:08 +0200)]
Revert previous mode-line-modes change to unbreak bootstrap

* lisp/bindings.el (mode-line-modes): Revert previous change to
unbreak bootstrap.

3 years agoViper doc string fix
Lars Ingebrigtsen [Sat, 18 Sep 2021 22:14:42 +0000 (00:14 +0200)]
Viper doc string fix

* lisp/emulation/viper-keym.el (viper-want-ctl-h-help): Fold
over-long first line.

3 years agoFix viper-util compilation warning
Lars Ingebrigtsen [Sat, 18 Sep 2021 22:13:21 +0000 (00:13 +0200)]
Fix viper-util compilation warning

* lisp/emulation/viper-util.el (cl-lib): Require for cl-subseq.

3 years ago; Stylistic docfixes in emulation/*.el found by checkdoc
Stefan Kangas [Sat, 18 Sep 2021 21:39:01 +0000 (23:39 +0200)]
; Stylistic docfixes in emulation/*.el found by checkdoc

3 years ago* etc/NEWS: Shorten entry on move to Libera.Chat.
Stefan Kangas [Sat, 18 Sep 2021 17:09:35 +0000 (19:09 +0200)]
* etc/NEWS: Shorten entry on move to Libera.Chat.

3 years agoUse command substitution in checkdoc-recursive-edit
Stefan Kangas [Sat, 18 Sep 2021 13:38:36 +0000 (15:38 +0200)]
Use command substitution in checkdoc-recursive-edit

* lisp/emacs-lisp/checkdoc.el (checkdoc-recursive-edit): Use command
substitution.
(checkdoc--help-buffer): New variable.  Use it instead of hard-coded
string.

3 years agoUse command substitution for exit-recursive-edit
Stefan Kangas [Sat, 18 Sep 2021 12:54:04 +0000 (14:54 +0200)]
Use command substitution for exit-recursive-edit

* lisp/bindings.el (mode-line-modes):
* lisp/emacs-lisp/checkdoc.el (checkdoc-recursive-edit): Use command
substitution for 'exit-recursive-edit'.

3 years ago* lisp/subr.el (string-replace): Add dashes to arg names (bug#50644)
Juri Linkov [Sat, 18 Sep 2021 18:42:17 +0000 (21:42 +0300)]
* lisp/subr.el (string-replace): Add dashes to arg names (bug#50644)

* lisp/net/tramp-compat.el (tramp-compat-string-replace): Idem.
* doc/lispref/searching.texi (Search and Replace): Idem.

3 years ago; Clarify recently added documentation
Eli Zaretskii [Sat, 18 Sep 2021 18:04:07 +0000 (21:04 +0300)]
; Clarify recently added documentation

* etc/NEWS:
* doc/emacs/help.texi (Name Help): Clarify documentation of
'help-enable-symbol-autoload'.

3 years agoAdd new help-enable-symbol-autoload user option
Arthur Miller [Sat, 18 Sep 2021 17:51:47 +0000 (19:51 +0200)]
Add new help-enable-symbol-autoload user option

* lisp/help-fns.el (help-fns--analyze-function): Use it.
* lisp/help-fns.el (help-enable-symbol-autoload): New user option.
* doc/emacs/help.texi (Name Help): Document it.

3 years agoMention xref-quit-and-pop-marker-stack in the manual
Lars Ingebrigtsen [Sat, 18 Sep 2021 16:32:22 +0000 (18:32 +0200)]
Mention xref-quit-and-pop-marker-stack in the manual

* doc/emacs/maintaining.texi (Xref Commands): Mention
xref-quit-and-pop-marker-stack in the manual.

3 years agoDo some xwidget NEWS markup (and adjust doc string)
Lars Ingebrigtsen [Sat, 18 Sep 2021 16:18:02 +0000 (18:18 +0200)]
Do some xwidget NEWS markup (and adjust doc string)

* lisp/xwidget.el (xwidget-webkit-bookmark-make-record): Mention
`xwidget-webkit-bookmark-jump-new-session' in the doc string.

3 years agoMake argument optional in pulse-momentary-highlight-one-line
Lars Ingebrigtsen [Sat, 18 Sep 2021 14:12:56 +0000 (16:12 +0200)]
Make argument optional in pulse-momentary-highlight-one-line

* lisp/cedet/pulse.el (pulse-momentary-highlight-one-line): Make
POINT optional (bug#50642) so that the function can be used more
easily from some hook functions.

3 years ago; * lisp/so-long.el (so-long-mode): Use `so-long-mode-line-active' face
Phil Sainty [Thu, 9 Sep 2021 07:53:25 +0000 (19:53 +1200)]
; * lisp/so-long.el (so-long-mode): Use `so-long-mode-line-active' face

3 years ago; * lisp/so-long.el: Documentation
Phil Sainty [Sat, 18 Sep 2021 02:16:13 +0000 (14:16 +1200)]
; * lisp/so-long.el: Documentation

Clarify things which are only relevant to 'global-so-long-mode', and
not when the 'so-long' command, or one of its actions, is invoked
directly.

Use the new "customization group" hyperlink syntax.

Only quote 'so-long' as a symbol when it specifically refers to the
command (or will otherwise generate a hyperlink which is appropriate
to the context).  When referring to the library more generally, leave
it unquoted.

Changes from commit 63f419f1339cbd0a7d1e64586854a4f01b3f80d1 are
reverted or improved.

3 years agoUse the newest gcc installed by Macports
Dan Ports [Sat, 18 Sep 2021 14:04:38 +0000 (16:04 +0200)]
Use the newest gcc installed by Macports

* configure.ac: There may be more than one gcc version installed
in Macports (bug#50649).  Use the newest.

Copyright-paperwork-exempt: yes

3 years agoFontify Libtool macros in autoconf-mode
Basil L. Contovounesios [Sat, 18 Sep 2021 10:49:07 +0000 (11:49 +0100)]
Fontify Libtool macros in autoconf-mode

* lisp/progmodes/autoconf.el (autoconf-font-lock-keywords): Apply
font-lock-keyword-face also to Libtool's LT_* macros (bug#50659).

3 years agoImprove doc strings of a recent commit
Eli Zaretskii [Sat, 18 Sep 2021 11:56:55 +0000 (14:56 +0300)]
Improve doc strings of a recent commit

* lisp/emacs-lisp/generator.el (iter-defun):
* lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln):
* lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode):
* lisp/emacs-lisp/autoload.el (autoload-insert-section-header):
Include description of arguments in the doc string's first line.

3 years agoRegexp-quote literal symbols when grepping
Mattias Engdegård [Sat, 18 Sep 2021 11:39:09 +0000 (13:39 +0200)]
Regexp-quote literal symbols when grepping

`xref-find-references` was unable to find symbols like
`backquote-list*-macro`.

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-grep--quote-extended): New function.
(semantic-symref-perform-search): Call it.

3 years ago; More stylistic docfixes in emacs-lisp/*.el found by checkdoc
Stefan Kangas [Sat, 18 Sep 2021 11:12:41 +0000 (13:12 +0200)]
; More stylistic docfixes in emacs-lisp/*.el found by checkdoc

3 years agoFix performance degradation in commands that describe key bindings
Eli Zaretskii [Sat, 18 Sep 2021 10:23:48 +0000 (13:23 +0300)]
Fix performance degradation in commands that describe key bindings

* src/keymap.c (syms_of_keymap)
<describe-bindings-check-shadowing-in-ranges>: New variable.
(describe_vector): Check shadowing of consecutive keys only if
'describe-bindings-check-shadowing-in-ranges' is non-nil.  Remove
redundant second loop when VECTOR is a char-table.  Improve
comments.  Patch by Stefan Kangas <stefan@marxist.se>.  (Bug#45379)

* test/src/keymap-tests.el
(help--describe-vector/bug-9293-one-shadowed-in-range): Adapt the
test case for the new variable.

3 years ago* lisp/emacs-lisp/checkdoc.el: Doc fix; mention flymake.
Stefan Kangas [Sat, 18 Sep 2021 09:24:22 +0000 (11:24 +0200)]
* lisp/emacs-lisp/checkdoc.el: Doc fix; mention flymake.

3 years agoDo interactive mode tagging for checkdoc.el
Stefan Kangas [Sat, 18 Sep 2021 09:21:32 +0000 (11:21 +0200)]
Do interactive mode tagging for checkdoc.el

3 years agocheckdoc: Only look for commonly used modifier keys
Stefan Kangas [Sat, 18 Sep 2021 08:39:35 +0000 (10:39 +0200)]
checkdoc: Only look for commonly used modifier keys

* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
Search for the modifier key "s-", but not the modifier key "A-".
The latter is very uncommon and leads to false positives.

3 years agoSkip "fast" tests on emba CI
Michael Albinus [Sat, 18 Sep 2021 08:23:32 +0000 (10:23 +0200)]
Skip "fast" tests on emba CI

* test/infra/gitlab-ci.yml (stages): Comment "fast" stage out.
(test-fast-inotify): Comment out.

3 years ago; * lisp/loadup.el: Fix "Eager macro-expansion error" on w32.
Eli Zaretskii [Sat, 18 Sep 2021 07:56:05 +0000 (10:56 +0300)]
; * lisp/loadup.el: Fix "Eager macro-expansion error" on w32.

3 years agoAdd indent declaration to emerge-defvar-local
Stefan Kangas [Sat, 18 Sep 2021 07:40:29 +0000 (09:40 +0200)]
Add indent declaration to emerge-defvar-local

* lisp/vc/emerge.el (emerge-defvar-local): Add indent declaration
for docstring.  Fix wrongly indented callers.

3 years agoMake doc argument of emerge-defvar-local optional
Stefan Kangas [Sat, 18 Sep 2021 07:38:45 +0000 (09:38 +0200)]
Make doc argument of emerge-defvar-local optional

* lisp/vc/emerge.el (emerge-defvar-local): Make doc argument
optional.

3 years agoMake doc argument of ediff-defvar-local optional
Stefan Kangas [Sat, 18 Sep 2021 07:33:53 +0000 (09:33 +0200)]
Make doc argument of ediff-defvar-local optional

* lisp/vc/ediff-init.el (ediff-defvar-local): Make DOC argument
optional.  Update callers passing the empty string to not use it.

3 years ago; More stylistic docfixes in vc/*.el found by checkdoc
Stefan Kangas [Sat, 18 Sep 2021 07:13:37 +0000 (09:13 +0200)]
; More stylistic docfixes in vc/*.el found by checkdoc

3 years ago; Improve the last change in NEWS.
Eli Zaretskii [Sat, 18 Sep 2021 06:40:55 +0000 (09:40 +0300)]
; Improve the last change in NEWS.

3 years agoCheck for null bytes in filenames in 'expand-file-name' (bug#49723)
Federico Tedin [Tue, 14 Sep 2021 22:15:16 +0000 (00:15 +0200)]
Check for null bytes in filenames in 'expand-file-name' (bug#49723)

* src/fileio.c (expand-file-name): Check for null bytes for both
NAME and DEFAULT-DIRECTORY arguments.  Also check for null bytes
in buffer-local default-directory, assuming it is used.
* src/coding.c (encode_file_name): Use CHECK_STRING_NULL_BYTES.
* src/lisp.h (CHECK_STRING_NULL_BYTES): Add function for checking
for null bytes in Lisp strings.
* test/src/fileio-tests.el (fileio-test--expand-file-name-null-bytes):
Add test for new changes to expand-file-name.
* etc/NEWS: Announce changes.

3 years ago* lisp/erc/erc.el: Add Package-Requires and URL headers.
Amin Bandali [Sat, 18 Sep 2021 01:54:15 +0000 (21:54 -0400)]
* lisp/erc/erc.el: Add Package-Requires and URL headers.

3 years ago* etc/NEWS: Announce update of IRC-related references to point to Libera.Chat.
Amin Bandali [Sat, 18 Sep 2021 01:25:18 +0000 (21:25 -0400)]
* etc/NEWS: Announce update of IRC-related references to point to Libera.Chat.

Also remove the note about freenode subdomain change, as it's not
relevant anymore.

3 years ago; * etc/NEWS: Fix typos.
Stefan Kangas [Fri, 17 Sep 2021 23:17:50 +0000 (01:17 +0200)]
; * etc/NEWS: Fix typos.

3 years agoUpdate refcard to mention iconify before suspend
Stefan Kangas [Fri, 17 Sep 2021 20:57:33 +0000 (22:57 +0200)]
Update refcard to mention iconify before suspend

* etc/refcards/refcard.tex (section{Leaving Emacs}): Put iconify
Emacs ahead of suspend.

3 years agocheckdoc: 'y-or-n-p' no longer needs space
Stefan Kangas [Thu, 16 Sep 2021 17:13:56 +0000 (19:13 +0200)]
checkdoc: 'y-or-n-p' no longer needs space

* lisp/emacs-lisp/checkdoc.el (checkdoc-message-text-engine):
Change 'y-or-n-p' check to accept prompt ending with both "? " or "?",
that is, it no longer needs the space.  (Bug#50621)
(checkdoc--fix-y-or-n-p): New helper function.
* test/lisp/emacs-lisp/checkdoc-tests.el (checkdoc-tests-fix-y-or-n-p)
(checkdoc-tests-fix-y-or-n-p/no-change)
(checkdoc-tests-fix-y-or-n-p/with-space): New tests.

3 years ago; Fix etc/NEWS merge error
Robert Pluim [Fri, 17 Sep 2021 18:56:09 +0000 (20:56 +0200)]
; Fix etc/NEWS merge error

* etc/NEWS: fix merge error

3 years agoMove emoji fontset addition later
Robert Pluim [Fri, 17 Sep 2021 17:40:48 +0000 (19:40 +0200)]
Move emoji fontset addition later

* lisp/international/fontset.el (setup-default-fontset): Move the
fontset addition for emoji script after that for various graphic-like
characters, since they overlap, and we want the emoji setting to win.

3 years ago* lisp/net/tramp-sh.el (tramp-methods) <rsync>: Separate "%c" marker.
Martin Joerg [Fri, 17 Sep 2021 17:54:00 +0000 (19:54 +0200)]
* lisp/net/tramp-sh.el (tramp-methods) <rsync>: Separate "%c" marker.

Copyright-paperwork-exempt: yes

3 years agoFix emoji-induced build breakage
Robert Pluim [Fri, 17 Sep 2021 17:35:27 +0000 (19:35 +0200)]
Fix emoji-induced build breakage

* admin/unidata/blocks.awk: Cater for out-of-tree builds, match
the name of the file using regexp rather than exact match.

3 years agoReplace hex representation by its literal form in pretty tex symbols
Uwe Brauer [Fri, 17 Sep 2021 17:01:51 +0000 (19:01 +0200)]
Replace hex representation by its literal form in pretty tex symbols

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist):
Correct error \Bbb{T}, replace hex representation by its literal
form (bug#50645).

3 years agoTweak how term-emulate-terminal selects windows
Lars Ingebrigtsen [Fri, 17 Sep 2021 16:37:51 +0000 (18:37 +0200)]
Tweak how term-emulate-terminal selects windows

* lisp/term.el (term-emulate-terminal): Don't record the selection
of the window here, because we're not doing a user-level window
selection, but just selecting the window for internal purposes
(bug#41984).

3 years ago* lisp/progmodes/elisp-mode.el (elisp-context-menu): Improve menu items.
Juri Linkov [Fri, 17 Sep 2021 16:02:48 +0000 (19:02 +0300)]
* lisp/progmodes/elisp-mode.el (elisp-context-menu): Improve menu items.

3 years ago* lisp/repeat.el (repeat-echo-message): Clear only own added part of message.
Juri Linkov [Fri, 17 Sep 2021 16:00:03 +0000 (19:00 +0300)]
* lisp/repeat.el (repeat-echo-message): Clear only own added part of message.

(describe-repeat-maps, repeat-mode): Refer to each other in docstrings.

3 years agoStop imenu indexing after a certain number of seconds
Lars Ingebrigtsen [Fri, 17 Sep 2021 15:54:21 +0000 (17:54 +0200)]
Stop imenu indexing after a certain number of seconds

* doc/emacs/programs.texi (Imenu): Document it.
* lisp/imenu.el (imenu-max-index-time): New user option.
(imenu-default-create-index-function, imenu--generic-function):
Use it (bug#18696).

3 years agoFix typo in idlwave
Manuel Giraud [Fri, 17 Sep 2021 14:34:05 +0000 (16:34 +0200)]
Fix typo in idlwave

* lisp/progmodes/idlwave.el (idlwave-keyword-abbrev): Fix typo
(bug#50638).

3 years agoAdd more symbols to tex--prettify-symbols-alist
Uwe Brauer [Fri, 17 Sep 2021 14:32:48 +0000 (16:32 +0200)]
Add more symbols to tex--prettify-symbols-alist

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Add
mathbb, caligraphic letters, fractur, varkappa and
\|. (bug#50639).

3 years agoMention that the garbage collection is convervative
Lars Ingebrigtsen [Thu, 16 Sep 2021 15:13:11 +0000 (17:13 +0200)]
Mention that the garbage collection is convervative

* doc/lispref/internals.texi (Garbage Collection): Mention that
we're using a conservative gc (bug#42013).

3 years agoMH-E: fix check for nmh or Mailutils installation
Stephen Gildea [Fri, 17 Sep 2021 14:01:40 +0000 (07:01 -0700)]
MH-E: fix check for nmh or Mailutils installation

* lisp/mh-e/mh-e.el (mh-variant-gnu-mh-info, mh-variant-nmh-info):
Run install-mh, not mhparam, to check whether an MH variant is
installed on the system.  mhparam fails if no user profile is found,
so it is not a reliable check of the state of the system as a whole.

Tested with:
nmh 1.4, nmh 1.7.1, GNU Mailutils 2.2, GNU Mailutils 3.7, GNU Mailutils 3.13

3 years agoFix display of stretch glyphs
Eli Zaretskii [Fri, 17 Sep 2021 14:07:32 +0000 (17:07 +0300)]
Fix display of stretch glyphs

* src/xterm.c (x_draw_stretch_glyph_string):
* src/w32term.c (w32_draw_stretch_glyph_string): Fix drawing
stretch glyphs when the window is hscrolled.  (The original
pre-Jan-2021 code was almost correct, except that it used
'window_box_left_offset' instead of 'window_box_left', and didn't
restrict the background_width fixup to text-area.)  (Bug#50564)

3 years agoSplit Unicode emoji into their own script
Robert Pluim [Tue, 14 Sep 2021 17:07:03 +0000 (19:07 +0200)]
Split Unicode emoji into their own script

* admin/notes/unicode: Describe how to update emoji for new Unicode release.
* admin/unidata/Makefile.in: Pass emoji-data.txt to
blocks.awk script.
* admin/unidata/README: Add pointer to emoji-data.txt file.
* admin/unidata/blocks.awk: Parse emoji-data.txt, add emoji codepoints
to the 'emoji' script (except for the ASCII ones).
* admin/unidata/emoji-data.txt: New file.
* etc/NEWS: Describe new 'emoji' script.
* etc/TODO: Update item about 'emoji' script.
* lisp/international/fontset.el (script-representative-chars): Add
'emoji' script.
(setup-default-fontset): Add 'emoji' script.  Use "Noto Color Emoji"
as default font for it.

3 years agoxref-matches-in-files: Move sorting to Lisp
Dmitry Gutov [Fri, 17 Sep 2021 12:39:23 +0000 (15:39 +0300)]
xref-matches-in-files: Move sorting to Lisp

For better compatibility with different systems.
Performance is unaffected, except in very pathological cases
(~100000 matches), and even then the overhead of 'sort' is comparable.

* lisp/progmodes/xref.el (xref-search-program-alist):
Drop the piping through 'sort'.
(xref-matches-in-files): Sort here instead.
Do that to both searchers' output as well now.

3 years ago; * test/lisp/emacs-lisp/seq-tests.el: Remove duplicate test.
Stefan Kangas [Fri, 17 Sep 2021 12:06:18 +0000 (14:06 +0200)]
; * test/lisp/emacs-lisp/seq-tests.el: Remove duplicate test.

3 years agoImprove the documentation of a recent change
Eli Zaretskii [Fri, 17 Sep 2021 12:03:53 +0000 (15:03 +0300)]
Improve the documentation of a recent change

* etc/NEWS:
* doc/lispref/sequences.texi (Sequence Functions): Improve
documentation of 'seq-union'.

3 years agoImprove performance of seq-union
Stefan Kangas [Fri, 17 Sep 2021 12:01:20 +0000 (14:01 +0200)]
Improve performance of seq-union

* lisp/emacs-lisp/seq.el (seq-union): Improve performance by using
nreverse instead of seq-reverse.

3 years ago; Make change that was accidentally left out in my last commit
Stefan Kangas [Fri, 17 Sep 2021 10:32:59 +0000 (12:32 +0200)]
; Make change that was accidentally left out in my last commit

3 years agoMake viper-subseq into obsolete alias for cl-subseq
Stefan Kangas [Fri, 17 Sep 2021 09:39:47 +0000 (11:39 +0200)]
Make viper-subseq into obsolete alias for cl-subseq

* lisp/emulation/viper-util.el (viper-subseq): Make into obsolete
function alias for 'cl-subseq'.  Update callers.

3 years ago* lisp/vc/ediff-util.el (ediff-member): Make obsolete.
Stefan Kangas [Fri, 17 Sep 2021 09:01:54 +0000 (11:01 +0200)]
* lisp/vc/ediff-util.el (ediff-member): Make obsolete.

3 years agoMake ediff-set-difference into obsolete alias for seq-difference
Stefan Kangas [Fri, 17 Sep 2021 09:02:38 +0000 (11:02 +0200)]
Make ediff-set-difference into obsolete alias for seq-difference

* lisp/vc/ediff-util.el (ediff-set-difference): Make into obsolete
function alias for 'seq-difference'.
* lisp/vc/ediff-mult.el (ediff-intersect-directories): Update single caller.

3 years agoMake ediff-intersection into obsolete alias for seq-intersection
Stefan Kangas [Fri, 17 Sep 2021 09:00:06 +0000 (11:00 +0200)]
Make ediff-intersection into obsolete alias for seq-intersection

* lisp/vc/ediff-util.el (ediff-intersection): Make into obsolete
function alias for 'seq-intersection'.
* lisp/vc/ediff-mult.el (ediff-intersect-directories): Update
single caller.

3 years agoMake ediff-union into obsolete alias for seq-union
Stefan Kangas [Fri, 17 Sep 2021 08:41:15 +0000 (10:41 +0200)]
Make ediff-union into obsolete alias for seq-union

* lisp/emacs-lisp/seq.el (seq-union): Autoload.
* lisp/vc/ediff-util.el (ediff-union): Make into obsolete function
alias for 'seq-union'.
* lisp/vc/ediff-mult.el (ediff-intersect-directories): Update single
caller.

3 years agoAdd new sequence function 'seq-union'
Stefan Kangas [Fri, 17 Sep 2021 08:35:13 +0000 (10:35 +0200)]
Add new sequence function 'seq-union'

* lisp/emacs-lisp/seq.el (seq-union): New function.
* doc/lispref/sequences.texi (Sequence Functions):
* lisp/emacs-lisp/shortdoc.el (sequence): Document above new
function.
* test/lisp/emacs-lisp/seq-tests.el (test-seq-union): New test.

3 years ago* lisp/allout.el (allout-old-expose-topic): Make obsolete.
Stefan Kangas [Fri, 17 Sep 2021 07:45:21 +0000 (09:45 +0200)]
* lisp/allout.el (allout-old-expose-topic): Make obsolete.

3 years agoFix disk-free info in 'insert-directory'
John Cummings [Thu, 16 Sep 2021 23:00:50 +0000 (23:00 +0000)]
Fix disk-free info in 'insert-directory'

* lisp/files.el (insert-directory): Call 'get-free-disk-space'
with the argument FILE, to make sure the reported info is for the
correct volume.  (Bug#50630)

Copyright-paperwork-exempt: yes

3 years agoFix annoyance in tramp-smb.el
Michael Albinus [Fri, 17 Sep 2021 05:29:01 +0000 (07:29 +0200)]
Fix annoyance in tramp-smb.el

* lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
Add "TERM=dumb".

3 years agoERC: NickServ: Prompt for password last, overall simplifications (bug#46777)
Olivier Certner [Fri, 5 Feb 2021 14:34:50 +0000 (15:34 +0100)]
ERC: NickServ: Prompt for password last, overall simplifications (bug#46777)

When 'erc-prompt-for-nickserv-password' is non-nil, don't ignore the
other forms of identification.  Instead, process them first, and
prompt for the password last.  Separate concerns (determination of the
nick to use, of the password to use, and actual message sending).

Note that the user can be interactively prompted for a password on
reception of a NickServ request, as before (on
'erc-prompt-for-nickserv-password').

* lisp/erc/erc-services.el (erc-nickserv-identify): Make the password
argument optional (and don't prompt for it interactively).  Further,
now take the nick to use for identification (interactively, ask for
it, defaulting to the current one).  Move the actual message sending
into the new 'erc-nickserv-send-identify' function, and the password
prompting into 'erc-nickserv-get-password'.

(erc-nickserv-send-identify): New function containing the code for
sending the identify message to NickServ, given the nick and password.

(erc-nickserv-get-password): Try each password source in turn, in the
following order: 'erc-nickserv-passwords', auth-source (if
'erc-use-auth-source-for-nickserv-password' is non-nil), and in the
end prompt the user interactively (if
'erc-prompt-for-nickserv-password' is non-nil).  If one source returns
a string, the function returns it, or nil if the string is empty.

(erc-nickserv-call-identify-function): Declare obsolete, but retain
for backward compatibility.  Prefer invoking 'erc-nickserv-identify'
directly instead.

(erc-nickserv-identify-autodetect, erc-nickserv-identify-on-connect)
(erc-nickserv-identify-on-nick-change): Call 'erc-nickserv-identify'
directly ('erc-nickserv-call-identify-function' has been obsoleted).
For the last two functions, remove the redundant checks on the
NickServ identification flags (additionally, it is doubtful they have
any measurable impact on performance).

* etc/NEWS: Announce the change.

Co-authored-by: F. Jason Park <jp@neverwas.me>
3 years ago* lisp/erc/erc-button.el (erc-emacswiki-url): Update to shorter address.
Amin Bandali [Fri, 17 Sep 2021 02:45:46 +0000 (22:45 -0400)]
* lisp/erc/erc-button.el (erc-emacswiki-url): Update to shorter address.

3 years ago* lisp/vc/vc.el: API doc fixes.
Alfred M. Szmidt [Thu, 16 Sep 2021 23:03:22 +0000 (02:03 +0300)]
* lisp/vc/vc.el: API doc fixes.

3 years agoReuse vc-read-backend more
Manuel Giraud [Thu, 16 Sep 2021 23:01:09 +0000 (02:01 +0300)]
Reuse vc-read-backend more

* lisp/vc/vc.el (vc-read-backend): New optional arguments.
(vc-create-repo): Use it here.
(vc-switch-backend): And here (bug#50603).

3 years agoDocfix: use command substitution for 'universal-argument'
Stefan Kangas [Thu, 16 Sep 2021 18:05:48 +0000 (20:05 +0200)]
Docfix: use command substitution for 'universal-argument'

* lisp/autoarg.el (autoarg-mode):
* lisp/bookmark.el (bookmark-set, bookmark-set-no-overwrite)
(bookmark-save):
* lisp/calendar/todo-mode.el (todo-insert-item)
(todo-filter-top-priorities)
(todo-filter-top-priorities-multifile):
* lisp/dired-x.el (dired-mark-extension, dired-mark-suffix):
* lisp/eshell/eshell.el (eshell):
* lisp/gnus/gnus-group.el (gnus-group-find-new-groups):
* lisp/gnus/gnus-start.el (gnus-find-new-newsgroups):
* lisp/gnus/gnus-sum.el (gnus-summary-show-article):
* lisp/gnus/gnus.el (gnus-secondary-servers):
* lisp/org/org-timer.el (org-timer-set-timer):
* lisp/org/ox.el (org-export-dispatch-last-position):
* lisp/printing.el (pr-ps-directory-preview)
(pr-ps-directory-using-ghostscript, pr-ps-directory-print)
(pr-ps-directory-ps-print, pr-ps-buffer-preview)
(pr-ps-buffer-using-ghostscript, pr-ps-buffer-print)
(pr-ps-buffer-ps-print, pr-despool-preview)
(pr-despool-using-ghostscript, pr-despool-print)
(pr-despool-ps-print, pr-ps-file-up-ps-print, pr-ps-fast-fire)
(pr-txt-fast-fire):
* lisp/progmodes/idlwave.el (idlwave-complete):
* lisp/progmodes/sh-script.el (sh-set-shell):
* lisp/replace.el (occur):
* lisp/ses.el (ses--advice-yank):
* lisp/simple.el (set-mark-command-repeat-pop):
* lisp/sort.el (delete-duplicate-lines):
* lisp/strokes.el (strokes-help):
* lisp/textmodes/artist.el (artist-mode):
* lisp/textmodes/reftex-cite.el (reftex-citation):
* lisp/textmodes/reftex-dcr.el (reftex-view-crossref):
* lisp/textmodes/reftex-index.el (reftex-index-selection-or-word)
(reftex-display-index):
* lisp/textmodes/reftex-ref.el (reftex-reference):
* lisp/textmodes/reftex-toc.el (reftex-toc):
* lisp/textmodes/reftex-vars.el (reftex-cite-prompt-optional-args)
(reftex-enable-partial-scans):
* lisp/textmodes/texnfo-upd.el (texinfo-master-menu):
* lisp/windmove.el (windmove-display-in-direction)
(windmove-delete-left, windmove-delete-up)
(windmove-delete-right, windmove-delete-down):
* lisp/window.el (recenter-window-group, recenter-other-window): Use
command substitution for 'universal-argument' instead of raw "C-u".

3 years ago; Minor stylistic fixes found by checkdoc
Stefan Kangas [Tue, 14 Sep 2021 06:43:18 +0000 (08:43 +0200)]
; Minor stylistic fixes found by checkdoc

3 years agoTramp code cleanup
Michael Albinus [Thu, 16 Sep 2021 14:50:24 +0000 (16:50 +0200)]
Tramp code cleanup

* lisp/net/tramp-sh.el (tramp-methods) <telnet, nc>:
Reintroduce "%n" marker.
(tramp-maybe-open-connection): Handle it.

* lisp/net/tramp.el (tramp-prefix-regexp):
* lisp/net/tramp-smb.el (tramp-smb-options): Fix docstring.

* lisp/net/tramp*.el: Fix typos.  Remove trailing space from
`yes-or-no-p' and `y-or-n-p' prompts.

* test/lisp/net/tramp-tests.el (tramp--test-telnet-p): New defun.
(tramp-test29-start-file-process, tramp-test30-make-process)
(tramp-test35-remote-path, tramp-test44-asynchronous-requests):
Adapt tests.