]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoMerge from origin/emacs-28
Glenn Morris [Mon, 11 Oct 2021 15:04:57 +0000 (08:04 -0700)]
Merge from origin/emacs-28

ac06608878 (origin/emacs-28) Release ERC 5.4
a1a589d07b * etc/ERC-NEWS: Announce ERC's addition to GNU ELPA.
6c7947f0a1 * etc/ERC-NEWS: Fix outline level for the recent additions.
c480b68644 Add ERC entries for 'customize-package-emacs-version-alist'
4afff515c8 Expand the full file name
36a485a1af Obsolete XEmacs compat convention in 'erc-button-press-but...

3 years ago; Merge from origin/emacs-28
Glenn Morris [Mon, 11 Oct 2021 15:04:57 +0000 (08:04 -0700)]
; Merge from origin/emacs-28

The following commit was skipped:

31d60488ac Backport: Add ERC version to protocol log

3 years agoMerge from origin/emacs-28
Glenn Morris [Mon, 11 Oct 2021 15:04:57 +0000 (08:04 -0700)]
Merge from origin/emacs-28

1a1b206a8b Adapt the recent 'num_processors' change to MS-Windows
7cb4637923 Minor fix to clarify a sentence in emacs-lisp-intro
ab60144ea3 ; Pacify recent shorthand unused lexarg warnings.
e9df86004f Make tty-run-terminal-initialization load the .elc file (i...
07edc28bdb Fix ert errors when there's a test that binds `debug-on-er...
96278de8ac New function num-processors
575e626105 Add symbol property 'save-some-buffers-function' (bug#46374)
a3e10af95c Keep reading when typed RET in read-char-from-minibuffer a...
013e3be832 * lisp/userlock.el (ask-user-about-supersession-threat): A...
ae61d7a57d Fix point positioning on mouse clicks with non-zero line-h...
4c7e74c386 Complete shorthands to longhands for symbol-completing tables
c2513c5d0d Add new failing test for bug#51089
1d1e96377c ; * lisp/emacs-lisp/shortdoc.el: Fix typo.
6bf29072e9 Avoid mapping file names through 'substring'
bcce93f04c Update to Org 9.5-46-gb71474
5d408f1a24 Expanded testing of MH-E with multiple MH variants
b497add971 Fix Seccomp filter for newer GNU/Linux systems (Bug#51073).
75d9fbec88 Tramp code cleanup

# Conflicts:
# etc/NEWS
# test/lisp/progmodes/elisp-mode-tests.el

3 years agoRelease ERC 5.4
Amin Bandali [Mon, 11 Oct 2021 14:29:35 +0000 (10:29 -0400)]
Release ERC 5.4

* lisp/erc/erc.el (Version, erc-version): Bump to 5.4.
(customize-package-emacs-version-alist): Add entry for 5.4.

3 years ago* etc/ERC-NEWS: Announce ERC's addition to GNU ELPA.
Amin Bandali [Mon, 11 Oct 2021 14:25:08 +0000 (10:25 -0400)]
* etc/ERC-NEWS: Announce ERC's addition to GNU ELPA.

3 years ago* etc/ERC-NEWS: Fix outline level for the recent additions.
Amin Bandali [Mon, 11 Oct 2021 14:13:56 +0000 (10:13 -0400)]
* etc/ERC-NEWS: Fix outline level for the recent additions.

3 years agoAdd ERC entries for 'customize-package-emacs-version-alist'
Amin Bandali [Mon, 11 Oct 2021 14:04:44 +0000 (10:04 -0400)]
Add ERC entries for 'customize-package-emacs-version-alist'

* lisp/erc/erc.el (customize-package-emacs-version-alist): Add entries
for existing ERC versions.

3 years agoExpand the full file name
Dmitry Gutov [Mon, 11 Oct 2021 13:37:55 +0000 (16:37 +0300)]
Expand the full file name

* lisp/vc/vc-git.el (vc-git--literal-pathspec):
Expand the full file name, not just the local part (bug#51112).

3 years agoObsolete XEmacs compat convention in 'erc-button-press-button'
Stefan Kangas [Mon, 11 Oct 2021 13:39:17 +0000 (09:39 -0400)]
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 agoRevert "Obsolete XEmacs compat convention in erc-button-press-button"
Amin Bandali [Mon, 11 Oct 2021 13:34:41 +0000 (09:34 -0400)]
Revert "Obsolete XEmacs compat convention in erc-button-press-button"

This reverts commit f146325bd1556d1acafe26f6c263b83a92d3cd20.

This should be done in 'emacs-28', which will be merged into 'master'.

3 years agoBackport: Add ERC version to protocol log
F. Jason Park [Sat, 9 Oct 2021 12:59:43 +0000 (14:59 +0200)]
Backport: Add ERC version to protocol log

* lisp/erc/erc.el (erc-toggle-debug-irc-protocol): Include the erc
version in the debug logs (bug#51107).

(cherry picked from commit 13411346202f86e950bee076a5d528e98695fbb4)

3 years agoFontify "print" and "exec" as functions in python-mode
Stefan Kangas [Mon, 11 Oct 2021 13:10:26 +0000 (15:10 +0200)]
Fontify "print" and "exec" as functions in python-mode

* lisp/progmodes/python.el (python-font-lock-keywords-level-2):
Fontify "print" and "exec" as functions, which is the case in
Python 3.  (Bug#43298)

3 years agoAdapt the recent 'num_processors' change to MS-Windows
Eli Zaretskii [Mon, 11 Oct 2021 12:56:31 +0000 (15:56 +0300)]
Adapt the recent 'num_processors' change to MS-Windows

* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_nproc): Omit nproc.

* src/w32.c (num_processors): New function.
* src/w32proc.c (Fw32_get_nproc): Remove.

3 years agoMinor fix to clarify a sentence in emacs-lisp-intro
Stefan Kangas [Mon, 11 Oct 2021 12:43:11 +0000 (14:43 +0200)]
Minor fix to clarify a sentence in emacs-lisp-intro

* doc/lispintro/emacs-lisp-intro.texi (Simple Extension): Add the word
"that" for clarity.  (Bug#43965)

3 years agoMention --fingerprint in NEWS
Lars Ingebrigtsen [Mon, 11 Oct 2021 12:42:33 +0000 (14:42 +0200)]
Mention --fingerprint in NEWS

3 years agoMake the installed pmdp file use a fingerprint
Glenn Morris [Mon, 11 Oct 2021 12:03:26 +0000 (14:03 +0200)]
Make the installed pmdp file use a fingerprint

* Makefile.in (EMACS_PDMP): Use --fingerprint.

* doc/emacs/cmdargs.texi (Action Arguments): Document --fingerprint.

* src/emacs.c (load_pdump): Load the fingerprinted version of the
pdmp file (bug#42790).
(main): Support --fingerprint.

* src/pdumper.c (dump_fingerprint): Make non-static.

* src/pdumper.h: Declare dump_fingerprint.

3 years agoFix menu display of keys when cua-mode is active
Lars Ingebrigtsen [Mon, 11 Oct 2021 11:17:38 +0000 (13:17 +0200)]
Fix menu display of keys when cua-mode is active

* lisp/menu-bar.el (menu-bar-edit-menu): Make the menus display
the correct keys for editing when cua-mode is active (bug#28930).

3 years agoChange how cua-mode defined `C-x' and `C-c'
Lars Ingebrigtsen [Mon, 11 Oct 2021 11:16:57 +0000 (13:16 +0200)]
Change how cua-mode defined `C-x' and `C-c'

* lisp/emulation/cua-base.el (cua-cut-handler):
(cua-copy-handler): New aliases (bug#28930).
(cua--init-keymaps): Use them for `C-x' and `C-c' to be able to
distinguish the commands when looking them up in reverse.

3 years agoAllow :keys in menus to be computed dynamically
Lars Ingebrigtsen [Mon, 11 Oct 2021 11:15:41 +0000 (13:15 +0200)]
Allow :keys in menus to be computed dynamically

* doc/lispref/keymaps.texi (Extended Menu Items): Document it
(bug#28930).

* src/keyboard.c (parse_menu_item): Allow :keys to be a function.

3 years ago; Pacify recent shorthand unused lexarg warnings.
Basil L. Contovounesios [Mon, 11 Oct 2021 10:55:40 +0000 (11:55 +0100)]
; Pacify recent shorthand unused lexarg warnings.

3 years agoMake tty-run-terminal-initialization load the .elc file (if any)
Lars Ingebrigtsen [Mon, 11 Oct 2021 09:22:05 +0000 (11:22 +0200)]
Make tty-run-terminal-initialization load the .elc file (if any)

* lisp/faces.el (tty-run-terminal-initialization):
`locate-library' may have found the .el.gz file (bug#51116).

3 years agoFix ert errors when there's a test that binds `debug-on-error'
Lars Ingebrigtsen [Mon, 11 Oct 2021 09:14:26 +0000 (11:14 +0200)]
Fix ert errors when there's a test that binds `debug-on-error'

* lisp/emacs-lisp/ert.el (ert--run-test-internal): Don't infloop
on errors when signalling errors (bug#51131).

3 years agoTweak how auto-fill fills after a period
Lars Ingebrigtsen [Mon, 11 Oct 2021 08:17:58 +0000 (10:17 +0200)]
Tweak how auto-fill fills after a period

* lisp/textmodes/fill.el (fill-nobreak-p): Don't break immediately
after a space after a period (bug#17321).

3 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Mon, 11 Oct 2021 08:16:49 +0000 (10:16 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

3 years ago* doc/misc/tramp.texi (Bug Reports): Describe, how to activate ELPA Tramp.
Michael Albinus [Mon, 11 Oct 2021 08:16:06 +0000 (10:16 +0200)]
* doc/misc/tramp.texi (Bug Reports): Describe, how to activate ELPA Tramp.

3 years agoNew function num-processors
Paul Eggert [Sun, 10 Oct 2021 20:59:16 +0000 (13:59 -0700)]
New function num-processors

This addresses a FIXME comment in lisp/emacs-lisp/comp.el,
relating to the number of subsidiary processes used by
comp-run-async-workers in native compilation.
* admin/merge-gnulib (GNULIB_MODULES): Add nproc.
* doc/lispref/processes.texi (Process Information), etc/NEWS:
Document num-processors.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib/nproc.c, lib/nproc.h, m4/nproc.m4:
New files, copied from Gnulib by admin/merge-gnulib.
* lisp/emacs-lisp/comp.el (w32-get-nproc): Remove decl.
(comp-effective-async-max-jobs): Use num-processors.
* src/process.c: Include nproc.h.
(Fnum_processors): New function.
(syms_of_process): Define ‘all’, ‘current’, ‘num-processors’.
* src/w32proc.c (Fw32_get_nproc): Add FIXME comment.
* test/src/process-tests.el (process-num-processors): New test.

3 years agoAdd symbol property 'save-some-buffers-function' (bug#46374)
Juri Linkov [Sun, 10 Oct 2021 17:38:12 +0000 (20:38 +0300)]
Add symbol property 'save-some-buffers-function' (bug#46374)

* lisp/files.el (save-some-buffers-root): Put non-nil
symbol property 'save-some-buffers-function'.
(save-some-buffers): Check pred for the
symbol property 'save-some-buffers-function'.
(save-some-buffers-default-predicate): Mention
symbol property 'save-some-buffers-function'.

3 years agoKeep reading when typed RET in read-char-from-minibuffer and y-or-n-p
Juri Linkov [Sun, 10 Oct 2021 17:31:15 +0000 (20:31 +0300)]
Keep reading when typed RET in read-char-from-minibuffer and y-or-n-p

* lisp/subr.el (read-char-from-minibuffer-map):
Remap exit-minibuffer to read-char-from-minibuffer-insert-other.
(y-or-n-p-map): Remap 'exit' to y-or-n-p-insert-other.
(y-or-n-p): Don't mention RET in docstring.  (Bug#51101)

3 years ago* lisp/userlock.el (ask-user-about-supersession-threat): Accept 'y' strictly.
David M. Koppelman [Sun, 10 Oct 2021 17:27:29 +0000 (20:27 +0300)]
* lisp/userlock.el (ask-user-about-supersession-threat): Accept 'y' strictly.

(Bug#51101)

3 years agoFix point positioning on mouse clicks with non-zero line-height
Eli Zaretskii [Sun, 10 Oct 2021 14:14:55 +0000 (17:14 +0300)]
Fix point positioning on mouse clicks with non-zero line-height

* src/xdisp.c (move_it_to): After passing a newline, reset
it->override_ascent, like 'display_line' does (in
'append_space_for_newline').  (Bug#51111)

3 years agoComplete shorthands to longhands for symbol-completing tables
João Távora [Wed, 6 Oct 2021 10:30:29 +0000 (11:30 +0100)]
Complete shorthands to longhands for symbol-completing tables

Shorthands aren't symbols, they're text forms that 'read' into
symbols.  As such, shorthands aren't candidates in these tables of
symbols.  But in some situations, if no other candidates match the
pattern, we can e.g. complete "x-foo" to "xavier-foo" if the shorthand

  (("x-" . "xavier-"))

is set up in the buffer of origin.

bug#50959

* lisp/help-fns.el (help--symbol-completion-table): Report
`symbol-help' category.

* lisp/minibuffer.el (completion-styles-alist): New 'shorthand'
style.
(completion-category-defaults): Link 'symbol-help' category with
'shorthand' style.
(minibuffer--original-buffer): New variable.
(completing-read-default): Setup minibuffer--original-buffer.
(completion-shorthand-try-completion)
(completion-shorthand-all-completions): New helpers.

3 years agoAdd new failing test for bug#51089
João Távora [Sun, 10 Oct 2021 11:03:15 +0000 (12:03 +0100)]
Add new failing test for bug#51089

* test/lisp/progmodes/elisp-mode-tests.el
(elisp-dont-shadow-punctuation-only-symbols): Add new failing test.

3 years agoFix mairix-el.texi menu
Lars Ingebrigtsen [Sun, 10 Oct 2021 11:58:57 +0000 (13:58 +0200)]
Fix mairix-el.texi menu

3 years ago; * lisp/emacs-lisp/shortdoc.el: Fix typo.
Stefan Kangas [Sun, 10 Oct 2021 11:52:24 +0000 (13:52 +0200)]
; * lisp/emacs-lisp/shortdoc.el: Fix typo.

3 years agoAvoid mapping file names through 'substring'
Dmitry Gutov [Sun, 10 Oct 2021 01:14:35 +0000 (04:14 +0300)]
Avoid mapping file names through 'substring'

* lisp/progmodes/project.el (project--files-in-directory):
Avoid mapping file names through 'substring'.  Reducing the amount
of garbage generated.  Better perf by up to 20%.
Bump the package version.

3 years agoUpdate to Org 9.5-46-gb71474
Kyle Meyer [Sat, 9 Oct 2021 20:34:12 +0000 (16:34 -0400)]
Update to Org 9.5-46-gb71474

3 years agoExpanded testing of MH-E with multiple MH variants
Stephen Gildea [Sat, 9 Oct 2021 18:36:03 +0000 (11:36 -0700)]
Expanded testing of MH-E with multiple MH variants

* test/lisp/mh-e/mh-utils-tests.el: Environment variable TEST_MH_PATH
controls which installed MH variant to test with.  Moved the commentary
about testing with different MH variants from above 'with-mh-test-env'
definition to "Commentary" section at the top of the file.
* test/lisp/mh-e/test-all-mh-variants.sh: New script to test all
installed MH variants.

3 years agoFix Seccomp filter for newer GNU/Linux systems (Bug#51073).
Philipp Stephani [Sat, 9 Oct 2021 17:39:31 +0000 (19:39 +0200)]
Fix Seccomp filter for newer GNU/Linux systems (Bug#51073).

On some systems, process startup calls prctl(PR_CAPBSET_READ) via
'cap_get_bound'.  We can just return EINVAL.

* lib-src/seccomp-filter.c (main): Add a rule for
prctl(PR_CAPBSET_READ, ...).

3 years agoTramp code cleanup
Michael Albinus [Sat, 9 Oct 2021 16:42:11 +0000 (18:42 +0200)]
Tramp code cleanup

* lisp/net/tramp.el (tramp-remote-path): Adapt docstring.
(tramp-action-login, tramp-action-password, tramp-action-yesno)
(tramp-action-yn, tramp-process-actions): Move let-binding of
`enable-recursive-minibuffers' up.
(tramp-handle-make-process, tramp-handle-write-region):
* lisp/net/tramp-adb.el (tramp-adb-handle-write-region)
(tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process)
(tramp-sh-handle-write-region):
* lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-write-region):
Use `string-or-null-p'.

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

394209c1a0 (origin/emacs-28) ; Fix indentation in etc/NEWS
81f20e8b89 Fix thinko in ls-lisp--insert-directory
ec9f25bd35 Mention that RET means "yes" in y-or-n-p
00eb21c897 ; * src/dispextern.h (struct glyph_string): Comment on NCH...
20eb3644ba Rewrite Antinews for Emacs 28
3a9b881603 ; * etc/NEWS: Rearrange the "incompatible changes" sections.
ebb7e26013 ; * etc/NEWS: Fix a typo.
315fe20086 ; * src/Makefile.in (../native-lisp): Add comment.
47cbd103f5 * lisp/bindings.el (mode-line-position): Improve tooltip.
35a752863a * lisp/progmodes/xref.el: Bump the version.
bbcd8cc1a9 Slight simplificaiton
e139dd1b1e Fix doc strings of 2 categories
59782839cb (xref--collect-matches-1): Remove some intermediate alloca...
1c7d056f4d ; Fix two typos where em dash was written as en dash

# Conflicts:
# etc/NEWS

3 years ago* lisp/progmodes/bug-reference.el: Use new `eql` specializer syntax
Stefan Monnier [Sat, 9 Oct 2021 14:42:49 +0000 (10:42 -0400)]
* lisp/progmodes/bug-reference.el: Use new `eql` specializer syntax

3 years ago; Fix indentation in etc/NEWS
Michael Albinus [Sat, 9 Oct 2021 14:42:00 +0000 (16:42 +0200)]
; Fix indentation in etc/NEWS

3 years agoFix thinko in ls-lisp--insert-directory
Michael Albinus [Sat, 9 Oct 2021 14:18:53 +0000 (16:18 +0200)]
Fix thinko in ls-lisp--insert-directory

* lisp/ls-lisp.el (ls-lisp--insert-directory): Ensure that
SWITCHES is a string.

3 years agoMention that RET means "yes" in y-or-n-p
Lars Ingebrigtsen [Sat, 9 Oct 2021 13:04:11 +0000 (15:04 +0200)]
Mention that RET means "yes" in y-or-n-p

* lisp/subr.el (y-or-n-p): Mention that RET also means yes (bug#51101).

3 years agoAdd ERC version to protocol log
F. Jason Park [Sat, 9 Oct 2021 12:59:43 +0000 (14:59 +0200)]
Add ERC version to protocol log

* lisp/erc/erc.el (erc-toggle-debug-irc-protocol): Include the erc
version in the debug logs (bug#51107).

3 years agoRemove mistaken dired-x entry from previous info-look patch.
Lars Ingebrigtsen [Sat, 9 Oct 2021 12:49:38 +0000 (14:49 +0200)]
Remove mistaken dired-x entry from previous info-look patch.

3 years agoMake `C-h S' work on symbols from most of the manuals in Emacs
Lars Ingebrigtsen [Sat, 9 Oct 2021 12:44:21 +0000 (14:44 +0200)]
Make `C-h S' work on symbols from most of the manuals in Emacs

* lisp/info-look.el (lambda): Add `C-h S' lookup for all the
"misc" manuals in Emacs (bug#42753).

3 years agoAdd indices to mairix-el
Lars Ingebrigtsen [Sat, 9 Oct 2021 12:43:47 +0000 (14:43 +0200)]
Add indices to mairix-el

* doc/misc/mairix-el.texi (Function Index): Add indices.

3 years ago; * src/dispextern.h (struct glyph_string): Comment on NCHARS. (Bug#51105)
Eli Zaretskii [Sat, 9 Oct 2021 11:38:06 +0000 (14:38 +0300)]
; * src/dispextern.h (struct glyph_string): Comment on NCHARS.  (Bug#51105)

3 years agoRewrite Antinews for Emacs 28
Eli Zaretskii [Sat, 9 Oct 2021 11:32:28 +0000 (14:32 +0300)]
Rewrite Antinews for Emacs 28

* doc/lispref/anti.texi (Antinews):
* doc/emacs/anti.texi (Antinews): Rewrite for Emacs 28.
* doc/lispref/elisp.texi (Top):
* doc/emacs/emacs.texi (Top): Update menu accordingly.

3 years ago; * etc/NEWS: Rearrange the "incompatible changes" sections.
Eli Zaretskii [Sat, 9 Oct 2021 11:30:31 +0000 (14:30 +0300)]
; * etc/NEWS: Rearrange the "incompatible changes" sections.

3 years agoSimplify `clean-mode'
Lars Ingebrigtsen [Sat, 9 Oct 2021 11:12:33 +0000 (13:12 +0200)]
Simplify `clean-mode'

* lisp/simple.el (clean-mode): Simplify the property exclusion.

3 years ago; * etc/NEWS: Fix a typo.
Eli Zaretskii [Sat, 9 Oct 2021 09:49:38 +0000 (12:49 +0300)]
; * etc/NEWS: Fix a typo.

3 years ago; * src/Makefile.in (../native-lisp): Add comment.
Eli Zaretskii [Sat, 9 Oct 2021 08:23:44 +0000 (11:23 +0300)]
; * src/Makefile.in (../native-lisp): Add comment.

3 years agoRemove duplicate definition of x-display-color-p
Stefan Kangas [Sat, 9 Oct 2021 06:48:34 +0000 (08:48 +0200)]
Remove duplicate definition of x-display-color-p

* lisp/emulation/viper-init.el (x-display-color-p): Remove duplicate
definition.  This would just overwrite the alias defined in faces.el.

3 years ago* lisp/bindings.el (mode-line-position): Improve tooltip.
Stefan Kangas [Sat, 9 Oct 2021 06:32:25 +0000 (08:32 +0200)]
* lisp/bindings.el (mode-line-position): Improve tooltip.

3 years ago* lisp/progmodes/xref.el: Bump the version.
Dmitry Gutov [Sat, 9 Oct 2021 01:38:11 +0000 (04:38 +0300)]
* lisp/progmodes/xref.el: Bump the version.

3 years agoSlight simplificaiton
Dmitry Gutov [Sat, 9 Oct 2021 00:33:57 +0000 (03:33 +0300)]
Slight simplificaiton

* lisp/progmodes/xref.el (xref--insert-xrefs):
Compute log only once.  Use 'dolist'.

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 agoFix doc strings of 2 categories
Eli Zaretskii [Fri, 8 Oct 2021 19:20:19 +0000 (22:20 +0300)]
Fix doc strings of 2 categories

* lisp/international/characters.el (?R, ?L): Make the first line
of the categories' doc string shorter, to fit into 15 columns.

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 ago(xref--collect-matches-1): Remove some intermediate allocations
Dmitry Gutov [Fri, 8 Oct 2021 15:25:55 +0000 (18:25 +0300)]
(xref--collect-matches-1): Remove some intermediate allocations

* lisp/progmodes/xref.el: (xref--collect-matches-1):
Rewrite to remove some intermediate allocations.
Modest performance improvement.

3 years ago; Fix two typos where em dash was written as en dash
Stefan Kangas [Fri, 8 Oct 2021 14:50:32 +0000 (16:50 +0200)]
; Fix two typos where em dash was written as en dash

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)