1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 12:40:49 -08:00
Commit graph

160016 commits

Author SHA1 Message Date
Stefan Kangas
fdfd7ef6f3 Fix failing image-dired test
* test/lisp/image/image-dired-util-tests.el (ert-x, xdg): Require.
(image-dired-thumb-name/): Delete test.
(image-dired-thumb-name/standard)
(image-dired-thumb-name/image-dired)
(image-dired-thumb-name/per-directory): New tests.
2022-09-22 14:20:15 +02:00
Stefan Kangas
f43914b4d0 Add X-Hashcash to the end of mail headers
* lisp/mail/hashcash.el (mail-add-payment): Move headers to the end of
the headers.
2022-09-22 14:05:33 +02:00
Stefan Kangas
5ee3990de6 ; * lisp/mail/hashcash.el: Remove redundant :group args. 2022-09-22 14:05:33 +02:00
Michael Albinus
4cb53c0528 Improve don't save bookmark context from encrypted files
* etc/NEWS: Mention 'bookmark-inhibit-context-functions'.
Fix typos.

* lisp/bookmark.el (bookmark-inhibit-context-functions): New defcustom.
(bookmark-make-record): Use it.

* lisp/auth-source-pass.el (auth-source-pass-file-name-p):
* lisp/auth-source.el (auth-source-file-name-p): New defuns.  Add
them to `bookmark-inhibit-context-functions'.

* lisp/epa-hook.el (epa-file-name-p):
* lisp/net/tramp-crypt.el (tramp-crypt-file-name-p): Add them to
`bookmark-inhibit-context-functions'.
2022-09-22 13:14:46 +02:00
Po Lu
9369e4242f Work around rare crash when turning scroll wheel
* src/xterm.c (handle_one_xevent): Don't allow devices to be
added twice handling hierarcy events.
2022-09-22 17:06:36 +08:00
Sean Whitton
101f3cf5b9 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).
2022-09-21 12:31:05 -07:00
Stefan Kangas
447ff572be 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.
2022-09-21 18:02:51 +02:00
Stefan Kangas
080289a922 Obsolete image-mode--images-in-directory
* lisp/image-mode.el (image-mode--images-in-directory): Make
unused function obsolete.
2022-09-21 17:39:03 +02:00
Robert Pluim
69fab1589a Update version tag of rmail-retry-ignored-headers
* lisp/mail/rmail.el (rmail-retry-ignored-headers): Set :version to "29.1".
2022-09-21 17:18:34 +02:00
Eli Zaretskii
5f6e1c059c ; * lisp/emacs-lisp/gv.el (gv-synthetic-place): Doc fix. 2022-09-21 17:18:40 +03:00
Stefan Kangas
661be73b5e * test/lisp/image/image-dired-util-tests.el: New file. 2022-09-21 15:15:42 +02:00
Richard Stallman
13bd79e34f 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.
2022-09-21 08:43:29 -04:00
Stefan Kangas
fa37deba2e ; 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>.
2022-09-21 14:22:26 +02:00
Stefan Kangas
b0a85111e5 Add new function xdg-session-type to xdg.el
* lisp/xdg.el (xdg-session-type): New function.
2022-09-21 14:00:23 +02:00
Thuna
7a36828dc3 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
2022-09-21 13:53:50 +02:00
Po Lu
3ed9a1b0be 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)
2022-09-21 19:51:14 +08:00
Po Lu
517268d943 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.
2022-09-21 19:32:52 +08:00
Po Lu
61e4964a8a 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.
2022-09-21 19:32:51 +08:00
Lars Ingebrigtsen
760df6a5f1 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.
2022-09-21 13:13:47 +02:00
Gregory Heytings
a6bad4d60f ; * Makefile.in: Minor improvements of failure messages. 2022-09-21 10:37:09 +02:00
Stefan Kangas
9b14e312f4 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)
2022-09-21 10:25:06 +02:00
Stefan Kangas
43c0ebd8bc * admin/gitmerge.el (gitmerge): Use substitute-command-keys. 2022-09-21 10:15:45 +02:00
Stefan Kangas
00f6bb1286 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'.
2022-09-21 10:15:45 +02:00
Robert Pluim
cee9a2cbe0 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.
2022-09-21 09:15:47 +02:00
Juri Linkov
5fbf93d918 * 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.
2022-09-21 09:42:55 +03:00
Stefan Kangas
cc9acda7d3 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'.
2022-09-21 08:29:05 +02:00
Po Lu
df79a23da7 Fix minor thinko in focus tracking logic
* src/xterm.c (xi_handle_focus_change): Prefer explicit focus to
implicit focus.
2022-09-21 14:23:13 +08:00
Mauro Aranda
1231a601eb 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.
2022-09-20 21:11:40 +02:00
Stefan Kangas
d506d91b1f 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.
2022-09-20 20:53:40 +02:00
Stefan Kangas
903de63c6c Move linum.el to lisp/obsolete
* lisp/linum.el: Move from here...
* lisp/obsolete/linum.el: ...to here.  (Bug#57412)
2022-09-20 20:42:51 +02:00
Stefan Kangas
91c03e67f2 ; * doc/misc/gnus-faq.texi: Repunctuate sentences. 2022-09-20 20:37:44 +02:00
Stefan Kangas
5dd154deed * doc/misc/ede.texi (Extending EDE): Fix reference. 2022-09-20 20:35:46 +02:00
Eli Zaretskii
478b786d5a ; * doc/lispref/windows.texi (Window Hooks): Fix a typo (bug#51930). 2022-09-20 21:22:13 +03:00
Philip Kaludercic
0d16e567fe ; * doc/misc/rcirc.texi: Prefer 'setopt' over 'setq' 2022-09-20 19:25:39 +02:00
Philip Kaludercic
9b5fe5d6f1 ; * doc/misc/rcirc.texi: Repunctuate some sentences 2022-09-20 19:25:39 +02:00
Philip Kaludercic
6795b93d06 ; 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.
2022-09-20 19:25:39 +02:00
Philip Kaludercic
1d9a8884db 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.
2022-09-20 19:25:39 +02:00
Michael Albinus
96d2fb8d79 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2022-09-20 18:36:20 +02:00
Michael Albinus
814fd3057f ; 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.
2022-09-20 18:35:57 +02:00
Juri Linkov
cefda4a6c5 * 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.
2022-09-20 19:11:58 +03:00
Robert Pluim
120ade62cd 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)
2022-09-20 17:44:05 +02:00
Robert Pluim
01ceb23372 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).
2022-09-20 17:44:05 +02:00
Drew Adams
f372afef20 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).
2022-09-20 17:12:29 +02:00
Lars Ingebrigtsen
127ab231be Attempt to clarify Input Focus documentation
* doc/lispref/frames.texi (Input Focus): Try to clarify the
documentation (bug#51862).
2022-09-20 17:12:28 +02:00
Gregory Heytings
523821ed04 Improve display of advices on build failures.
* Makefile.in: Use three leading '*' characters, and redirect to stderr.
2022-09-20 16:14:03 +02:00
Stefan Monnier
5085351645 * 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 6075a7c5ae.
2022-09-20 09:58:47 -04:00
Michael Albinus
f419c507a7 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'.
2022-09-20 14:07:45 +02:00
Robert Pluim
ee6f8598ca Add vc-annotate-switches to manual
* doc/emacs/maintaining.texi (Old Revisions): Add description of
`vc-annotate-switches' and `vc-BACKEND-annotate-switches'.
2022-09-20 14:05:46 +02:00
Lars Ingebrigtsen
32d3cf6298 Mention compilation in the Package Installation node
* doc/emacs/package.texi (Package Installation): Mention that
packages are compiled (bug#51660).
2022-09-20 14:04:09 +02:00
Lars Ingebrigtsen
d989fc8997 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).
2022-09-20 13:56:19 +02:00