]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoRemove some unnecessary calls to mh-funcall-if-exists
Stefan Kangas [Sat, 9 Oct 2021 01:09:20 +0000 (03:09 +0200)]
Remove some unnecessary calls to mh-funcall-if-exists

* lisp/mh-e/mh-acros.el (mh-do-at-event-location):
* lisp/mh-e/mh-mime.el (mh-mime-cleanup, mh-display-smileys)
(mh-insert-mime-security-button, mh-insert-mime-button):
* lisp/mh-e/mh-show.el (mh-defun-show-buffer):
* lisp/mh-e/mh-xface.el (mh-x-image-url-fetch-image)
(mh-x-image-display, mh-picon-image-types): Remove unnecessary calls
to mh-funcall-if-exists; these functions always exist as they are
autoloaded.

3 years agoRemove old Gnus compat code from MH-E
Stefan Kangas [Sat, 9 Oct 2021 01:00:00 +0000 (03:00 +0200)]
Remove old Gnus compat code from MH-E

* lisp/mh-e/mh-gnus.el (mh-mm-merge-handles)
(mh-mm-set-handle-multipart-parameter, mh-mm-inline-text-vcard)
(mh-mm-possibly-verify-or-decrypt)
(mh-mm-handle-multipart-ctl-parameter, mh-mm-readable-p)
(mh-mm-long-lines-p, mh-mm-keep-viewer-alive-p)
(mh-mm-destroy-parts, mh-mm-uu-dissect-text-parts)
(mh-mml-minibuffer-read-disposition): Make into obsolete aliases
for functions without the 'mh-' prefix.  Update callers.
(mh-gnus-local-map-property): Remove Emacs 20 compat code.

3 years agotest/lisp/progmodes/elisp-mode-resources/simple-shorthand-test.el: Lexbind
Stefan Monnier [Fri, 8 Oct 2021 22:36:29 +0000 (18:36 -0400)]
test/lisp/progmodes/elisp-mode-resources/simple-shorthand-test.el: Lexbind

Add the usual lexical-binding cookie.

