]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoAdd support for user edits to VC command arguments
Sean Whitton [Sun, 18 Sep 2022 21:47:23 +0000 (14:47 -0700)]
Add support for user edits to VC command arguments

* lisp/vc/vc-dispatcher.el (vc-pre-command-functions): New hook.
(vc-want-edit-command-p): New variable.
(vc-do-command): If vc-want-edit-command-p is non-nil, prompt the user
to edit the VC command & arguments before execution.  Run the new hook.
(vc-do-async-command): Use the new hook to insert into BUFFER the
command that's next to be run.
* lisp/vc/vc-git.el (vc-git--pushpull): Drop prompting code.  Bind
vc-want-edit-command-p so that vc-do-command handles the prompting.
Use the new hook to update compile-command with the edited command.
* lisp/vc/vc.el (vc-print-branch-log): A non-nil prefix argument now
means vc-want-edit-command-p is bound to a non-nil value (bug#57807).

2 years agoPrefer command remapping in image-dired-minor-mode
Stefan Kangas [Wed, 21 Sep 2022 16:02:51 +0000 (18:02 +0200)]
Prefer command remapping in image-dired-minor-mode

* lisp/image/image-dired-dired.el (image-dired-minor-mode-map):
Prefer command remapping.
(image-dired-minor-mode): Improve docstring.

2 years agoObsolete image-mode--images-in-directory
Stefan Kangas [Wed, 21 Sep 2022 15:38:30 +0000 (17:38 +0200)]
Obsolete image-mode--images-in-directory

* lisp/image-mode.el (image-mode--images-in-directory): Make
unused function obsolete.

2 years agoUpdate version tag of rmail-retry-ignored-headers
Robert Pluim [Wed, 21 Sep 2022 15:18:34 +0000 (17:18 +0200)]
Update version tag of rmail-retry-ignored-headers

* lisp/mail/rmail.el (rmail-retry-ignored-headers): Set :version to "29.1".

2 years ago; * lisp/emacs-lisp/gv.el (gv-synthetic-place): Doc fix.
Eli Zaretskii [Wed, 21 Sep 2022 14:18:40 +0000 (17:18 +0300)]
; * lisp/emacs-lisp/gv.el (gv-synthetic-place): Doc fix.

2 years ago* test/lisp/image/image-dired-util-tests.el: New file.
Stefan Kangas [Wed, 21 Sep 2022 13:13:40 +0000 (15:13 +0200)]
* test/lisp/image/image-dired-util-tests.el: New file.

2 years agoAdd more headers to default value of rmail-retry-ignored-headers.
Richard Stallman [Wed, 21 Sep 2022 12:43:29 +0000 (08:43 -0400)]
Add more headers to default value of rmail-retry-ignored-headers.

* rmail.el (rmail-retry-ignored-headers): Add more headers to default.
Don't bother with `purecopy'.  Split value readably.

2 years ago; Explicitly declare linum-mode obsolete
Stefan Kangas [Wed, 21 Sep 2022 12:22:26 +0000 (14:22 +0200)]
; Explicitly declare linum-mode obsolete

* lisp/obsolete/linum.el (linum-mode, global-linum-mode):
Explicitly declare obsolete to warn the user, and recommend using
'display-line-numbers-mode' instead.
Suggested by Philip Kaludercic <philipk@posteo.net>.

2 years agoAdd new function xdg-session-type to xdg.el
Stefan Kangas [Wed, 21 Sep 2022 12:00:23 +0000 (14:00 +0200)]
Add new function xdg-session-type to xdg.el

* lisp/xdg.el (xdg-session-type): New function.

2 years agoCorrect the usage of `image-file-name-regexps'
Thuna [Wed, 21 Sep 2022 11:51:53 +0000 (13:51 +0200)]
Correct the usage of `image-file-name-regexps'

* lisp/image-file.el (image-file-name-regexp): Treat
`image-file-name-regexps' as a list of regexps (as documented) in
addition to a regexp string (bug#57971).

Copyright-paperwork-exempt: yes

2 years agoFix handling of nil device names
Po Lu [Wed, 21 Sep 2022 11:49:31 +0000 (19:49 +0800)]
Fix handling of nil device names

* lisp/frame.el (device-class):
* lisp/term/pgtk-win.el (pgtk-device-class):
* lisp/term/x-win.el (x-device-class): Handle `nil'
correctly.  (bug#57969)

2 years agoSmall adjustments to precision pixel scrolling
Po Lu [Wed, 21 Sep 2022 11:31:45 +0000 (19:31 +0800)]
Small adjustments to precision pixel scrolling

* lisp/pixel-scroll.el
(pixel-scroll-precision-interpolation-factor): Adjust for
increased accuracy.
(pixel-scroll-precision-interpolate): Slightly decrease accuracy
in exchange for consing less floats.
(pixel-scroll-interpolate-down, pixel-scroll-interpolate-up):
Fix usage of function.

2 years agoImprove scroll interpolation in pixel-s-precision-mode
Po Lu [Wed, 21 Sep 2022 11:24:06 +0000 (19:24 +0800)]
Improve scroll interpolation in pixel-s-precision-mode

* lisp/pixel-scroll.el (pixel-scroll-precision-interpolate): New
arg FACTOR.  Use it to determine the interpolation factor if
non-nil.  Also, clear scroll remainder if direction changes, and
determine deltas based on the absolute amount of time passed.
(bug#57967)
(pixel-scroll-interpolate-down, pixel-scroll-interpolate-up):
Pass factor of 0 to scroll exactly 1 page.

2 years agoMake emacs-build-description into a command
Lars Ingebrigtsen [Wed, 21 Sep 2022 11:13:39 +0000 (13:13 +0200)]
Make emacs-build-description into a command

* lisp/mail/emacsbug.el (report-emacs-bug, submit-emacs-patch):
Adjust callers.
(emacs-build-description): Rename from
`emacs-bug--system-description' and make into a command.

2 years ago; * Makefile.in: Minor improvements of failure messages.
Gregory Heytings [Wed, 21 Sep 2022 08:37:09 +0000 (10:37 +0200)]
; * Makefile.in: Minor improvements of failure messages.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 21 Sep 2022 08:24:25 +0000 (10:24 +0200)]
Merge from origin/emacs-28

478b786d5a ; * doc/lispref/windows.texi (Window Hooks): Fix a typo (b...
5085351645 * lisp/text-modes/tex-mode.el (tex-mode): Fix AUCTeX regre...
ee6f8598ca Add vc-annotate-switches to manual
616dcf27e5 ; Fix typos in Lisp symbols
5405852541 Remove mention of non-existent `annotate-switches'
191505b8a3 Mention that src/macuvs.h sometimes needs committing
10373c4b68 ; More comment fixes in font.h (bug#57935)
c2595b8dcc ; * src/font.h (struct font_driver): Comment fix.
97b928ce09 MacOS ld warning from native compilation (bug#57849)

2 years ago* admin/gitmerge.el (gitmerge): Use substitute-command-keys.
Stefan Kangas [Wed, 21 Sep 2022 08:11:15 +0000 (10:11 +0200)]
* admin/gitmerge.el (gitmerge): Use substitute-command-keys.

2 years agoBind 'n'/'p' in gitmerge-mode to line scroll
Stefan Kangas [Wed, 21 Sep 2022 08:10:22 +0000 (10:10 +0200)]
Bind 'n'/'p' in gitmerge-mode to line scroll

* admin/gitmerge.el (gitmerge-mode-map): Bind 'n' and 'p' to
'next-line' and 'previous-line'.

2 years agoFix substitute-command-keys for global binding lookup
Robert Pluim [Wed, 21 Sep 2022 07:12:53 +0000 (09:12 +0200)]
Fix substitute-command-keys for global binding lookup

The previous change forgot to account for the (rare) case of doing a
lookup for a global binding when a specific keymap is in force.

* lisp/help.el (substitute-command-keys): Redo lookup in global map if
lookup in specific map fails.
*
test/lisp/help-tests.el (help-tests-substitute-command-keys/keymap-change):
Add testcase for specific map overriding advertised-binding.

2 years ago* lisp/outline.el: More improvements for buttons/margins (bug#57813)
Juri Linkov [Wed, 21 Sep 2022 06:42:55 +0000 (09:42 +0300)]
* lisp/outline.el: More improvements for buttons/margins (bug#57813)

(outline-minor-mode-use-margins): Don't use for modes derived from help-mode
that are handled by 'outline-minor-mode-use-buttons'.
(outline-open, outline-close, outline-close-rtl): Use image height
proportional to font height of 0.8em.
(outline-minor-mode): Remove overlays 'outline-button' and 'outline-margin',
and move such overlay removal after the call of 'outline-show-all'
that might trigger overlay addition.

2 years agoimage-dired: Support the customize-mode command
Stefan Kangas [Wed, 21 Sep 2022 06:27:42 +0000 (08:27 +0200)]
image-dired: Support the customize-mode command

* lisp/image/image-dired.el (image-dired-thumbnail-mode)
(image-dired-display-image-mode): Add custom group 'image-dired'.

2 years agoFix minor thinko in focus tracking logic
Po Lu [Wed, 21 Sep 2022 06:23:13 +0000 (14:23 +0800)]
Fix minor thinko in focus tracking logic

* src/xterm.c (xi_handle_focus_change): Prefer explicit focus to
implicit focus.

2 years agoRecognize the backslash operator in perl-mode
Mauro Aranda [Tue, 20 Sep 2022 14:18:45 +0000 (11:18 -0300)]
Recognize the backslash operator in perl-mode

* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
Add new rule to detect a backslash operator.  (Bug#11996)

* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-11996): New
test.

* test/lisp/progmodes/cperl-mode-resources/cperl-bug-11996.pl: New
file.

2 years agoMake linum.el obsolete
Stefan Kangas [Tue, 20 Sep 2022 18:52:42 +0000 (20:52 +0200)]
Make linum.el obsolete

* lisp/obsolete/linum.el: Add Obsolete-since.
* etc/NEWS: Announce obsoletion of linum.el.  (Bug#57412)

* doc/misc/efaq.texi (Displaying the current line or column):
* etc/TODO:
* lisp/faces.el: Don't mention linum.el.

2 years agoMove linum.el to lisp/obsolete
Stefan Kangas [Tue, 20 Sep 2022 18:42:51 +0000 (20:42 +0200)]
Move linum.el to lisp/obsolete

* lisp/linum.el: Move from here...
* lisp/obsolete/linum.el: ...to here.  (Bug#57412)

2 years ago; * doc/misc/gnus-faq.texi: Repunctuate sentences.
Stefan Kangas [Tue, 20 Sep 2022 18:37:44 +0000 (20:37 +0200)]
; * doc/misc/gnus-faq.texi: Repunctuate sentences.

2 years ago* doc/misc/ede.texi (Extending EDE): Fix reference.
Stefan Kangas [Tue, 20 Sep 2022 18:19:20 +0000 (20:19 +0200)]
* doc/misc/ede.texi (Extending EDE): Fix reference.

2 years ago; * doc/lispref/windows.texi (Window Hooks): Fix a typo (bug#51930).
Eli Zaretskii [Tue, 20 Sep 2022 18:22:13 +0000 (21:22 +0300)]
; * doc/lispref/windows.texi (Window Hooks): Fix a typo (bug#51930).

2 years ago; * doc/misc/rcirc.texi: Prefer 'setopt' over 'setq'
Philip Kaludercic [Tue, 20 Sep 2022 08:32:26 +0000 (10:32 +0200)]
; * doc/misc/rcirc.texi: Prefer 'setopt' over 'setq'

2 years ago; * doc/misc/rcirc.texi: Repunctuate some sentences
Philip Kaludercic [Mon, 19 Sep 2022 19:18:18 +0000 (21:18 +0200)]
; * doc/misc/rcirc.texi: Repunctuate some sentences

2 years ago; Don't set nil to be a face fore-/background
Philip Kaludercic [Mon, 19 Sep 2022 19:17:09 +0000 (21:17 +0200)]
; Don't set nil to be a face fore-/background

* lisp/net/rcirc.el (rcirc-color-attributes): Check if the parsed
background or foreground is nil before using it.

2 years agoHave rcirc handle bridge bots
Philip Kaludercic [Mon, 19 Sep 2022 19:15:04 +0000 (21:15 +0200)]
Have rcirc handle bridge bots

* doc/misc/rcirc.texi (Dealing with Bridge Bots): Document new feature.
* etc/NEWS: Mention the new feature.
* lisp/net/rcirc.el (rcirc-markup-text-functions): Add new markup function
(rcirc-pseudo-nicks): Add new local variable.
(rcirc-channel-nicks): Use 'rcirc-pseudo-nicks' for nick completion.
(rcirc-bridge-bot-alist): Add new user option.
(rcirc-bridged-nick): Add new face.
(rcirc-markup-bridge-bots): Add new function.

2 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Tue, 20 Sep 2022 16:36:20 +0000 (18:36 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

2 years ago; Minor Tramp cleanups
Michael Albinus [Tue, 20 Sep 2022 16:35:57 +0000 (18:35 +0200)]
; Minor Tramp cleanups

* lisp/net/tramp.el (tramp-build-remote-file-name-spec-regexp):
Handle the `simplified' syntax better.
(tramp-handle-file-name-case-insensitive-p): Do not unquote candidate.

2 years ago* lisp/outline.el: Bind margin mouse event to cycle outlines (bug#57813)
Juri Linkov [Tue, 20 Sep 2022 16:11:58 +0000 (19:11 +0300)]
* lisp/outline.el: Bind margin mouse event to cycle outlines (bug#57813)

(outline-minor-mode): In mode keymap bind
'right/left-margin mouse-1' to outline-cycle, and
'right/left-margin S-mouse-1' to outline-cycle-buffer.
(outline-hide-subtree, outline-show-subtree): Add save-excursion
to keep point unmoved after mouse click.
(outline-cycle): Add optional arg 'event' like in
outline-hide-subtree and outline-show-subtree, and
add save-excursion to keep point unmoved after mouse click.
(outline--make-button-overlay, outline--make-margin-overlay):
Put overlay property 'evaporate' to t.
(outline--insert-open-button, outline--insert-close-button):
Remove temporary attempts to bind margin-local mouse events.

2 years agoAllow keymap to override advertised-binding in docstrings
Robert Pluim [Mon, 19 Sep 2022 13:53:52 +0000 (15:53 +0200)]
Allow keymap to override advertised-binding in docstrings

Previously

(substitute-command-keys "\\<undo-repeat-map>\\[undo]")

would use the global advertised-binding for `undo', even though
there's a binding in `undo-repeat-map', which is highly
counter-intuitive.  Now the binding is looked up in the specified
keymap first.

* lisp/help.el (substitute-command-keys): Restrict the initial key
lookup to the specified keymap (if there is one).  (Bug#51384)

2 years agoSpecify keymap in gnus-custom-mode docstring
Robert Pluim [Mon, 19 Sep 2022 13:29:27 +0000 (15:29 +0200)]
Specify keymap in gnus-custom-mode docstring

* lisp/gnus/gnus-cus.el (gnus-custom-mode): Put in the keymap to use,
otherwise the bindings are looked up in the global map (where they
don't exist).

2 years agoTweak how use-region-p works with `use-empty-active-region'
Drew Adams [Tue, 20 Sep 2022 15:11:47 +0000 (17:11 +0200)]
Tweak how use-region-p works with `use-empty-active-region'

* lisp/simple.el (use-region-p): Don't report non-nil if the user
has just clicked mouse-1 without extending the region (bug#51874).

2 years agoAttempt to clarify Input Focus documentation
Lars Ingebrigtsen [Tue, 20 Sep 2022 14:47:21 +0000 (16:47 +0200)]
Attempt to clarify Input Focus documentation

* doc/lispref/frames.texi (Input Focus): Try to clarify the
documentation (bug#51862).

2 years agoImprove display of advices on build failures.
Gregory Heytings [Tue, 20 Sep 2022 14:12:31 +0000 (14:12 +0000)]
Improve display of advices on build failures.

* Makefile.in: Use three leading '*' characters, and redirect to stderr.

2 years ago* lisp/text-modes/tex-mode.el (tex-mode): Fix AUCTeX regression
Stefan Monnier [Tue, 20 Sep 2022 13:58:21 +0000 (09:58 -0400)]
* lisp/text-modes/tex-mode.el (tex-mode): Fix AUCTeX regression

As discussed in
https://lists.gnu.org/r/auctex/2022-08/msg00004.html
AUCTeX installs its own advice to redefine `tex-mode`, and that
advice used to take precedence before commit 6075a7c5ae3fa456cd.

2 years agoWrap max-specpdl-size with with-no-warnings in Tramp
Michael Albinus [Tue, 20 Sep 2022 12:07:45 +0000 (14:07 +0200)]
Wrap max-specpdl-size with with-no-warnings in Tramp

* lisp/net/tramp-archive.el (max-specpdl-size):
* lisp/net/tramp-gvfs.el (max-specpdl-size): Wrap with
`with-no-warnings'.

2 years agoAdd vc-annotate-switches to manual
Robert Pluim [Tue, 20 Sep 2022 12:02:44 +0000 (14:02 +0200)]
Add vc-annotate-switches to manual

* doc/emacs/maintaining.texi (Old Revisions): Add description of
`vc-annotate-switches' and `vc-BACKEND-annotate-switches'.

2 years agoMention compilation in the Package Installation node
Lars Ingebrigtsen [Tue, 20 Sep 2022 12:04:09 +0000 (14:04 +0200)]
Mention compilation in the Package Installation node

* doc/emacs/package.texi (Package Installation): Mention that
packages are compiled (bug#51660).

2 years agoAllow hl-line-mode so work when global-hl-line-mode is active
Lars Ingebrigtsen [Tue, 20 Sep 2022 11:55:39 +0000 (13:55 +0200)]
Allow hl-line-mode so work when global-hl-line-mode is active

* lisp/hl-line.el (hl-line-mode): Allow switching off the global
mode in the current buffer (bug#51580).

2 years ago; * etc/NEWS: Fix capitalization.
Eli Zaretskii [Tue, 20 Sep 2022 11:53:22 +0000 (14:53 +0300)]
; * etc/NEWS: Fix capitalization.

2 years agoGet fewer false positives for :keyword and &options
Lars Ingebrigtsen [Tue, 20 Sep 2022 11:33:07 +0000 (13:33 +0200)]
Get fewer false positives for :keyword and &options

* lisp/emacs-lisp/lisp-mode.el (lisp-mode--search-key): New
function to check more carefully for start of :keywords and
&options (bug#51574).
(lisp-fdefs): Use it.

2 years agoObsolete unused variable in debug.el
Stefan Kangas [Tue, 20 Sep 2022 09:46:18 +0000 (11:46 +0200)]
Obsolete unused variable in debug.el

* lisp/emacs-lisp/debug.el (debugger-previous-backtrace): Make
unused variable obsolete.

2 years agoFurther ffap-read-file-or-url tweaks
Lars Ingebrigtsen [Tue, 20 Sep 2022 10:38:58 +0000 (12:38 +0200)]
Further ffap-read-file-or-url tweaks

* lisp/ffap.el (ffap-read-file-or-url): Make this work for URLs
again if you're using `ido-everywhere' (bug#57943).

2 years ago; Fix typos in Lisp symbols
Stefan Kangas [Tue, 20 Sep 2022 10:21:40 +0000 (12:21 +0200)]
; Fix typos in Lisp symbols

2 years agoRemove mention of non-existent `annotate-switches'
Robert Pluim [Tue, 20 Sep 2022 09:46:04 +0000 (11:46 +0200)]
Remove mention of non-existent `annotate-switches'

* lisp/vc/vc.el (vc-annotate-switches): Remove mention of
`annotate-switches'.  As far as I can tell this has never existed in
Emacs.

2 years agoMention that src/macuvs.h sometimes needs committing
Robert Pluim [Mon, 19 Sep 2022 12:49:55 +0000 (14:49 +0200)]
Mention that src/macuvs.h sometimes needs committing

* admin/notes/unicode: src/macuvs.h is generated, but needs to be
committed sometimes.

2 years ago; * Makefile.in: Fix bashism.
Gregory Heytings [Tue, 20 Sep 2022 09:20:12 +0000 (11:20 +0200)]
; * Makefile.in: Fix bashism.

2 years agoUse "set -o nounset" in bash scripts
Stefan Kangas [Tue, 20 Sep 2022 08:27:10 +0000 (10:27 +0200)]
Use "set -o nounset" in bash scripts

* admin/automerge:
* admin/make-manuals:
* admin/update-copyright:
* admin/update_autogen:
* admin/upload-manuals: Use "set -o nounset".

2 years agoRevert "Allow nil value for filter-buffer-substring-function"
Stefan Kangas [Tue, 20 Sep 2022 07:28:46 +0000 (09:28 +0200)]
Revert "Allow nil value for filter-buffer-substring-function"

This reverts commit a7c65fc6660878e244432a5b25fb3a4ff20e8604.

2 years agoRemove intern calls with a static string from haiku*.c
Po Lu [Tue, 20 Sep 2022 03:00:10 +0000 (03:00 +0000)]
Remove intern calls with a static string from haiku*.c

* src/haikufns.c (Fx_show_tip, syms_of_haikufns):
* src/haikufont.c (haikufont_maybe_handle_special_family)
(syms_of_haikufont):
* src/haikuterm.c (haiku_term_init, syms_of_haikuterm): Replace
intern with real predefined symbols.

2 years agoBury new ERC buffers by default
F. Jason Park [Wed, 7 Sep 2022 02:09:54 +0000 (19:09 -0700)]
Bury new ERC buffers by default

* lisp/erc/erc.el (erc-join-buffer): Change default value to `bury'.
(erc-setup-buffer): Make `window-noselect' behave more like its
description and abstain from ever replacing the current buffer.
* test/lisp/erc/erc-scenarios-base-reconnect.el
(erc-scenarios-common-base-reconnect-options): Update helper to handle
new default value for option `erc-join-buffer'.
(erc-scenarios-base-reconnect-options--buffer): Update and rename
function `erc-scenarios-base-reconnect-options--default'.
(erc-scenarios-base-reconnect-options--default): Update and rename
function `erc-scenarios-base-reconnect-options--bury'.
* etc/ERC-NEWS: Update existing display-buffers section for 5.5.
(Bug#51753)

2 years agoOffer to regexp-quote new items in erc-match commands
F. Jason Park [Thu, 7 Jul 2022 02:57:11 +0000 (19:57 -0700)]
Offer to regexp-quote new items in erc-match commands

* lisp/erc/erc-match.el (erc-match-quote-when-adding) Add new option
to quote new items added to match lists.
(erc-add-entry-to-list): Add optional `alt' parameter indicating
whether to flip the behavior indicated by
`erc-match-quote-when-adding'.
(erc-add-pal, erc-add-fool, erc-add-keyword, erc-add-dangerous-host):
Pass universal arg to `erc-add-entry-to-list' as `alt' argument.
(erc-match-pal-p, erc-match-fool-p, erc-match-keyword-p,
erc-match-dangerous-host-p): Don't bother matching when list is nil.

* lisp/erc/erc.el (erc-list-match (lst str): Join input list as regexp
union instead of looping over items.

* etc/ERC-NEWS: Update misc-UX section for 5.5.

* test/lisp/erc/erc-match-tests.el: New file. (Bug#56450)

2 years agoDon't record undo history in erc-protocol buffers
F. Jason Park [Sat, 3 Sep 2022 04:57:57 +0000 (21:57 -0700)]
Don't record undo history in erc-protocol buffers

* lisp/erc/erc.el (erc-log-irc-protocol): Disable undo history.

2 years agoStabilize channels variant of erc-reuse-buffers test
F. Jason Park [Wed, 17 Aug 2022 07:00:53 +0000 (00:00 -0700)]
Stabilize channels variant of erc-reuse-buffers test

* lisp/erc/erc-networks.el (erc-networks--id-sort-buffers): Use
`buffer-local-value' instead of `with-current-buffer'.

* test/lisp/erc/erc-scenarios-base-reuse-buffers.el
(erc-scenarios-common--base-reuse-buffers-channel-buffers): Wait for
buffers to be created by server-initiated JOINs.
(erc-scenarios-base-reuse-buffers-channel-buffers--disabled): Remove
`:unstable' tag.

* test/lisp/erc-tests.el (erc-ring-previous-command): Remove
unnecessary `goto-char'.

2 years ago; Tag some ERC test-server tests as being :unstable
F. Jason Park [Sun, 18 Sep 2022 21:42:01 +0000 (14:42 -0700)]
; Tag some ERC test-server tests as being :unstable

* test/lisp/erc/resources/base/assoc/samenet/chester.eld: Relax timeout.
* test/lisp/erc/resources/base/assoc/samenet/tester.eld: Relax timeout.
* test/lisp/erc/resources/base/assoc/samenet/tester2.eld: Relax timeout.
* test/lisp/erc/resources/base/netid/samenet/chester.eld: Relax timeout.
* test/lisp/erc/resources/base/netid/samenet/tester.eld: Relax timeout.
* test/lisp/erc/resources/erc-d/erc-d-tests.el (erc-d-run-linger,
erc-d-run-linger-fail, erc-d-run-linger-direct): Mark some tests as
being unstable.

2 years ago* lisp/emacs-lisp/cl-generic.el (cl--generic-lambda): Fix bug#57903
Stefan Monnier [Mon, 19 Sep 2022 20:19:44 +0000 (16:19 -0400)]
* lisp/emacs-lisp/cl-generic.el (cl--generic-lambda): Fix bug#57903

Fall back to old slower calling convention in dynbound code (bug#56596).

2 years ago* lisp/outline.el (outline-open): Revert 'text' back to " open ".
Juri Linkov [Mon, 19 Sep 2022 20:12:17 +0000 (23:12 +0300)]
* lisp/outline.el (outline-open): Revert 'text' back to " open ".

(outline-close): Revert 'text' back to " close ".
(outline-close-rtl): Remove 'text' since it's inherited from the parent
'outline-close'.

2 years agoImprove advices on build failures.
Gregory Heytings [Mon, 19 Sep 2022 15:52:36 +0000 (15:52 +0000)]
Improve advices on build failures.

* Makefile.in: Mention "make extraclean; make".  Mention mailing the
bugtracker among the possible choices.  Fix typo.

2 years ago* lisp/outline.el (outline-minor-mode-use-margins): New user option.
Juri Linkov [Mon, 19 Sep 2022 19:35:51 +0000 (22:35 +0300)]
* lisp/outline.el (outline-minor-mode-use-margins): New user option.

(outline--use-margins, outline--use-buttons, outline--use-rtl):
New buffer-local internal variables.
(outline-open, outline-close): Move :ascent center to default of define-icon.
Use ASCII-art for text.  Fix docstring and help-echo.
(outline-close-rtl, outline-open-in-margins)
(outline-close-in-margins, outline-close-rtl-in-margins): New icon
definitions.
(outline-minor-mode-highlight-buffer): Remove outline--insert-open-button
since initial outline--fix-up-all-buttons is added now to outline-minor-mode.
(outline-minor-mode): Set buffer-local outline--use-buttons,
outline--use-margins and outline--use-rtl.  Show/hide margins for
outline--use-margins.  Add hook after-change-functions for editable buffers.
Move outline--fix-up-all-buttons for both cases: font-lock and non-font-lock.
(outline--use-buttons-p): Remove function.
(outline--make-button-overlay): Use outline--use-rtl icon outline-close-rtl.
(outline--make-margin-overlay): New function.
(outline--insert-open-button, outline--insert-close-button): Add optional
arg 'use-margins'.
(outline--fix-up-all-buttons): Call outline--insert-close-button
and outline--insert-open-button with arg outline--use-margins.
(outline-cycle-buffer): Remove outline--fix-up-all-buttons
that is already called from outline-flag-region.

* lisp/emacs-lisp/icons.el (icons--create): Handle keywords :rotation
and :ascent with the default value 'center (bug#57813).

* doc/emacs/text.texi (Outline Mode): Mention outline-minor-mode-use-margins.

2 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Mon, 19 Sep 2022 19:15:06 +0000 (21:15 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

2 years agoMinor touch-ups of some recent OSC stuff
Matthias Meulien [Mon, 19 Sep 2022 18:47:00 +0000 (20:47 +0200)]
Minor touch-ups of some recent OSC stuff

* lisp/comint.el (comint-osc-handlers):
(comint-osc-hyperlink-map): Use defvaralias (bug#57821).

* lisp/osc.el: Fix some comments.

2 years agoperl-mode: / is a regexp match if there's nothing before it
Mauro Aranda [Mon, 19 Sep 2022 18:36:53 +0000 (20:36 +0200)]
perl-mode: / is a regexp match if there's nothing before it

* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
A "/" that starts the first statement is a regexp match.  (Bug#997)
* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-997): New
test.

2 years agoAbolish max-specpdl-size (bug#57911)
Mattias Engdegård [Mon, 19 Sep 2022 08:55:09 +0000 (10:55 +0200)]
Abolish max-specpdl-size (bug#57911)

The max-lisp-eval-depth limit is sufficient to prevent unbounded stack
growth including the specbind stack; simplify matters for the user by
not having them to worry about two different limits.  This change
turns max-specpdl-size into a harmless variable with no effects,
to keep existing code happy.

* lisp/subr.el (max-specpdl-size):
Define as an ordinary (but obsolete) dynamic variable.
* admin/grammars/Makefile.in:
* doc/lispintro/emacs-lisp-intro.texi (Loops & Recursion):
* doc/lispref/control.texi (Cleanups):
* doc/lispref/edebug.texi (Checking Whether to Stop):
* doc/lispref/eval.texi (Eval):
* doc/lispref/variables.texi (Local Variables):
* doc/misc/calc.texi (Recursion Depth):
Update documentation.
* etc/NEWS: Announce.
* src/eval.c
(FletX): Use safe iteration to guard against circular bindings list.
(syms_of_eval): Remove old max-specpdl-size definition.
(init_eval_once, restore_stack_limits, call_debugger)
(signal_or_quit, grow_specpdl_allocation):
* leim/Makefile.in:
* lisp/Makefile.in:
* lisp/calc/calc-stuff.el (calc-more-recursion-depth)
(calc-less-recursion-depth):
* lisp/calc/calc.el (calc-do):
* lisp/cedet/semantic/ede-grammar.el (ede-proj-makefile-insert-rules):
* lisp/cedet/semantic/grammar.el (semantic-grammar-batch-build-one-package):
* lisp/cus-start.el (standard):
* lisp/emacs-lisp/comp.el (comp--native-compile):
* lisp/emacs-lisp/edebug.el (edebug-max-depth):
(edebug-read-and-maybe-wrap-form, edebug-default-enter):
* lisp/emacs-lisp/regexp-opt.el (regexp-opt):
* lisp/eshell/esh-mode.el (eshell-mode):
* lisp/loadup.el (max-specpdl-size):
* lisp/mh-e/mh-e.el (mh-invisible-headers):
* lisp/net/shr.el (shr-insert-document, shr-descend):
* lisp/play/hanoi.el (hanoi-internal):
* lisp/progmodes/cperl-mode.el:
* src/fileio.c (Fdo_auto_save):
Remove references to and modifications of max-specpdl-size.

2 years ago; More comment fixes in font.h (bug#57935)
Eli Zaretskii [Mon, 19 Sep 2022 15:57:32 +0000 (18:57 +0300)]
; More comment fixes in font.h (bug#57935)

2 years ago; * src/font.h (struct font_driver): Comment fix.
Manuel Giraud [Mon, 19 Sep 2022 15:15:50 +0000 (17:15 +0200)]
; * src/font.h (struct font_driver): Comment fix.

2 years agoAllow nil value for filter-buffer-substring-function
Stefan Kangas [Mon, 19 Sep 2022 14:54:19 +0000 (16:54 +0200)]
Allow nil value for filter-buffer-substring-function

* lisp/simple.el
(filter-buffer-substring): Support a nil value to be more resilient.
(filter-buffer-substring-function): Doc fix; improve and update for
above change.

2 years agoSupport imenu in emacs-news-mode
Stefan Kangas [Mon, 19 Sep 2022 14:02:28 +0000 (16:02 +0200)]
Support imenu in emacs-news-mode

* lisp/outline.el (outline-imenu-generic-expression): New variable
broken out from...
(outline-mode): ...here.
* lisp/textmodes/emacs-news-mode.el (emacs-news--mode-common): Use
above new variable to add imenu support.

2 years agoFix 'posn-at-point' around several 'display' properties
Eli Zaretskii [Mon, 19 Sep 2022 13:24:44 +0000 (16:24 +0300)]
Fix 'posn-at-point' around several 'display' properties

* src/xdisp.c (pos_visible_p): Fix the case when CHARPOS is hidden
by a display property, and its neighbors are also hidden.
(Bug#45915)

2 years ago* doc/misc/eieio.texi (Introduction, Generics): Remove outdated limits
Stefan Monnier [Mon, 19 Sep 2022 11:39:21 +0000 (07:39 -0400)]
* doc/misc/eieio.texi (Introduction, Generics): Remove outdated limits

Reported by Hokomo <hokomo@airmail.cc>.

2 years agoImprove check for misleading 'cl-case' cases (Bug#57915).
Philipp Stephani [Mon, 19 Sep 2022 11:34:51 +0000 (13:34 +0200)]
Improve check for misleading 'cl-case' cases (Bug#57915).

* lisp/emacs-lisp/cl-macs.el (cl-case): Check that the case is of the
form (quote FOO), not just (quote).
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-case-no-warning): New unit test.

2 years agoRevert change in Tramp inotifywait
Michael Albinus [Mon, 19 Sep 2022 09:39:29 +0000 (11:39 +0200)]
Revert change in Tramp inotifywait

* lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
Revert use of "-P", it doesn't exist in older inotifywait versions.

* test/lisp/filenotify-tests.el: Deactivate instrumentation.

2 years agoPrefer DE specific commands to set wallpaper
Stefan Kangas [Mon, 19 Sep 2022 09:39:00 +0000 (11:39 +0200)]
Prefer DE specific commands to set wallpaper

* lisp/image/wallpaper.el (wallpaper--default-commands): Rearrange
order to prioritize desktop environment specific commands before
general Wayland commands like "wbg" or even "swaybg".  (Bug#57781)

2 years agoAvoid an unnecessary call to intern
Stefan Kangas [Mon, 19 Sep 2022 09:06:01 +0000 (11:06 +0200)]
Avoid an unnecessary call to intern

* src/doc.c (Fdocumentation): Prefer DEFSYM to using intern directly.

2 years agoFix eshell directory and executable completion on action t
Daniel Pettersson [Mon, 19 Sep 2022 08:21:59 +0000 (10:21 +0200)]
Fix eshell directory and executable completion on action t

* lisp/eshell/em-cmpl.el (eshell--pcomplete-executables): New
function (bug#57905).
(eshell--complete-commands-list): Use it.

Copyright-paperwork-exempt: yes

2 years ago; * Makefile.in: Fix typo.
Gregory Heytings [Mon, 19 Sep 2022 07:50:03 +0000 (09:50 +0200)]
; * Makefile.in: Fix typo.

2 years agoDon't save bookmark context from encrypted files
Lars Ingebrigtsen [Mon, 19 Sep 2022 07:42:28 +0000 (09:42 +0200)]
Don't save bookmark context from encrypted files

* doc/emacs/regs.texi (Bookmarks): Mention this.
* lisp/bookmark.el (bookmark-make-record): Don't include context
in encrypted files (bug#57856).

* lisp/epa-hook.el (epa-file-name-p): New function.

2 years ago; * Makefile.in: Add "make bootstrap configure=default" as a first choice.
Gregory Heytings [Mon, 19 Sep 2022 07:34:35 +0000 (07:34 +0000)]
; * Makefile.in: Add "make bootstrap configure=default" as a first choice.

2 years agoRevert 60de98f6f0 and b2d419ed5b.
Gregory Heytings [Mon, 19 Sep 2022 07:38:58 +0000 (09:38 +0200)]
Revert 60de98f6f0 and b2d419ed5b.

2 years ago* Makefile.in: Readd warnings about "git clean -fdx"
Po Lu [Mon, 19 Sep 2022 07:20:25 +0000 (15:20 +0800)]
* Makefile.in: Readd warnings about "git clean -fdx"

2 years agoRevert "; * Makefile.in: Partly revert 5b3c4004a9."
Po Lu [Mon, 19 Sep 2022 07:19:23 +0000 (15:19 +0800)]
Revert "; * Makefile.in: Partly revert 5b3c4004a9."

This reverts commit e54da280ff4bf458c437f87dd64e848cdc75479c.

2 years agomake gen-clean remove some newly-added generated files
Lars Ingebrigtsen [Mon, 19 Sep 2022 07:06:31 +0000 (09:06 +0200)]
make gen-clean remove some newly-added generated files

* admin/unidata/Makefile.in (gen-clean): Remove some newly-added
generated files.

2 years ago; * Makefile.in: Partly revert 5b3c4004a9.
Gregory Heytings [Mon, 19 Sep 2022 06:39:08 +0000 (06:39 +0000)]
; * Makefile.in: Partly revert 5b3c4004a9.

2 years agoMacOS ld warning from native compilation (bug#57849)
Gerd Möllmann [Sun, 18 Sep 2022 06:05:52 +0000 (08:05 +0200)]
MacOS ld warning from native compilation (bug#57849)

* lisp/emacs-lisp/comp.el (native-comp-driver-options): Add "-Wl,-w"
on Darwin systems.
* etc/NEWS: Describe change.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Mon, 19 Sep 2022 04:31:49 +0000 (06:31 +0200)]
Merge from origin/emacs-28

a2f9788cbc ; Minor copyedits of *-frame-alist doc strings
c200098dde ; * src/intervals.c (get_local_map): Fix commentary.
69cc3d38bc Fix Tramp error with eshell integration

2 years agoRemove calls to intern with a static string from code that runs on X
Po Lu [Mon, 19 Sep 2022 02:01:52 +0000 (10:01 +0800)]
Remove calls to intern with a static string from code that runs on X

* Makefile.in (actual-all): Reword build failure advice.

* src/bytecode.c (exec_byte_code, syms_of_bytecode):
* src/font.c (syms_of_font):
* src/hbfont.c (uni_combining):
* src/xfns.c (Fx_display_backing_store, Fx_display_visual_class)
(x_create_tip_frame, Fx_show_tip, syms_of_xfns):
* src/xfont.c (xfont_supported_scripts, xfont_driver)
(syms_of_xfont):
* src/xsmfns.c (Fhandle_save_session, syms_of_xsmfns): Remove
calls to intern with a static string.

2 years agoGet rid of intern calls to static strings in xterm.c
Po Lu [Mon, 19 Sep 2022 01:39:21 +0000 (09:39 +0800)]
Get rid of intern calls to static strings in xterm.c

* src/xterm.c (x_cr_export_frames): Use Qconcat instead of
interning concat.
(syms_of_xterm): New defsym Qconcat.

2 years agoFix GC protection of scroll bar windows
Po Lu [Mon, 19 Sep 2022 01:35:58 +0000 (09:35 +0800)]
Fix GC protection of scroll bar windows

* src/xterm.c (x_atom_refs): Add _EMACS prefix to
vendor-specific scroll-bar atoms.
(handle_one_xevent): Unprotect windows immediately upon
receiving an _EMACS_SCROLLBAR event, instead of waiting for the
event to be put on the keyboard buffer.  Reported by martin
rudalics <rudalics@gmx.at>.

2 years agoDisplay a help message when building Emacs failed.
Gregory Heytings [Sun, 18 Sep 2022 21:22:13 +0000 (21:22 +0000)]
Display a help message when building Emacs failed.

* Makefile.in (actual-all): New target, replacing the former 'all'
target.
(advice-on-failure, sanity-check): New targets.
(all): Use the new targets.
(bootstrap-all): New target, identical to 'all' but meant for the
'bootstrap' target in GNUmakefile.
(actual-bootstrap): New target, replacing the former 'bootstrap'
target.  Use the 'actual-all' target instead of the 'all' target.
(bootstrap): Use the new targets.

* GNUmakefile (bootstrap): Use the new 'bootstrap-all' target.

2 years ago; Minor copyedits of *-frame-alist doc strings
Eli Zaretskii [Sun, 18 Sep 2022 17:21:58 +0000 (20:21 +0300)]
; Minor copyedits of *-frame-alist doc strings

* src/frame.c (syms_of_frame) <default-frame-alist>:
* lisp/frame.el (initial-frame-alist): Minor doc fixes.

2 years ago; * src/intervals.c (get_local_map): Fix commentary.
Eli Zaretskii [Sun, 18 Sep 2022 16:59:58 +0000 (19:59 +0300)]
; * src/intervals.c (get_local_map): Fix commentary.

2 years agoPrefer using DEFSYMs to intern with wrong_type_argument
Stefan Kangas [Sun, 18 Sep 2022 16:55:19 +0000 (18:55 +0200)]
Prefer using DEFSYMs to intern with wrong_type_argument

* src/data.c (syms_of_data) <Qbooleanp>:
* src/fileio.c (syms_of_fileio) <Qinserted_chars, Qfile_offset>:
* src/font.c (syms_of_font) <Qfont_extra_type>: New DEFSYMs.
* src/dbusbind.c (xd_signature, xd_append_arg):
* src/fileio.c (file_offset, Finsert_file_contents):
* src/font.c (Ffontp): Prefer using above new DEFSYMs to using intern
directly.

2 years ago; Fix doc strings in osc.el
Eli Zaretskii [Sun, 18 Sep 2022 16:09:54 +0000 (19:09 +0300)]
; Fix doc strings in osc.el

* lisp/osc.el (osc-filter-region, osc-apply-on-region)
(osc-window-title-handler, osc-directory-tracker)
(osc-hyperlink-handler, osc-for-compilation-buffer)
(osc-compilation-filter): Fix doc strings.
`

2 years ago; * etc/NEWS: Fix typos and punctuation in OSC entry.
Eli Zaretskii [Sun, 18 Sep 2022 15:56:30 +0000 (18:56 +0300)]
; * etc/NEWS: Fix typos and punctuation in OSC entry.

2 years agoMinor Tramp cleanups
Michael Albinus [Sun, 18 Sep 2022 14:53:49 +0000 (16:53 +0200)]
Minor Tramp cleanups

* lisp/net/tramp-compat.el (tramp-compat-rx): Declare.

* lisp/net/tramp-integration.el (info-lookup-maybe-add-help):
Fix `rx' call.