]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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 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)

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.