3 years agoRemove XEmacs compat code from lisp/obsolete/*.el
Stefan Kangas [Fri, 8 Oct 2021 20:50:49 +0000 (22:50 +0200)]
Remove XEmacs compat code from lisp/obsolete/*.el

* lisp/obsolete/crisp.el (crisp-kill-region)
(crisp-region-active):
* lisp/obsolete/eudcb-ph.el (eudc-ph-open-session):
* lisp/obsolete/fast-lock.el (fast-lock-save-faces):
* lisp/obsolete/iswitchb.el (iswitchb-completion-help)
(iswitchb-case):
* lisp/obsolete/otodo-mode.el (todo-mode):
* lisp/obsolete/pgg-parse.el (pgg-parse-armor):
* lisp/obsolete/pgg.el (pgg-verify-region):
* lisp/obsolete/tpu-edt.el (activate-mark-hook, tpu-mark)
(tpu-set-mark, tpu-load-xkeys):
* lisp/obsolete/tpu-mapper.el (tpu-map-key, tpu-mapper): Remove XEmacs
compat code.

3 years agoRemove XEmacs compat code from sql.el
Stefan Kangas [Fri, 8 Oct 2021 19:04:04 +0000 (21:04 +0200)]
Remove XEmacs compat code from sql.el

* lisp/progmodes/sql.el (sql-interactive-mode-map, sql-mode)
(sql-interactive-mode): Remove XEmacs compat code.  (Bug#51096)

3 years agoRemove Emacs 20 compat code from sql.el
Stefan Kangas [Fri, 8 Oct 2021 19:02:14 +0000 (21:02 +0200)]
Remove Emacs 20 compat code from sql.el

* lisp/progmodes/sql.el (sql-input-ring-separator)
(sql-product-font-lock): Remove Emacs 20 compat code.

3 years agoRemove some additional XEmacs compat code from viper
Stefan Kangas [Fri, 8 Oct 2021 18:41:50 +0000 (20:41 +0200)]
Remove some additional XEmacs compat code from viper

* lisp/emulation/viper-util.el (viper-memq-char): Make into
obsolete function alias for 'memq'.  Update callers.
(viper-char-equal): Make into obsolete function alias for 'eq'.
Update callers.
(viper-color-display-p): Make into obsolete function alias for
'x-display-color-p'.  Update callers.

3 years agoObsolete XEmacs compat convention in erc-button-press-button
Stefan Kangas [Fri, 8 Oct 2021 18:25:52 +0000 (20:25 +0200)]
Obsolete XEmacs compat convention in erc-button-press-button

* lisp/erc/erc-button.el (erc-button-press-button): Advertise new
calling convention without XEmacs compatibility.

3 years agoMerge from origin/emacs-28
Glenn Morris [Fri, 8 Oct 2021 14:50:28 +0000 (07:50 -0700)]
Merge from origin/emacs-28

af01b674ce (origin/emacs-28) ; Fix spacing in previous commit
915e044d60 Use the correct label in the warning
6e83a4100a ; * admin/make-tarball.txt: Should configure --with-native...
525602d682 ; * etc/TODO (display): Add entry about Default_Ignorables.
65de510c16 ; Fix 'restore-buffer-modified-p' doc string typo
9d8202b45e Add Emacs 27 compatibility hack
89d64fca75 Pacify GCC 10.3 -Wmaybe-uninitialized
bb8ef1aa30 * lisp/tab-bar.el (tab-detach, tab-window-detach): New ali...
7ae70054aa ; * src/composite.h (LGSTRING_FONT): Add comment about its...
1af00e67d6 Include the refcards in the release tarball
3c29fb705c ; * src/Makefile.in (../native-lisp): Make the long recipe...

3 years ago; Fix spacing in previous commit
Tassilo Horn [Fri, 8 Oct 2021 11:03:45 +0000 (13:03 +0200)]
; Fix spacing in previous commit

3 years agoUse the correct label in the warning
Arash Esbati [Fri, 8 Oct 2021 09:12:30 +0000 (11:12 +0200)]
Use the correct label in the warning

* lisp/textmodes/reftex-toc.el (reftex-toc-rename-label): Add
missing space in the prompt.  Use the new user defined label in
the warning (bug#36235).

3 years ago; * admin/make-tarball.txt: Should configure --with-native-compilation.
Eli Zaretskii [Fri, 8 Oct 2021 07:31:17 +0000 (10:31 +0300)]
; * admin/make-tarball.txt: Should configure --with-native-compilation.

3 years ago; * etc/TODO (display): Add entry about Default_Ignorables.
Eli Zaretskii [Fri, 8 Oct 2021 07:27:03 +0000 (10:27 +0300)]
; * etc/TODO (display): Add entry about Default_Ignorables.

3 years ago; Fix 'restore-buffer-modified-p' doc string typo
Stephen Gildea [Fri, 8 Oct 2021 03:10:09 +0000 (20:10 -0700)]
; Fix 'restore-buffer-modified-p' doc string typo

* src/buffer.c (restore-buffer-modified-p): Fix typo in doc string:
"and" for "or" regarding lock/unlock.  Note that 'set-buffer-modified-p'
doc string already uses the correct "or".

3 years agoAdd Emacs 27 compatibility hack
Dmitry Gutov [Fri, 8 Oct 2021 02:23:19 +0000 (05:23 +0300)]
Add Emacs 27 compatibility hack

* lisp/progmodes/xref.el: Add Emacs 27 compatibility hack, for the
standalone version of this package.

3 years agoMake mh-* XEmacs compat aliases obsolete
Stefan Kangas [Thu, 7 Oct 2021 15:10:07 +0000 (17:10 +0200)]
Make mh-* XEmacs compat aliases obsolete

* lisp/mh-e/mh-acros.el (mh-make-local-hook): Make XEmacs and Emacs 20
macro obsolete.  Update all callers
* lisp/mh-e/mh-compat.el (mh-require): Make XEmacs compat alias
obsolete.  Update all callers
(mh-write-file-functions): Make XEmacs compat macro obsolete.  Update
all callers
(mh-assoc-string, mh-display-color-cells, mh-face-foreground)
(mh-face-foreground, mh-face-background)
(mh-font-lock-add-keywords, mh-image-load-path-for-library)
(mh-image-search-load-path, mh-line-beginning-position)
(mh-line-end-position, mh-mail-abbrev-make-syntax-table)
(mh-define-obsolete-variable-alias, mh-make-obsolete-variable)
(mh-match-string-no-properties, mh-replace-regexp-in-string)
(mh-test-completion, mh-url-hexify-string, mh-view-mode-enter)
(mh-window-full-height-p): Make XEmacs compat definitions into
obsolete function aliases for the same names but without the "mh-"
prefix.  Update all callers.

3 years agoPacify GCC 10.3 -Wmaybe-uninitialized
Paul Eggert [Thu, 7 Oct 2021 20:09:19 +0000 (13:09 -0700)]
Pacify GCC 10.3 -Wmaybe-uninitialized

Problem reported by Basil L. Contovounesios (Bug#51075).
* src/term.c (encode_terminal_code):
Add an UNINIT to pacify GCC 10 bug.

3 years agoUpdate inhibit-changing-match-data obsoletion data
Lars Ingebrigtsen [Thu, 7 Oct 2021 19:10:34 +0000 (21:10 +0200)]
Update inhibit-changing-match-data obsoletion data

* lisp/subr.el (inhibit-changing-match-data): Link to
`save-match-data'.

3 years ago; * etc/NEWS: Fix a typo.
Eli Zaretskii [Thu, 7 Oct 2021 19:01:57 +0000 (22:01 +0300)]
; * etc/NEWS: Fix a typo.

3 years agoUpdate Fstring_match calls in comp.c
Lars Ingebrigtsen [Thu, 7 Oct 2021 18:55:05 +0000 (20:55 +0200)]
Update Fstring_match calls in comp.c

* src/comp.c (Fcomp_el_to_eln_rel_filename, file_in_eln_sys_dir):
Update Fstring_match calls.

3 years agoMake 'inhibit-changing-match-data' obsolete and adjust callers
Lars Ingebrigtsen [Thu, 7 Oct 2021 18:46:50 +0000 (20:46 +0200)]
Make 'inhibit-changing-match-data' obsolete and adjust callers

* doc/lispref/searching.texi (Regexp Search):
(POSIX Regexps): Document this.
* lisp/subr.el (inhibit-changing-match-data): Make obsolete.
(looking-at-p): Adjust call.

* lisp/vc/vc-hg.el (vc-hg--raw-dirstate-search):
(vc-hg--ignore-patterns-ignored-p):
(vc-hg--cached-dirstate-search): Don't use
`inhibit-changing-match-data'.

* src/minibuf.c (Ftry_completion):
(Fall_completions):
(Ftest_completion): Adjust Fstring_match calls.

* src/search.c (looking_at_1): Pass in modify_data.
(Flooking_at): Add optional inhibit-modify parameter.
(string_match_1): Pass in modify_data.
(Fstring_match):
(Fposix_looking_at, Fposix_string_match): Add optional
inhibit-modify parameter.

3 years ago* lisp/tab-bar.el (tab-detach, tab-window-detach): New aliases.
Juri Linkov [Thu, 7 Oct 2021 18:01:04 +0000 (21:01 +0300)]
* lisp/tab-bar.el (tab-detach, tab-window-detach): New aliases.

(tab-bar-mouse-context-menu, tab-bar-duplicate-tab):
Use word "clone" in help/doc string.

3 years agoMake gnus-define-keys obsolete
Lars Ingebrigtsen [Thu, 7 Oct 2021 16:49:36 +0000 (18:49 +0200)]
Make gnus-define-keys obsolete

* lisp/gnus/gnus-util.el (gnus-define-keys):
(gnus-define-keys-1): Make obsolete.

3 years agoConvert mh-e to use define-keymap instead of gnus-define-keys
Lars Ingebrigtsen [Thu, 7 Oct 2021 16:45:36 +0000 (18:45 +0200)]
Convert mh-e to use define-keymap instead of gnus-define-keys

* lisp/mh-e/mh-speed.el (mh-folder-speedbar-key-map):
* lisp/mh-e/mh-show.el (mh-show-mode-map):
* lisp/mh-e/mh-search.el (mh-letter):
(mh-search-mode-map):
* lisp/mh-e/mh-letter.el (mh-letter-mode-map):
* lisp/mh-e/mh-folder.el (mh-folder-mode-map): Convert to use
`define-keymap' instead of `gnus-define-keys'.

3 years ago; * src/composite.h (LGSTRING_FONT): Add comment about its role.
Eli Zaretskii [Thu, 7 Oct 2021 16:27:49 +0000 (19:27 +0300)]
; * src/composite.h (LGSTRING_FONT): Add comment about its role.

3 years agoInclude the refcards in the release tarball
Eli Zaretskii [Thu, 7 Oct 2021 15:53:25 +0000 (18:53 +0300)]
Include the refcards in the release tarball

* make-dist (possibly_non_vc_files): Include *.pdf files, to
include the produced refcards in the tarball.  This was lost when
'make-dist' was rewritten for Emacs 27.

3 years ago; * src/Makefile.in (../native-lisp): Make the long recipe silent.
Eli Zaretskii [Thu, 7 Oct 2021 15:48:09 +0000 (18:48 +0300)]
; * src/Makefile.in (../native-lisp): Make the long recipe silent.

3 years agoMerge from origin/emacs-28
Glenn Morris [Thu, 7 Oct 2021 15:37:46 +0000 (08:37 -0700)]
Merge from origin/emacs-28

7cb98ba057 (origin/emacs-28) ; * src/keyboard.c (make_lispy_position)...

3 years ago; Merge from origin/emacs-28
Glenn Morris [Thu, 7 Oct 2021 15:37:46 +0000 (08:37 -0700)]
; Merge from origin/emacs-28

The following commit was skipped:

b7a10b44ac Backport: * lisp/net/tramp-archive.el (tramp-archive-autol...

3 years agoMerge from origin/emacs-28
Glenn Morris [Thu, 7 Oct 2021 15:37:46 +0000 (08:37 -0700)]
Merge from origin/emacs-28

160e62a23c Improve documentation and customization of 'blink-matching...
1100fffcd3 * lisp/erc/erc.el: Don't error if 'erc-loaddefs' does not ...
8865fc02ab Add 'erc-bug' command for reporting ERC bugs
5afa07919e Add 'erc-version' and use it to display ERC version consis...
bc941846d9 Small tweaks and improvements to etc/ERC-NEWS
30b5e0a514 Add NEWS items for changes to ERC since 5.3 to etc/ERC-NEWS
f7e6c199bf Clone the frame window configuration in 'clone-frame'
5f626488d8 * lisp/tool-bar.el (tool-bar-position): Doc fix.

# Conflicts:
# etc/NEWS

3 years agoFix mh-e compilation warning
Lars Ingebrigtsen [Thu, 7 Oct 2021 15:36:12 +0000 (17:36 +0200)]
Fix mh-e compilation warning

* lisp/mh-e/mh-comp.el (mh-compose-and-send-mail): Adjust doc string.

* lisp/mh-e/mh-identity.el (mh-identity-make-menu): Don't call the
obsolete `mh-identity-add-menu' function (that now does nothing).

3 years agoRevert "Declare compat macro mh-do-in-gnu-emacs obsolete"
Stefan Kangas [Thu, 7 Oct 2021 15:02:05 +0000 (17:02 +0200)]
Revert "Declare compat macro mh-do-in-gnu-emacs obsolete"

This reverts commit 148b136651413d8eca0f805c786fb04b9c5878b8.

This commit led to some build failures that I don't yet understand, so
I'm reverting it for now so as not to leave master in a broken state.

3 years agoDelete some XEmacs compat code from mh-e/*.el
Stefan Kangas [Thu, 7 Oct 2021 14:05:43 +0000 (16:05 +0200)]
Delete some XEmacs compat code from mh-e/*.el

* lisp/mh-e/mh-acros.el (mh-mark-active-p):
* lisp/mh-e/mh-comp.el (mh-insert-x-mailer):
* lisp/mh-e/mh-compat.el (mh-define-obsolete-variable-alias)
(mh-make-obsolete-variable):
* lisp/mh-e/mh-folder.el (mh-folder-mode-map)
(mh-remove-xemacs-horizontal-scrollbar, mh-folder-mode):
* lisp/mh-e/mh-gnus.el (mh-gnus-local-map-property):
* lisp/mh-e/mh-show.el (mh-show-mode):
* lisp/mh-e/mh-utils.el (mh-colors-available-p):
* lisp/mh-e/mh-xface.el (mh-show-xface-function): Delete some
XEmacs compat code.

3 years agoDeclare compat macro mh-do-in-gnu-emacs obsolete
Stefan Kangas [Thu, 7 Oct 2021 13:39:43 +0000 (15:39 +0200)]
Declare compat macro mh-do-in-gnu-emacs obsolete

* lisp/mh-e/mh-acros.el (mh-do-in-gnu-emacs): Declare compat macro
obsolete.
* lisp/mh-e/mh-compat.el (mh-require):
* lisp/mh-e/mh-folder.el (mh-folder-mode):
* lisp/mh-e/mh-letter.el (mh-letter-mode):
* lisp/mh-e/mh-mime.el (mh-mime-button-map)
(mh-mime-security-button-map, mh-small-image-p)
(mh-signature-highlight):
* lisp/mh-e/mh-show.el (mh-show-mode):
* lisp/mh-e/mh-tool-bar.el (mh-tool-bar-define):
* lisp/mh-e/mh-utils.el (mh-logo-display)
(mh-hidden-header-keymap):
* lisp/mh-e/mh-xface.el (mh-face-display-function)
(mh-picon-image-types, mh-x-image-display): Don't wrap code in
compat macro 'mh-do-in-gnu-emacs'.

3 years agoDeclare compat macro mh-do-in-xemacs obsolete
Stefan Kangas [Thu, 7 Oct 2021 13:33:52 +0000 (15:33 +0200)]
Declare compat macro mh-do-in-xemacs obsolete

* lisp/mh-e/mh-identity.el (mh-identity-add-menu):
* lisp/mh-e/mh-acros.el (mh-do-in-xemacs): Declare obsolete.
* lisp/mh-e/mh-compat.el:
* lisp/mh-e/mh-e.el (mh-xemacs-use-tool-bar-flag):
* lisp/mh-e/mh-folder.el (mh-folder-mode):
* lisp/mh-e/mh-letter.el (mh-letter-mode):
* lisp/mh-e/mh-mime.el (mh-mime-button-map)
(mh-mime-security-button-map, mh-small-image-p)
(mh-signature-highlight):
* lisp/mh-e/mh-search.el (mh-search-mode):
* lisp/mh-e/mh-seq.el:
* lisp/mh-e/mh-show.el (mh-show-mode):
* lisp/mh-e/mh-tool-bar.el (mh-tool-bar-define):
* lisp/mh-e/mh-utils.el (mh-logo-display)
(mh-hidden-header-keymap):
* lisp/mh-e/mh-xface.el (mh-face-display-function)
(mh-picon-image-types, mh-x-image-display): Delete calls to
'mh-do-in-xemacs'.

3 years ago; * src/keyboard.c (make_lispy_position): Avoid GCC warning. (Bug#51076)
Eli Zaretskii [Thu, 7 Oct 2021 13:09:37 +0000 (16:09 +0300)]
; * src/keyboard.c (make_lispy_position): Avoid GCC warning.  (Bug#51076)

3 years ago; Fix typo in test/Makefile.in
Michael Albinus [Thu, 7 Oct 2021 12:15:01 +0000 (14:15 +0200)]
; Fix typo in test/Makefile.in

3 years agoBackport: * lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-handler)...
Stefan Monnier [Wed, 6 Oct 2021 16:15:26 +0000 (12:15 -0400)]
Backport: * lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-handler): Scope

Fix the scoping of `tramp-archive-enabled`.

(cherry picked from commit 8d53c23f90aab6e527c61137ae43274c7a36eca7)

3 years agoImprove documentation and customization of 'blink-matching-paren'
Eli Zaretskii [Thu, 7 Oct 2021 09:33:29 +0000 (12:33 +0300)]
Improve documentation and customization of 'blink-matching-paren'

* lisp/simple.el (blink-matching-paren): Fix the wording of the
doc string and the descriptions in the value menu.  (Bug#51032)

3 years agoFix syntax error in previous gnus-registry-install-shortcuts change
Lars Ingebrigtsen [Thu, 7 Oct 2021 07:33:29 +0000 (09:33 +0200)]
Fix syntax error in previous gnus-registry-install-shortcuts change

* lisp/gnus/gnus-registry.el (gnus-registry-install-shortcuts):
Fix syntax error in previous change.

3 years ago* lisp/erc/erc.el: Don't error if 'erc-loaddefs' does not exist.
Amin Bandali [Sat, 18 Sep 2021 16:53:59 +0000 (12:53 -0400)]
* lisp/erc/erc.el: Don't error if 'erc-loaddefs' does not exist.

That autoload file is created as part of the Emacs compilation
process, however we would like ERC to be usable if used outside
emacs.git (e.g. if installed from GNU ELPA).

3 years agoAdd 'erc-bug' command for reporting ERC bugs
Amin Bandali [Thu, 7 Oct 2021 02:49:59 +0000 (22:49 -0400)]
Add 'erc-bug' command for reporting ERC bugs

* etc/ERC-NEWS: Announce the new command, and mention it at the top of
the file along with 'report-emacs-bug'.
* lisp/erc/erc.el (erc-bug): New command for reporting ERC bugs.  It
prompts for a subject, and passes it on to 'report-emacs-bug' along
with the current ERC version, with the ERC mailing list in Cc.

3 years agoAdd 'erc-version' and use it to display ERC version consistently
Amin Bandali [Thu, 7 Oct 2021 01:50:56 +0000 (21:50 -0400)]
Add 'erc-version' and use it to display ERC version consistently

* lisp/erc/erc.el (erc-version): New constant holding the current ERC
version, now used in the function with the same name to produce a
version string for use across ERC for consistency.  Also, add another
optional argument, 'bold-erc', which when non-nil, marks the "ERC"
portion of the string with the control character for bold display.
(erc-quit/part-reason-default): Use the 'erc-version' function for a
consistent version string.
(erc-cmd-SV): Mention the ERC version number from the 'erc-version'
constant.
(erc-ctcp-query-VERSION): Use the 'erc-version' function for a
consistent version string.

3 years agoSmall tweaks and improvements to etc/ERC-NEWS
Amin Bandali [Thu, 7 Oct 2021 01:35:43 +0000 (21:35 -0400)]
Small tweaks and improvements to etc/ERC-NEWS

* etc/ERC-NEWS: Small tweaks inspired by etc/NEWS, namely to add a
descriptive blurb at the top of the file to explain what it is about
and how to report ERC bugs, add a form feed before the section for
every release, and set the same Local Variables that etc/NEWS does.

3 years agoAdd NEWS items for changes to ERC since 5.3 to etc/ERC-NEWS
Amin Bandali [Thu, 7 Oct 2021 01:17:33 +0000 (21:17 -0400)]
Add NEWS items for changes to ERC since 5.3 to etc/ERC-NEWS

* etc/ERC-NEWS: copy ERC NEWS items from etc/NEWS, etc/NEWS.27,
etc/NEWS.26, etc/NEWS.25, and etc/NEWS.24 to here.  Future ERC NEWS
are also to be added here.  This is in motivated by preparation for
addition of ERC to GNU ELPA, along with the ERC manual and NEWS.
* etc/NEWS: remove ERC-related entries, and refer the reader to
ERC-NEWS instead.

3 years agoClone the frame window configuration in 'clone-frame'
Juri Linkov [Wed, 6 Oct 2021 16:38:09 +0000 (19:38 +0300)]
Clone the frame window configuration in 'clone-frame'

* doc/emacs/frames.texi (Creating Frames): Mention the cloned
window configuration for clone-frame.

* lisp/frame.el (clone-frame): Change second arg to 'no-windows'
and clone window configuration when it's nil.

* lisp/tab-bar.el (tab-bar-mouse-context-menu)
(tab-bar-detach-tab): Replace "Detach" with "Move" in help/doc strings.

https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg00408.html

3 years ago* lisp/tool-bar.el (tool-bar-position): Doc fix.
Eli Zaretskii [Wed, 6 Oct 2021 16:18:51 +0000 (19:18 +0300)]
* lisp/tool-bar.el (tool-bar-position): Doc fix.

3 years ago* lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-handler): Scope
Stefan Monnier [Wed, 6 Oct 2021 16:15:26 +0000 (12:15 -0400)]
* lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-handler): Scope

Fix the scoping of `tramp-archive-enabled`.

3 years agoMerge from origin/emacs-28
Glenn Morris [Wed, 6 Oct 2021 14:50:33 +0000 (07:50 -0700)]
Merge from origin/emacs-28

1ccd3eb721 (origin/emacs-28) ; Fix typo in etc/NEWS
0f28ee94ac * NEWS: Mention rcirc connects to #emacs by default
aacafbe267 Refactor mh-utils-tests macro 'with-mh-test-env'
ead5c5cc51 Avoid using variable before it has been initialized
b2c50d7cf3 Clarify docstring of blink-matching-paren
d2a34cabcf ; Very minor touch-up to a recent change
36a7ce4393 ; * doc/emacs/trouble.texi (After a Crash): Fix typo.
1cd1b2835b * doc/misc/gnus.texi (Loose Threads): Use regexp-opt in ex...
9f041cdfac Bump project.el version
ad2287e659 Retain compatibility with older project.el projects
d86b2e59c7 native-comp-available-p is the definitive test
1b383ac424 Minor fix of a recently installed documentation change
4d76765b6c Fix md5 issue in recent Gnulib merge
18308b739a Tweak recent 'configure' fix

# Conflicts:
# etc/NEWS

3 years agoReparent `gnus-article-mode-map' again
Lars Ingebrigtsen [Wed, 6 Oct 2021 11:19:13 +0000 (13:19 +0200)]
Reparent `gnus-article-mode-map' again

* lisp/gnus/gnus-art.el (:keymap): Make `button-buffer-map' the
parent of `gnus-article-mode-map' again.

3 years agoAdd new major mode 'clean-mode'
Lars Ingebrigtsen [Wed, 6 Oct 2021 10:55:17 +0000 (12:55 +0200)]
Add new major mode 'clean-mode'

* doc/lispref/modes.texi (Major Modes): Document it.

* lisp/simple.el (clean-mode): New major mode.

3 years agoAdd an optional parameter to kill-all-local-variables
Lars Ingebrigtsen [Wed, 6 Oct 2021 10:53:07 +0000 (12:53 +0200)]
Add an optional parameter to kill-all-local-variables

* doc/lispref/variables.texi (Creating Buffer-Local): Document it
(bug#30204).

* src/buffer.c (Fkill_all_local_variables): Allow killing
permanent local variables, too.

* src/print.c (temp_output_buffer_setup):
* src/minibuf.c (set_minibuffer_mode): Adjust callers.

3 years ago* admin/notes/emba (Emacs jobset): Update.
Michael Albinus [Wed, 6 Oct 2021 10:24:45 +0000 (12:24 +0200)]
* admin/notes/emba (Emacs jobset): Update.

* test/infra/gitlab-ci.yml (.test-template): Uncomment
'allow_failure', it isn't needed anymore.

3 years agoMake unused macro gnus-local-set-keys obsolete
Lars Ingebrigtsen [Wed, 6 Oct 2021 10:07:33 +0000 (12:07 +0200)]
Make unused macro gnus-local-set-keys obsolete

* lisp/gnus/gnus-util.el (gnus-local-set-keys): Make obsolete.

3 years agoMake unused gnus-define-keys-safe macro obsolete
Lars Ingebrigtsen [Wed, 6 Oct 2021 10:05:38 +0000 (12:05 +0200)]
Make unused gnus-define-keys-safe macro obsolete

* lisp/gnus/gnus-util.el (gnus-define-keys-safe): Make obsolete.

3 years agoUse `define-keymap' in gnus-registry-install-shortcuts
Lars Ingebrigtsen [Wed, 6 Oct 2021 10:04:37 +0000 (12:04 +0200)]
Use `define-keymap' in gnus-registry-install-shortcuts

* lisp/gnus/gnus-registry.el (gnus-registry-install-shortcuts):
Use `define-keymap'.

3 years agoMake `gnus-define-keymap' obsolete and adjust caller
Lars Ingebrigtsen [Wed, 6 Oct 2021 10:01:43 +0000 (12:01 +0200)]
Make `gnus-define-keymap' obsolete and adjust caller

* lisp/gnus/gnus-kill.el (gnus-kill-file-mode-map): Use
`define-keymap'.

* lisp/gnus/gnus-util.el (gnus-define-keymap): Make obsolete.

3 years agoFix gnus-start.el compilation warning
Lars Ingebrigtsen [Wed, 6 Oct 2021 09:58:16 +0000 (11:58 +0200)]
Fix gnus-start.el compilation warning

* lisp/gnus/gnus-start.el (gnus-save-newsrc-file-last-timestamp):
Move to avoid a compilation warning.

3 years agoFinish conversion of Gnus from `gnus-define-keys'
Lars Ingebrigtsen [Wed, 6 Oct 2021 09:57:22 +0000 (11:57 +0200)]
Finish conversion of Gnus from `gnus-define-keys'

* lisp/gnus/gnus-undo.el (gnus-undo-mode-map):
* lisp/gnus/gnus-salt.el (gnus-pick-mode-map):
(gnus-binary-mode-map):
(gnus-tree-mode-map):
* lisp/gnus/gnus-msg.el (gnus-summary-send-map):
* lisp/gnus/gnus-ml.el (gnus-mailing-list-mode-map):
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-setup):
* lisp/gnus/gnus-art.el (gnus-article-mode-map):
(gnus-article-edit-mode-map): Use `define-keymap' instead of
* `gnus-define-keys'.

3 years agoClear gnus-save-newsrc-file-last-timestamp on start and exit
Lars Ingebrigtsen [Wed, 6 Oct 2021 09:18:16 +0000 (11:18 +0200)]
Clear gnus-save-newsrc-file-last-timestamp on start and exit

* lisp/gnus/gnus-start.el (gnus-clear-system): Clear
`gnus-save-newsrc-file-last-timestamp' on start and exit (bug#51053).

3 years agoImprove finding external documents in reftext
Arash Esbati [Wed, 6 Oct 2021 09:14:45 +0000 (11:14 +0200)]
Improve finding external documents in reftext

* lisp/textmodes/reftex-parse.el (reftex-parse-from-file): Extend
regexp in order to support \externalcitedocument macro and a
second optional argument provided by LaTeX package xr-hyper
(bug#51054).

3 years ago; Fix typo in etc/NEWS
Michael Albinus [Wed, 6 Oct 2021 08:57:02 +0000 (10:57 +0200)]
; Fix typo in etc/NEWS

3 years agoAdd tests for incomplete escape sequences in ansi-color-tests
Miha Rihtaršič [Tue, 5 Oct 2021 10:20:45 +0000 (12:20 +0200)]
Add tests for incomplete escape sequences in ansi-color-tests

* test/lisp/ansi-color-tests.el
(ansi-color-tests-equal-props): New function.
(ansi-color-incomplete-sequences-test): New ert test (bug#50806).

3 years agoDocumentation fixes for recent ansi-color additions
Miha Rihtaršič [Tue, 5 Oct 2021 09:14:22 +0000 (11:14 +0200)]
Documentation fixes for recent ansi-color additions

* lisp/ansi-color.el (ansi-color-context-region): Improve formatting.
* lisp/term.el
(term-ansi-face-already-done):
(term-handle-colors-array):
Fix obsoleting version (bug#50806).

3 years agoDocument the improved scroll-margin behavior
Yuri D'Elia [Wed, 6 Oct 2021 08:43:47 +0000 (10:43 +0200)]
Document the improved scroll-margin behavior

* etc/NEWS: document the improved `scroll-margin' behavior.

3 years agoPerform cleanup on errors in mouse-drag-track
Yuri D'Elia [Wed, 6 Oct 2021 08:43:22 +0000 (10:43 +0200)]
Perform cleanup on errors in mouse-drag-track

* lisp/mouse.el (mouse-drag-track): Disable both scroll-margin and
auto-hscroll-mode in mouse-drag-region and do not re-enable them until
dragging is over, making selections work as expected when inside the
margins.
* lisp/mouse.el (mouse-drag-track): Correctly reset original values
changed during execution if errors occur.

3 years agoImprove interaction between mouse-drag-region and scroll-margin
Yuri D'Elia [Wed, 6 Oct 2021 08:42:56 +0000 (10:42 +0200)]
Improve interaction between mouse-drag-region and scroll-margin

* lisp/mouse.el (mouse-drag-track): Disable both scroll-margin and
auto-hscroll-mode in mouse-drag-region and do not re-enable them until
dragging is over, making selections work as expected when inside the
margins.

3 years ago* NEWS: Mention rcirc connects to #emacs by default
Philip Kaludercic [Wed, 6 Oct 2021 07:16:14 +0000 (09:16 +0200)]
* NEWS: Mention rcirc connects to #emacs by default

3 years agoFix up gnus-summary-mode-map after previous change
Lars Ingebrigtsen [Wed, 6 Oct 2021 07:05:22 +0000 (09:05 +0200)]
Fix up gnus-summary-mode-map after previous change

* lisp/gnus/gnus-sum.el (:keymap): Fix two sub-maps that were
moved to the wrong place.

3 years agoRefactor mh-utils-tests macro 'with-mh-test-env'
Stephen Gildea [Wed, 6 Oct 2021 03:32:59 +0000 (20:32 -0700)]
Refactor mh-utils-tests macro 'with-mh-test-env'

* test/lisp/mh-e/mh-utils-tests.el (with-mh-test-env): Refactor to
reduce the size of the expanded macro.
(mh-test-utils-setup): New helper function.
(mh-ensure-native-trampolines): Absorbed by mh-test-utils-setup.

3 years agoAvoid using variable before it has been initialized
Stefan Kangas [Tue, 5 Oct 2021 21:22:16 +0000 (23:22 +0200)]
Avoid using variable before it has been initialized

* lisp/ibuffer.el (ibuffer-shrink-to-fit): Don't try to use
ibuffer-auto-mode variable before ibuf-ext.el has been loaded.
(Bug#51029)

3 years agoClarify docstring of blink-matching-paren
Stefan Kangas [Tue, 5 Oct 2021 21:11:31 +0000 (23:11 +0200)]
Clarify docstring of blink-matching-paren

* lisp/simple.el (blink-matching-paren): Clarify
docstring.  (Bug#51032)

3 years agoConvert more parts of Gnus from `gnus-define-keys' to `define-keymap'
Lars Ingebrigtsen [Tue, 5 Oct 2021 19:49:26 +0000 (21:49 +0200)]
Convert more parts of Gnus from `gnus-define-keys' to `define-keymap'

* lisp/gnus/spam.el (gnus-summary-mode-map):
* lisp/gnus/gnus-topic.el (gnus-topic-mode-map):
* lisp/gnus/gnus-sum.el (gnus-summary-mode-map):
* lisp/gnus/gnus-srvr.el (gnus-server-mode-map):
(gnus-server-mode-map):
(gnus-browse-mode-map):
* lisp/gnus/gnus-score.el (gnus-summary-score-map):
* lisp/gnus/gnus-draft.el (gnus-draft-mode-map):
* lisp/gnus/gnus-agent.el (gnus-agent-group-mode-map):
(gnus-agent-summary-mode-map):
(gnus-agent-server-mode-map):
(gnus-category-mode-map): Convert from `gnus-define-keys' to
`define-keymap'.

* lisp/gnus/gnus.el: Define more commands.

3 years ago; Very minor touch-up to a recent change
Stefan Kangas [Tue, 5 Oct 2021 19:35:09 +0000 (21:35 +0200)]
; Very minor touch-up to a recent change

* doc/lispintro/emacs-lisp-intro.texi (Design @value{COUNT-WORDS}):
Remove an unnecessary and potentially confusing "now".

3 years ago; * doc/emacs/trouble.texi (After a Crash): Fix typo.
Stefan Kangas [Tue, 5 Oct 2021 19:11:19 +0000 (21:11 +0200)]
; * doc/emacs/trouble.texi (After a Crash): Fix typo.

3 years ago* doc/misc/gnus.texi (Loose Threads): Use regexp-opt in example.
Stefan Kangas [Tue, 5 Oct 2021 17:31:52 +0000 (19:31 +0200)]
* doc/misc/gnus.texi (Loose Threads): Use regexp-opt in example.

3 years agoBump project.el version
Dmitry Gutov [Tue, 5 Oct 2021 16:58:26 +0000 (19:58 +0300)]
Bump project.el version

* lisp/progmodes/project.el: Bump the version.

3 years agoRetain compatibility with older project.el projects
Dmitry Gutov [Tue, 5 Oct 2021 02:45:09 +0000 (05:45 +0300)]
Retain compatibility with older project.el projects

* lisp/progmodes/xref.el (xref--analyze):
Retain compatibility with older project.el and its compatible
project definitions (for standalone Xref from ELPA).

3 years agonative-comp-available-p is the definitive test
Stephen Gildea [Tue, 5 Oct 2021 16:15:57 +0000 (09:15 -0700)]
native-comp-available-p is the definitive test

* doc/lispref/compile.texi (Native Compilation): Document
native-comp-available-p as the way to test for native compilation.
* lisp/emacs-lisp/package.el (package--native-compile-async):
* test/lisp/mh-e/mh-utils-tests.el (mh-ensure-native-trampolines):
Test for native compilation with native-comp-available-p.

Thank you to Andrea Corallo for reviewing this patch.

3 years agoMinor fix of a recently installed documentation change
Eli Zaretskii [Tue, 5 Oct 2021 16:20:51 +0000 (19:20 +0300)]
Minor fix of a recently installed documentation change

* doc/emacs/search.texi (Lax Search): Don't use ".." inside @samp,
it looks confusing, especially in print.  (Bug#51020)

3 years agoDo interactive mode tagging for proced.el
Stefan Kangas [Tue, 5 Oct 2021 16:16:48 +0000 (18:16 +0200)]
Do interactive mode tagging for proced.el

3 years agoFix md5 issue in recent Gnulib merge
Paul Eggert [Tue, 5 Oct 2021 16:08:02 +0000 (09:08 -0700)]
Fix md5 issue in recent Gnulib merge

When configured --with-native-compilation, Emacs needs md5_stream.
Problem reported by Andy Moreton (Bug#50985#23).
* admin/merge-gnulib (GNULIB_MODULES): Add crypto/md5,
needed for --with-native-compilation.
(AVOIDED_MODULES): Avoid crypto/af_alg, since Emacs doesn’t
need to bother with kernel-supported cryptography algorithms.
* lib/gnulib.mk.in, m4/gnulib-comp.m4:
Regenerate by running admin/merge-gnulib.
* lib/md5-stream.c: New file, copied from Gnulib.

3 years agoTweak recent 'configure' fix
Paul Eggert [Tue, 5 Oct 2021 16:03:47 +0000 (09:03 -0700)]
Tweak recent 'configure' fix

* configure.ac (gt_TYPE_WINT_T): Omit obsolete and
now-overridden definition.

3 years agoMerge from origin/emacs-28
Glenn Morris [Tue, 5 Oct 2021 14:50:22 +0000 (07:50 -0700)]
Merge from origin/emacs-28

63abe976ce (origin/emacs-28) Document minibuffer-default-prompt-forma...
b5afbedc90 Backward compatibility option for 'nobreak-char-display'
ea1b728a06 ; * lisp/dired.el: Fix typo.
984eafeb98 Unbreak the build after Gnulib update
5946370cd1 Check, whether an FUSE mount has been broken in Tramp
90575a6c0c Disable 'nobreak-char-display' in Eldoc buffers
570e2c9a17 Fix small error in comint-send-input
fd7bb31412 Update documentation of search-whitespace-regexp
1f4ced47a1 Fix cc-compat.el syntax error
b431f54c1b Mention `seq-uniq' in `delete-dups' documentation
0a7bab689c ; Minor stylistic fixes found by checkdoc
e2861e2d08 ; * etc/NEWS: Fix typo.
1a65d49931 Port recent Gnulib changes to MS-Windows
68a256c892 Update from Gnulib
63cb65dcce * Fix mh tests for native comp builds (bug#50975)
e606cc6f40 * Fix `batch-native-compile' not to spawn a subprocess
894dfe70da Fix native-compilation build from tarball on Cygwin
2ce5e08058 Remove U+FE0F from script-representative-chars

# Conflicts:
# etc/NEWS

3 years ago; Merge from origin/emacs-28
Glenn Morris [Tue, 5 Oct 2021 14:50:20 +0000 (07:50 -0700)]
; Merge from origin/emacs-28

The following commit was skipped:

9750e78202 Fix problem with 'vertical-motion' and emoji

3 years agoMerge from origin/emacs-28
Glenn Morris [Tue, 5 Oct 2021 14:50:20 +0000 (07:50 -0700)]
Merge from origin/emacs-28

13f459b3ac ; Describe PROBLEMS with Unicode display on some TTYs
7a98a62079 * test/README: Mention :nativecomp tag.

3 years agoDocument minibuffer-default-prompt-format in manual
Stefan Kangas [Tue, 5 Oct 2021 14:34:07 +0000 (16:34 +0200)]
Document minibuffer-default-prompt-format in manual

* doc/emacs/mini.texi (Basic Minibuffer): Mention
minibuffer-default-prompt-format.  (Bug#50935)

3 years agoFix recent "erts files" additions in ERT manual
Basil L. Contovounesios [Tue, 5 Oct 2021 14:31:17 +0000 (15:31 +0100)]
Fix recent "erts files" additions in ERT manual

* doc/misc/ert.texi (erts files): Indent examples with spaces rather
than tabs, since Texinfo treats tab characters as a single space;
see (info "(texinfo) @example").  Fix typos/thinkos.

3 years agoBackward compatibility option for 'nobreak-char-display'
Eli Zaretskii [Tue, 5 Oct 2021 14:12:49 +0000 (17:12 +0300)]
Backward compatibility option for 'nobreak-char-display'

* src/xdisp.c (syms_of_xdisp) <nobreak-char-ascii-display>: New
variable.
(get_next_display_element): If 'nobreak-char-ascii-display' is
non-nil, display non-ASCII space and hyphen characters as their
ASCII equivalents.  (Bug#50983)

* etc/NEWS:
* etc/PROBLEMS: Mention 'nobreak-char-ascii-display'.

3 years agoMake 'mapconcat' argument 'separator' optional
Stefan Kangas [Tue, 5 Oct 2021 13:36:31 +0000 (15:36 +0200)]
Make 'mapconcat' argument 'separator' optional

* src/fns.c (Fmapconcat): Make third 'separator' argument
optional.  (Bug#50965)
* doc/lispref/functions.texi (Mapping Functions): Update
documentation for above change.
* test/src/fns-tests.el (fns-tests-mapconcat): New test.

* doc/misc/cl.texi (Obsolete Setf Customization): Don't use third
mapconcat argument in example.
* lisp/emacs-lisp/subr-x.el (string-join): Doc fix.

3 years ago; * lisp/dired.el: Fix typo.
Stefan Kangas [Tue, 5 Oct 2021 13:20:28 +0000 (15:20 +0200)]
; * lisp/dired.el: Fix typo.

3 years agoMake two old function aliases obsolete
Stefan Kangas [Tue, 5 Oct 2021 13:17:41 +0000 (15:17 +0200)]
Make two old function aliases obsolete

* lisp/textmodes/bibtex.el (bibtex-find-crossref)
(bibtex-find-entry): Make function aliases obsolete.  These were left
behind when renaming functions, but never declared obsolete.

3 years agoUnbreak the build after Gnulib update
Eli Zaretskii [Tue, 5 Oct 2021 12:55:18 +0000 (15:55 +0300)]
Unbreak the build after Gnulib update

* lib/gnulib.mk.in (GNULIBHEADERS_OVERRIDE_WINT_T): Rename from
GNULIB_OVERRIDES_WINT_T.
* configure.ac (GNULIBHEADERS_OVERRIDE_WINT_T): Define.
(Bug#50985)

3 years agoSet advertised calling convention on make-face-* functions
Stefan Kangas [Tue, 5 Oct 2021 12:43:11 +0000 (14:43 +0200)]
Set advertised calling convention on make-face-* functions

* lisp/faces.el (make-face-bold, make-face-unbold)
(make-face-italic, make-face-unitalic, make-face-bold-italic):
Use `advertised-calling-convention` to avoid promoting the third
_noerror argument; it has been ignored since 1999.

3 years agoCheck, whether an FUSE mount has been broken in Tramp
Michael Albinus [Tue, 5 Oct 2021 09:27:48 +0000 (11:27 +0200)]
Check, whether an FUSE mount has been broken in Tramp

* lisp/net/tramp-fuse.el (tramp-fuse-mount-timeout): New defconst.
(tramp-fuse-mounted-p): Use it.  Check for a file property instead
of a connection property.
(tramp-fuse-unmount): Dito.

* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
Do not trust existence of a process, whether the volume is mounted.

3 years agoDisable 'nobreak-char-display' in Eldoc buffers
Augusto Stoffel [Tue, 5 Oct 2021 09:12:05 +0000 (11:12 +0200)]
Disable 'nobreak-char-display' in Eldoc buffers

* lisp/emacs-lisp/eldoc.el (eldoc--format-doc-buffer): Set
'nobreak-char-display' to nil in Eldoc buffers (bug#50989).

3 years agoChange the call convention for `defvar-keymap'
Lars Ingebrigtsen [Tue, 5 Oct 2021 08:34:37 +0000 (10:34 +0200)]
Change the call convention for `defvar-keymap'

* doc/lispref/keymaps.texi (Changing Key Bindings): Adjust
documentation.

* lisp/simple.el (special-mode-map):
* lisp/net/shr.el (shr-map):
* lisp/net/eww.el (eww-link-keymap):
(eww-mode-map):
(eww-submit-map):
(eww-textarea-map):
(eww-bookmark-mode-map):
(eww-history-mode-map):
(eww-buffers-mode-map):
* lisp/gnus/message.el (message-mode-map):
* lisp/gnus/gnus-html.el (gnus-html-image-map):
* lisp/gnus/gnus-eform.el (gnus-edit-form-mode-map):
* lisp/gnus/gnus-dired.el (gnus-dired-mode-map):
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-mode-map):
Adjust usage of `defvar-keymap'.

* lisp/subr.el (define-keymap, define-keymap--define): Change how
these functions call each other.
(defvar-keymap): Change interface to be more like `define-keymap'.

* lisp/emacs-lisp/lisp-mode.el (lisp-indent--defvar-keymap): Remove.
(lisp-indent-function): Don't use it.

3 years agoFix small error in comint-send-input
Miha Rihtaršič [Tue, 5 Oct 2021 07:42:28 +0000 (09:42 +0200)]
Fix small error in comint-send-input

* lisp/comint.el (comint-send-input): Run
comint-output-filter-functions with comint-last-output-start set
correctly (bug#51009).

3 years agoUpdate documentation about how M-x completes obsolete commands
Daniel Martín [Tue, 5 Oct 2021 07:39:03 +0000 (09:39 +0200)]
Update documentation about how M-x completes obsolete commands

* doc/emacs/m-x.texi (M-x): Mention that Emacs offers completion for
commands marked obsolete in the current version of Emacs (bug#51017).

3 years agoUpdate documentation of search-whitespace-regexp
Daniel Martín [Tue, 5 Oct 2021 07:37:56 +0000 (09:37 +0200)]
Update documentation of search-whitespace-regexp

* doc/emacs/search.texi (Lax Search): Update the documentation about
the default value of search-whitespace-regexp, as it is now
independent of the major mode's syntax table (bug#51020).