]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 weeks ago(Ftranspose_regions): Fix bug#76124
Stefan Monnier [Sun, 6 Jul 2025 23:15:51 +0000 (19:15 -0400)]
(Ftranspose_regions): Fix bug#76124

* src/editfns.c (Ftranspose_regions): Be careful that ELisp code could
move the gap from under our feet.

* test/src/editfns-tests.el (editfns-tests--bug76124): New test.

(cherry picked from commit b93d49a3787085407a9dd57d678d0fc552878fcc)

3 weeks agolisp/mpc.el (mpc-describe-song): Don't quote lambdas
Stefan Monnier [Sun, 6 Jul 2025 14:39:33 +0000 (10:39 -0400)]
lisp/mpc.el (mpc-describe-song): Don't quote lambdas

(cherry picked from commit 4732b8921db04187612b45555863ecc1df6be552)

3 weeks agoLog Edit: Don't auto-fill within the headers
Sean Whitton [Sun, 6 Jul 2025 12:58:05 +0000 (13:58 +0100)]
Log Edit: Don't auto-fill within the headers

* lisp/vc/log-edit.el (log-edit-do-auto-fill): New function.
(log-edit-mode): Set normal-auto-fill-function to it.

(cherry picked from commit 90a0771379360882979aa13f7cc97fc1cfd4b41a)

3 weeks agovc-checkin: Check whether the fileset or patches have changed
Sean Whitton [Sun, 6 Jul 2025 12:43:24 +0000 (13:43 +0100)]
vc-checkin: Check whether the fileset or patches have changed

* lisp/vc/vc-dispatcher.el (vc-finish-logentry): Delay popping
to vc-parent-buffer until after calling the log operation.
That way if the log operation exits early, the current buffer
remains *vc-log*.
(vc-dir-marked-files, dired-get-marked-files): Declare.
(vc-dispatcher--explicit-marks-p): New function.
* lisp/vc/vc.el (vc-checkin): Check the user isn't likely to be
surprised by what is included in the checkin.  Specifically,
check whether the fileset or patches implied by vc-parent-buffer
are unchanged.
* doc/emacs/maintaining.texi (VC With A Merging VCS): Explain
how the fileset or patch string is fixed once *vc-log* pops up.

(cherry picked from commit 7a0bfa3ee7fa447a0fe994ac8f64bcb5752cacb2)

3 weeks ago; Move text about C-x v v from Diff mode buffers into main list
Sean Whitton [Sun, 6 Jul 2025 12:38:55 +0000 (13:38 +0100)]
; Move text about C-x v v from Diff mode buffers into main list

* doc/emacs/maintaining.texi (VC With A Merging VCS): Move text
about C-x v v from a Diff mode buffer into the bulleted list.

(cherry picked from commit 67ddf2157659e9cd6fb9b109049da66c7abe4ffb)

3 weeks ago; * lisp/vc/log-edit.el (log-edit): Clarify vc-log-fileset.
Sean Whitton [Sun, 6 Jul 2025 12:36:05 +0000 (13:36 +0100)]
; * lisp/vc/log-edit.el (log-edit): Clarify vc-log-fileset.

(cherry picked from commit 08c5f68e0b92a994e41f572a1face6be5b95f1d4)

3 weeks agoAdapt filenotify-tests.el for Emba
Michael Albinus [Sun, 6 Jul 2025 12:41:02 +0000 (14:41 +0200)]
Adapt filenotify-tests.el for Emba

* test/infra/gitlab-ci.yml (.filenotify-gio-template): Enable also
for scheduled jobs.

* test/lisp/filenotify-tests.el (file-notify--test-cleanup):
Fix docstring.
(file-notify--deftest-remote): Use `file-notify--test-cleanup'.
(file-notify-test03-events, file-notify-test05-file-validity)
(file-notify-test06-dir-validity)
(file-notify-test07-many-events)
(file-notify-test09-watched-file-in-watched-dir): Adapt tests.
(file-notify-test03-events-remote)
(file-notify-test04-autorevert-remote)
(file-notify-test07-many-events-remote)
(file-notify-test09-watched-file-in-watched-dir-remote): Do not
tag as :unstable.

(cherry picked from commit 771370dea50834d585664bfd3ca7320d24a94611)

3 weeks ago; Skip commit 0550d036b71a129e79c17856142735aac0081205
Eshel Yaron [Thu, 24 Jul 2025 07:45:21 +0000 (09:45 +0200)]
; Skip commit 0550d036b71a129e79c17856142735aac0081205

3 weeks agolisp/help-mode.el (help-mode-context-menu): Don't quote lambda
Stefan Monnier [Sat, 5 Jul 2025 23:32:50 +0000 (19:32 -0400)]
lisp/help-mode.el (help-mode-context-menu): Don't quote lambda

(cherry picked from commit 8786dfedc98ea56be2407d7183d48cbbc1b673df)

3 weeks agoAdd file notification handler for Tramp's "smb" method.
Michael Albinus [Sat, 5 Jul 2025 17:21:48 +0000 (19:21 +0200)]
Add file notification handler for Tramp's "smb" method.

* etc/NEWS: Mention new file notification handler for Tramp "smb".

* lisp/filenotify.el (file-notify--expand-file-name): Fix the
remote case.
(file-notify-callback): Extend for "smb-notify".
(file-notify--call-handler): Fix debug message.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
* lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
Use connection property "file-monitor".

* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
Use `tramp-smb-handle-file-notify-add-watch'.
(tramp-smb-handle-delete-directory): Do not error if there is a
pending deletion of a directory under file-watch.
(tramp-smb-handle-file-notify-add-watch)
(tramp-smb-notify-process-filter): New defuns.
(tramp-smb-send-command): New optional argument NOOUTPUT.
(tramp-smb-wait-for-output): Improve debug message.

* lisp/net/tramp.el (tramp-directory-watched): New defun.
(tramp-accept-process-output, tramp-wait-for-regexp):
Improve debug message.

* test/lisp/filenotify-tests.el (top): Filter also for
"smb-notify".  Set some other Tramp related variables.
(file-notify--test-wait-for-events)
(file-notify--test-with-actions-check)
(file-notify--test-with-actions): Add debug message.
(file-notify--test-cleanup, file-notify--deftest-remote):
Keep Tramp debugs buffer.
(file-notify--test-monitor): Check for "smb-notify".
(file-notify--deftest-remote): Call `file-notify-rm-all-watches'.
(file-notify--test-make-temp-name): Use a better name for parent
directory.
(file-notify--test-event-handler): Use `string-match-p'.
(file-notify--test-with-actions): Check also for the `stopped'
event as limit.
(file-notify-test03-events, file-notify-test04-autorevert)
(file-notify-test05-file-validity)
(file-notify-test07-many-events, file-notify-test08-backup)
(file-notify-test09-watched-file-in-watched-dir): Adapt tests for
"smb-notify".
(file-notify-test12-unmount): Skip for "smb-notify".

(cherry picked from commit aa8afabd493ce67924685bc6cfafec551380a094)

3 weeks ago; Skip commit 0a1db9b57322884df0bf677b96d8568e194521d3
Eshel Yaron [Thu, 24 Jul 2025 07:41:44 +0000 (09:41 +0200)]
; Skip commit 0a1db9b57322884df0bf677b96d8568e194521d3

3 weeks agoSync src/treesit.c with master
Eshel Yaron [Thu, 24 Jul 2025 07:40:15 +0000 (09:40 +0200)]
Sync src/treesit.c with master

3 weeks ago(eieio--validate-slot-value): Don't break on struct objects
Stefan Monnier [Sat, 5 Jul 2025 15:17:51 +0000 (11:17 -0400)]
(eieio--validate-slot-value): Don't break on struct objects

Nowadays `eieio-oset` applies to more than just EIEIO objects.
The old code tended to work OK but only because `eieio--class-slots`
is usually compiled/inlined without checks.

* lisp/emacs-lisp/eieio-core.el (eieio--validate-slot-value):
Don't assume CLASS is an EIEIO class.

(cherry picked from commit 4024a7d541ca049ca9b28bce54c225bf9691f944)

3 weeks ago; Skip commit d1677d0a926c148ef4fce65251311fc8dc796464
Eshel Yaron [Wed, 23 Jul 2025 20:21:19 +0000 (22:21 +0200)]
; Skip commit d1677d0a926c148ef4fce65251311fc8dc796464

3 weeks ago; Skip commit a4712609b7ec920ca6883e71e782e2dac552a154
Eshel Yaron [Wed, 23 Jul 2025 20:21:15 +0000 (22:21 +0200)]
; Skip commit a4712609b7ec920ca6883e71e782e2dac552a154

3 weeks ago; * lisp/progmodes/cc-engine.el: Fix trailing whitespace.
Eli Zaretskii [Sat, 5 Jul 2025 10:03:31 +0000 (06:03 -0400)]
; * lisp/progmodes/cc-engine.el: Fix trailing whitespace.

(cherry picked from commit 4d14891850bec0dc73fc9284f2e0ddcd20e43fc1)

3 weeks ago; Skip commit 49d0342a00f00336f3fbb87912ee48d01d59889a
Eshel Yaron [Wed, 23 Jul 2025 20:21:06 +0000 (22:21 +0200)]
; Skip commit 49d0342a00f00336f3fbb87912ee48d01d59889a

3 weeks ago; Skip commit 8e49ced04c1941f9f8df6613013a135e1039ce3c
Eshel Yaron [Wed, 23 Jul 2025 20:21:03 +0000 (22:21 +0200)]
; Skip commit 8e49ced04c1941f9f8df6613013a135e1039ce3c

3 weeks ago; * lisp/vc/log-edit.el (log-edit-diff-fileset): Update comment.
Sean Whitton [Sat, 5 Jul 2025 08:53:51 +0000 (09:53 +0100)]
; * lisp/vc/log-edit.el (log-edit-diff-fileset): Update comment.

(cherry picked from commit ae55c0fd2d5da16377c63750c4cc5483e57af855)

3 weeks agoDon't call vc-buffer-sync-fileset when committing a patch
Sean Whitton [Sat, 5 Jul 2025 08:49:13 +0000 (09:49 +0100)]
Don't call vc-buffer-sync-fileset when committing a patch

* lisp/vc/vc-dispatcher.el (vc-finish-logentry): Move call to
vc-buffer-sync-fileset from here ...
* lisp/vc/vc.el (vc-checkin): ... to here, and conditionalize so
as not to call when committing a patch.  Also fix comment.

(cherry picked from commit 45d148680367b73fc19d511b4abe5a4bb961ebc2)

3 weeks ago; Skip commit 6b470d98482f0f5b2beaa7c5e92572cb2ad62fb5
Eshel Yaron [Wed, 23 Jul 2025 20:20:27 +0000 (22:20 +0200)]
; Skip commit 6b470d98482f0f5b2beaa7c5e92572cb2ad62fb5

3 weeks ago; Skip commit 7e56ffd51bc5a00919f6a6af99fe9d329331a126
Eshel Yaron [Wed, 23 Jul 2025 20:20:23 +0000 (22:20 +0200)]
; Skip commit 7e56ffd51bc5a00919f6a6af99fe9d329331a126

3 weeks ago; VC: Improve REMOTE-LOCATION docstrings, qualify remark in comment.
Sean Whitton [Sat, 5 Jul 2025 08:32:29 +0000 (09:32 +0100)]
; VC: Improve REMOTE-LOCATION docstrings, qualify remark in comment.

(cherry picked from commit 3480abd67d1ca3b96fb314e2aca6510c18767eff)

3 weeks agoFix 'ediff-before-setup-hook'
Eli Zaretskii [Sat, 5 Jul 2025 08:07:29 +0000 (11:07 +0300)]
Fix 'ediff-before-setup-hook'

* lisp/vc/ediff-util.el
(ediff-clone-buffer-for-region-comparison): Wrap body in
'save-window-excursion', to make sure original window
configuration is restored after quitting 'ediff-regions-linewise'.
Suggested by Aaron Zeng <azeng@janestreet.com>.  (Bug#78897)

(cherry picked from commit 34dad30e49e4d7768d74f2d32544845a893b0796)

3 weeks ago; Skip commit 97ceb544b3668e2c4a9154db59359c974d47909d
Eshel Yaron [Wed, 23 Jul 2025 20:20:08 +0000 (22:20 +0200)]
; Skip commit 97ceb544b3668e2c4a9154db59359c974d47909d

3 weeks ago; Skip commit c61d2587bbfc1692971b3144716ab5f01b09231f
Eshel Yaron [Wed, 23 Jul 2025 20:20:01 +0000 (22:20 +0200)]
; Skip commit c61d2587bbfc1692971b3144716ab5f01b09231f

3 weeks ago; * lisp/replace.el (query-replace-help): Fix help text (bug#78916).
Eli Zaretskii [Sat, 5 Jul 2025 06:47:23 +0000 (09:47 +0300)]
; * lisp/replace.el (query-replace-help): Fix help text (bug#78916).

(cherry picked from commit 3f7787c9794c44b277108afae1c1d4b81ff716de)

3 weeks ago; * lisp/emacs-lisp/warnings.el (warning-display-at-bottom): Doc fix.
Eli Zaretskii [Sat, 5 Jul 2025 06:17:40 +0000 (09:17 +0300)]
; * lisp/emacs-lisp/warnings.el (warning-display-at-bottom): Doc fix.

(cherry picked from commit b10596a63034ebda8be134ba05fd4fcea8b2f246)

3 weeks agoHandle ts_node_type return NULL (bug#78938)
Yuan Fu [Fri, 4 Jul 2025 20:13:36 +0000 (13:13 -0700)]
Handle ts_node_type return NULL (bug#78938)

* src/treesit.c (treesit_traverse_match_predicate): Handle the
case when ts_node_type returns NULL.
(Ftreesit_node_type): Add some comment.

(cherry picked from commit 060f964906b64fa8a63a120af9e2380d11d30604)

3 weeks ago; * doc/emacs/maintaining.texi (VC Change Log): Fix wording and markup.
Eli Zaretskii [Fri, 4 Jul 2025 13:32:00 +0000 (16:32 +0300)]
; * doc/emacs/maintaining.texi (VC Change Log): Fix wording and markup.

(cherry picked from commit 763c3cd081a833940961373a73705640b1808636)

3 weeks ago; Skip commit 22daed7ce0e3fbe55608a92c81deee24933b266d
Eshel Yaron [Wed, 23 Jul 2025 20:18:55 +0000 (22:18 +0200)]
; Skip commit 22daed7ce0e3fbe55608a92c81deee24933b266d

3 weeks agovc-find-revision-no-save: Finish entering read-only-mode
Sean Whitton [Fri, 4 Jul 2025 12:18:16 +0000 (13:18 +0100)]
vc-find-revision-no-save: Finish entering read-only-mode

* lisp/vc/vc.el (vc-find-revision-no-save): After setting
buffer-read-only to non-nil, also run read-only-mode-hook,
and if view-read-only is non-nil, call view-mode-enter.

(cherry picked from commit 215fc3a354c36b2294b3dd45e72555bb4b4cb364)

3 weeks agoImprove documentation of 'warning-display-at-bottom'
Eli Zaretskii [Fri, 4 Jul 2025 12:02:29 +0000 (15:02 +0300)]
Improve documentation of 'warning-display-at-bottom'

* lisp/emacs-lisp/warnings.el (warning-display-at-bottom):
* doc/lispref/display.texi (Warning Options):
* doc/emacs/windows.texi (Temporary Displays):
* etc/NEWS: Improve documentation of 'warning-display-at-bottom'.
See https://lists.gnu.org/archive/html/emacs-devel/2025-07/msg00024.html
for more details.

(cherry picked from commit 5bdacbe460a3dbc1777b8d06767c9c323c4fee23)

3 weeks ago; Skip commit d16453a20ee437e07b504153a1706c7ed3ee1176
Eshel Yaron [Wed, 23 Jul 2025 20:18:18 +0000 (22:18 +0200)]
; Skip commit d16453a20ee437e07b504153a1706c7ed3ee1176

3 weeks agoVC: New incoming & outgoing diff commands (bug#62940)
Sean Whitton [Fri, 4 Jul 2025 11:39:11 +0000 (12:39 +0100)]
VC: New incoming & outgoing diff commands (bug#62940)

* lisp/vc/vc-hooks.el (vc-incoming-prefix-map)
(vc-outgoing-prefix-map): New keymaps.
(vc-use-incoming-outgoing-prefixes): New user option.
* lisp/vc/vc.el (vc-root-diff-incoming, vc-root-diff-outgoing):
New commands (bug#62940).
* doc/emacs/maintaining.texi (VC Change Log):
* etc/NEWS: Document the new commands and option.

(cherry picked from commit af78b4d333e81a544ebf10d57067cca8c2fc732f)

3 weeks ago; * lisp/vc/vc-hooks.el (vc-call-backend): Improve docstring.
Sean Whitton [Fri, 4 Jul 2025 10:41:16 +0000 (11:41 +0100)]
; * lisp/vc/vc-hooks.el (vc-call-backend): Improve docstring.

In fact we don't use vc-call all that much.

(cherry picked from commit 76ae048b3f4a62bf933bedc835bd141089849bfd)

3 weeks agoNew history variable for VC remote locations
Sean Whitton [Fri, 4 Jul 2025 10:38:38 +0000 (11:38 +0100)]
New history variable for VC remote locations

* lisp/vc/vc.el (vc-remote-location-history): New variable.
(vc--maybe-read-remote-location): Use it.

(cherry picked from commit 625a9f9bce77e47bd71d7f74e8011c716e0645cc)

3 weeks ago; * lisp/vc/vc-dispatcher.el: Delete obsolete TODO.
Sean Whitton [Fri, 4 Jul 2025 09:43:58 +0000 (10:43 +0100)]
; * lisp/vc/vc-dispatcher.el: Delete obsolete TODO.

(cherry picked from commit 07347f9ce64de07452dbb73ba30c05b8bfdef7b7)

3 weeks ago; * lisp/vc/vc.el (vc-revert-files): Fix superfluous backquotation.
Sean Whitton [Fri, 4 Jul 2025 09:43:41 +0000 (10:43 +0100)]
; * lisp/vc/vc.el (vc-revert-files): Fix superfluous backquotation.

(cherry picked from commit f7184c6e6fc3be9a6f01110e5c0f9ac73bb1aa98)

3 weeks agoHandle the case when ts_node_type returns NULL (bug#78938)
Yuan Fu [Fri, 4 Jul 2025 06:36:44 +0000 (23:36 -0700)]
Handle the case when ts_node_type returns NULL (bug#78938)

* src/treesit.c (Ftreesit_node_type): Handle NULL.

(cherry picked from commit 30dae2ad23963bc902101544cbbe2c5698beddd7)

3 weeks ago; * lisp/progmodes/php-ts-mode.el: Docstring fixes
Phil Sainty [Fri, 4 Jul 2025 06:30:49 +0000 (18:30 +1200)]
; * lisp/progmodes/php-ts-mode.el: Docstring fixes

(php-ts-mode-alternative-php-program-name, php-ts-mode--executable):
Improve documentation.

(cherry picked from commit 1ea68b930c045596706534abb3b7fcbcbc7a5b6d)

3 weeks agoRetain the <base> tag when making a page in EWW document readable
Steven Allen [Wed, 2 Jul 2025 21:32:28 +0000 (14:32 -0700)]
Retain the <base> tag when making a page in EWW document readable

The base tag is necessary to correctly resolve relative links.

* lisp/net/eww.el (eww-readable-dom): Retain the base tag in addition to
the title/link tags.  (Bug#78948)
* test/lisp/net/eww-tests.el (eww-test--wordy-page): Add a base tag.
(eww-test/readable/default-readable): Test that the base tag is retained.

(cherry picked from commit f10bf71151b7f5d0e1d7d183c11261b257d4d022)

3 weeks agolisp/dired.el (dired-mode-immediate-menu): Don't quote `lambda`
Stefan Monnier [Thu, 3 Jul 2025 21:35:10 +0000 (17:35 -0400)]
lisp/dired.el (dired-mode-immediate-menu): Don't quote `lambda`

(cherry picked from commit 2cb7387e6fa0d5a85d18f7b35e3be508c690c12f)

3 weeks agolisp/dired-x.el (dired-omit-lines): Don't quote `lambda`
Stefan Monnier [Thu, 3 Jul 2025 21:09:56 +0000 (17:09 -0400)]
lisp/dired-x.el (dired-omit-lines): Don't quote `lambda`

(cherry picked from commit 5f44515539eac4cd1ecb0057120475fe217bbc69)

3 weeks agoFactor out some common code from VC incoming/outgoing functions
Sean Whitton [Thu, 3 Jul 2025 19:21:29 +0000 (20:21 +0100)]
Factor out some common code from VC incoming/outgoing functions

* lisp/vc/vc.el (vc--maybe-read-remote-location)
(vc--incoming-revision): New functions, factored out.
(vc-log-incoming, vc-default-log-incoming, vc-log-outgoing)
(vc-default-log-outgoing): Use them.

(cherry picked from commit 8c6d549f6ffd623e30fef9aeb73ccb1194bcfb58)

3 weeks ago; * lisp/vc/vc-hg.el (vc-hg-command): Improve docstring.
Sean Whitton [Thu, 3 Jul 2025 19:10:42 +0000 (20:10 +0100)]
; * lisp/vc/vc-hg.el (vc-hg-command): Improve docstring.

(cherry picked from commit f1fe815b43c87b147e3e6cc5cd600cd66cc65b7f)

3 weeks agoVC: Make incoming-revision backend function responsible for fetching
Sean Whitton [Thu, 3 Jul 2025 19:09:14 +0000 (20:09 +0100)]
VC: Make incoming-revision backend function responsible for fetching

* lisp/vc/vc-hg.el (vc-hg-incoming-revision): Pull the incoming
revision if we don't have it.
(vc-hg-mergebase): Don't invoke 'hg pull'.
* lisp/vc/vc.el: Document that the incoming-revision backend
function, for distributed VCS, should fetch the incoming
revision into local storage.

(cherry picked from commit 37a9a9495e795f225b1736c56e37c3965de6c58c)

3 weeks agoDon't ignore mouse release event in display-buffer-override-next-command
Juri Linkov [Thu, 3 Jul 2025 17:34:16 +0000 (20:34 +0300)]
Don't ignore mouse release event in display-buffer-override-next-command

* lisp/window.el (display-buffer-override-next-command):
Don't exit on mouse down event, thus waiting for the incoming
mouse up event (bug#78945).

(cherry picked from commit 3b6e8c5e3c464efbf01d51f39d044cf9d24f5eaf)

3 weeks agoAvoid segfaults due to C-g when a thread does GC
Eli Zaretskii [Thu, 3 Jul 2025 13:19:09 +0000 (16:19 +0300)]
Avoid segfaults due to C-g when a thread does GC

* src/keyboard.c (handle_interrupt): Don't forcibly switch threads
if a non-main thread was in GC when the signal handler was called.

(cherry picked from commit 205d69e7e64cf23df0bc7a52b1149f6130c117b5)

3 weeks ago; Skip commit f48c283e885bbc5feee0804bc12f1cb633249316
Eshel Yaron [Wed, 23 Jul 2025 20:13:24 +0000 (22:13 +0200)]
; Skip commit f48c283e885bbc5feee0804bc12f1cb633249316

3 weeks agouniquify-get-unique-names: Return a list with propertized strings
Dmitry Gutov [Wed, 2 Jul 2025 02:26:51 +0000 (05:26 +0300)]
uniquify-get-unique-names: Return a list with propertized strings

* lisp/uniquify.el (uniquify-get-unique-names): Return a list of
strings, and add text property 'uniquify-orig-buffer' to each,
pointing at the corresponding buffers (bug#77312).

* lisp/progmodes/project.el (project--read-project-buffer):
Look up that property's values here and build the alist.

(cherry picked from commit 76877a6b08492c555744cfebda3224df91dec82a)

3 weeks agoEnsure <style> and <template> HTML tags are never "readable" in EWW
Jim Porter [Wed, 2 Jul 2025 01:33:05 +0000 (18:33 -0700)]
Ensure <style> and <template> HTML tags are never "readable" in EWW

This helps fix EWW readable mode on some web pages that use these tags,
like the FSF blog.

* lisp/net/eww.el (eww--walk-readability): Check for <style> and
<template> tags.

(cherry picked from commit fa77689b1e352febb2cf9bdd38c595937ae8089e)

3 weeks agocus-edit.el: Don't quote lambdas and improve macro declaration
Stefan Monnier [Tue, 1 Jul 2025 21:37:02 +0000 (17:37 -0400)]
cus-edit.el: Don't quote lambdas and improve macro declaration

* lisp/cus-edit.el (custom-reset-extended-menu): Don't quote lambdas.
(custom-dirlocals-with-buffer): Add indent and debug info.

(cherry picked from commit f732a44af801a11467b160d5efc0c7aa7d11266e)

3 weeks ago(load-path-filter): Loading can happen in the middle of completion
Stefan Monnier [Tue, 1 Jul 2025 20:55:14 +0000 (16:55 -0400)]
(load-path-filter): Loading can happen in the middle of completion

* lisp/startup.el (load-path-filter-cache-directory-files):
Don't get confused by the context's `completion-regexp-list`.

(cherry picked from commit b3b83b3603e9922c48eb782102933c6ac7fd16e9)

3 weeks ago; Skip commit 7f35bf97067ef42492d01cc61aab3d1681228357
Eshel Yaron [Wed, 23 Jul 2025 20:12:18 +0000 (22:12 +0200)]
; Skip commit 7f35bf97067ef42492d01cc61aab3d1681228357

3 weeks agoUpdate to Transient v0.9.3-8-gecd64f17
Jonas Bernoulli [Tue, 1 Jul 2025 16:23:32 +0000 (18:23 +0200)]
Update to Transient v0.9.3-8-gecd64f17

(cherry picked from commit d8cdbc9f615cc5b5daa075fb5c9832fe61ffce26)

3 weeks ago; * lisp/transient.el: Fix section outline levels.
Jonas Bernoulli [Tue, 1 Jul 2025 16:11:20 +0000 (18:11 +0200)]
; * lisp/transient.el: Fix section outline levels.

In [1: 77a4c63fda5] "all" code sections were needlessly nested
below the ";;; Code:" section, which I do not like but can live
with.  However, a few sections were missed; nest them here too.
Also put the "frontmatter" code, which in my libraries usually
is the only code located in the ";;; Code:" section, into a new
";;;; Frontmatter" sub-section.  That way it is possible again
to cycle to the "show all headings but no code" state.

1: 2025-06-04 77a4c63fda5ca5d4c6d82092eaa06f1eb9b51302
   (outline--hidden-headings-paths): Fix slow saves (bug#78665)
(cherry picked from commit d4615d026bdfc0d40982070149fe9c55f0a661ee)

3 weeks ago; * lisp/transient.el: Remove extra semicolon added to eof comment.
Jonas Bernoulli [Tue, 1 Jul 2025 15:55:24 +0000 (17:55 +0200)]
; * lisp/transient.el: Remove extra semicolon added to eof comment.

(cherry picked from commit 5125395db4284eb13b579d56fd0320631225164a)

3 weeks agoVC-Hg: Use generic log-incoming & log-outgoing
Sean Whitton [Tue, 1 Jul 2025 14:44:12 +0000 (15:44 +0100)]
VC-Hg: Use generic log-incoming & log-outgoing

* lisp/vc/vc-hg.el (vc-hg-print-log): Implement string LIMIT for
this backend.  Use a DAG range when 'vc-log-view-type' is
'log-outgoing'.  Document differences between -rN:M and -rN::M.
(vc-hg-log-view-mode): Treat 'log-incoming' and 'log-outgoing'
values for 'vc-log-view-type' as short logs too.
(vc-hg-log-incoming, vc-hg-log-outgoing): Delete.

(cherry picked from commit 3dfc98858712b39610716a08e2bb8211fea134de)

3 weeks agovc-hg-mergebase: Try a pull if first attempt fails
Sean Whitton [Tue, 1 Jul 2025 14:39:39 +0000 (15:39 +0100)]
vc-hg-mergebase: Try a pull if first attempt fails

* lisp/vc/vc-hg.el (vc-hg-mergebase): If the first attempt
fails, execute a pull, then try again.
(vc-hg-incoming-revision): Use 'hg identify' not 'hg incoming'.

(cherry picked from commit 106048b06258e96764bcc3284893b10199b11b0b)

3 weeks agoRevert "admin/gitmerge.el (gitmerge-resolve): Use `replace-region-contents`"
Stefan Monnier [Tue, 1 Jul 2025 13:24:19 +0000 (09:24 -0400)]
Revert "admin/gitmerge.el (gitmerge-resolve): Use `replace-region-contents`"

This reverts commit 17d976e22e9b0ba10dcbe1655a93bc4d165d7097
because the change is not worth the risk.

(cherry picked from commit 549232e2e45c77852d2ecd278fe233ea93ce172e)

3 weeks ago; * lisp/emacs-lisp/bytecomp.el (compilation-safety): Doc fix (bug#78394).
Eli Zaretskii [Tue, 1 Jul 2025 11:17:42 +0000 (14:17 +0300)]
; * lisp/emacs-lisp/bytecomp.el (compilation-safety): Doc fix (bug#78394).

(cherry picked from commit 985ad1da76d2ea1ef70765fe8b4fb62fc975ae0a)

3 weeks agoEUDC: Fix checkdoc errors
Thomas Fitzsimmons [Tue, 1 Jul 2025 02:39:37 +0000 (22:39 -0400)]
EUDC: Fix checkdoc errors

* lisp/net/eudc.el (eudc--plist-member)
(eudc-format-inline-expansion-result): Fix checkdoc errors.

(cherry picked from commit ab568bce0c9b9f5cc478ebdcdeea6d93e0c711ae)

3 weeks ago; Skip commit 9a7917f8868beb340e8532b6b48dd9825a5c7267
Eshel Yaron [Wed, 23 Jul 2025 20:11:25 +0000 (22:11 +0200)]
; Skip commit 9a7917f8868beb340e8532b6b48dd9825a5c7267

3 weeks agoUpdate `fill-region-as-paragraph-semlf' to follow fill.el protocols
Roi Martin [Tue, 17 Jun 2025 17:21:18 +0000 (19:21 +0200)]
Update `fill-region-as-paragraph-semlf' to follow fill.el protocols

Update the `fill-region-as-paragraph-semlf' function to follow the
`fill-region-as-paragraph-function' protocol.  This allows us to
reimplement the `fill-paragraph-semlf' function using `fill-paragraph'
and `fill-region-as-paragraph-function'.
* lisp/textmodes/fill.el (fill-region-as-paragraph-semlf): Make this
function compatible with `fill-region-as-paragraph-function'.  Avoid
narrowing.
(fill-paragraph-semlf): Reimplement using `fill-paragraph' and
`fill-region-as-paragraph-function'.
* test/lisp/textmodes/fill-tests.el (fill-test-semlf-fill-region): Add
test.
(fill-test-fill-paragraph-semlf-fill-paragraph-function): Remove test.
(fill-test-fill-paragraph-semlf, fill-test-semlf)
(fill-test-fill-paragraph-semlf-justify, fill-test-semlf-justify)
(fill-test-fill-paragraph-semlf-sentence-end-double-space)
(fill-test-semlf-sentence-end-double-space)
(fill-test-fill-paragraph-semlf-fill-column, fill-test-semlf-fill-column)
(fill-test-fill-paragraph-semlf-punctuation-marks)
(fill-test-semlf-punctuation-marks, fill-test-fill-paragraph-semlf-twice)
(fill-test-semlf-twice, fill-test-fill-paragraph-semlf-fill-prefix)
(fill-test-semlf-fill-prefix)
(fill-test-fill-paragraph-semlf-indented-block)
(fill-test-semlf-indented-block, fill-test-fill-paragraph-semlf-revert)
(fill-test-semlf-revert, fill-test-fill-paragraph-semlf-emacs-lisp-mode)
(fill-test-semlf-emacs-lisp-mode, fill-test-fill-paragraph-semlf-c-mode)
(fill-test-semlf-c-mode, fill-test-fill-paragraph-semlf-org-mode)
(fill-test-semlf-org-mode, fill-test-fill-paragraph-semlf-markdown-mode)
(fill-test-semlf-markdown-mode): User shorter function names consistent
with erts file names.
* test/lisp/textmodes/fill-resources/semlf-fill-region.erts: Add test
data.
* test/lisp/textmodes/fill-resources/semlf-fill-paragraph-function.erts:
Delete file.
* test/lisp/textmodes/fill-resources/semlf-emacs-lisp-mode.erts: Remove
newlines around indented block.
* doc/lispref/text.texi (Filling): Highlight that
`fill-region-as-paragraph-function' changes the behavior of
`fill-paragraph'.

(cherry picked from commit 0ac21120cf12f151c7505d7b18601d533ea7f931)

3 weeks ago; * doc/lispref/functions.texi (Mapping Functions): Fix wording (bug#78930).
Eli Zaretskii [Mon, 30 Jun 2025 19:06:15 +0000 (22:06 +0300)]
; * doc/lispref/functions.texi (Mapping Functions): Fix wording (bug#78930).

(cherry picked from commit de18407f513ccd7adbd521d0422dd1fb552b5935)

3 weeks agolisp/autoinsert.el (auto-insert-alist): Don't quote 'lambda'
Stefan Monnier [Mon, 30 Jun 2025 15:28:34 +0000 (11:28 -0400)]
lisp/autoinsert.el (auto-insert-alist): Don't quote 'lambda'

(cherry picked from commit 3efdb553e4845eca0e637e3eefad483c3b15e021)

3 weeks agoadmin/gitmerge.el (gitmerge-resolve): Use `replace-region-contents`
Stefan Monnier [Mon, 30 Jun 2025 04:37:15 +0000 (00:37 -0400)]
admin/gitmerge.el (gitmerge-resolve): Use `replace-region-contents`

(cherry picked from commit 17d976e22e9b0ba10dcbe1655a93bc4d165d7097)

3 weeks ago; Skip commit db6cbee742ff45bbd52a86cc1823386879beb7e6
Eshel Yaron [Wed, 23 Jul 2025 20:08:56 +0000 (22:08 +0200)]
; Skip commit db6cbee742ff45bbd52a86cc1823386879beb7e6

3 weeks agoBetter fix for ignoring 'tab-bar-lines' in daemon's initial frame
Juri Linkov [Sun, 29 Jun 2025 17:06:06 +0000 (20:06 +0300)]
Better fix for ignoring 'tab-bar-lines' in daemon's initial frame

* lisp/tab-bar.el (tab-bar--update-tab-bar-lines):
Revert '(not (daemonp))' to update 'default-frame-alist'
even in daemon mode (bug#78896).

* lisp/frame.el (frame-notice-user-settings): For daemon's
initial frame don't modify the frame parameter 'tab-bar-lines'.

(cherry picked from commit b13c583bc7303780b22e7bf4c4fb832fadfc36a7)

3 weeks agoDisplay SVG images inline in Gnus
Juri Linkov [Sun, 29 Jun 2025 16:39:29 +0000 (19:39 +0300)]
Display SVG images inline in Gnus

* lisp/gnus/mm-decode.el (mm-inline-media-tests): Add "image/svg+xml".

(cherry picked from commit 7fd846f61ea74c6438c7ce3def7555a591279514)

3 weeks ago; * lisp/vc/vc-git.el (vc-git-print-log): Improve wording.
Sean Whitton [Sun, 29 Jun 2025 15:30:13 +0000 (16:30 +0100)]
; * lisp/vc/vc-git.el (vc-git-print-log): Improve wording.

(cherry picked from commit 7bf2a61623ae463e922c82f6326e9c4468fd67c9)

3 weeks agoVC: Fix several START-REVISION versus LIMIT issues
Sean Whitton [Sun, 29 Jun 2025 13:53:37 +0000 (14:53 +0100)]
VC: Fix several START-REVISION versus LIMIT issues

* lisp/vc/vc-git.el (vc-git-print-log): When LIMIT and
START-REVISION are both supplied, use START-REVISION as the
newest commit, and LIMIT as a base (problem was introduced in
the commit adding 'vc-diff-mergebase' and 'vc-log-mergebase').
* lisp/vc/vc.el (vc-default-log-incoming)
(vc-default-log-outgoing): Fix order of START-REVISION and LIMIT
arguments passed to 'print-log' backend function.
(vc-log-mergebase): Fix order of START-REVISION and LIMIT
arguments passed to 'vc-print-log-internal'.

(cherry picked from commit d23b605f754d07a9abf298353d7d17197094477b)

3 weeks agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Sun, 29 Jun 2025 13:07:23 +0000 (06:07 -0700)]
Update from Gnulib by running admin/merge-gnulib

(cherry picked from commit 30bfb03adfa88e94c9f81eacbd125f96a32432c0)

3 weeks agoAdapt Tramp versions
Michael Albinus [Sun, 29 Jun 2025 09:03:05 +0000 (11:03 +0200)]
Adapt Tramp versions

* doc/misc/trampver.texi:
* lisp/net/trampver.el (tramp-version): Adapt Tramp versions.

(cherry picked from commit bd04818e53be49f2a087de8a92cb02549f8c2407)

3 weeks ago; * test/lisp/textmodes/fill-tests.el (markdown-mode): Declare.
Eli Zaretskii [Sun, 29 Jun 2025 04:38:55 +0000 (07:38 +0300)]
; * test/lisp/textmodes/fill-tests.el (markdown-mode): Declare.

(cherry picked from commit 036c95bbf67368b8efff70f41274130c60865f33)

3 weeks agoAdd variable `fill-region-as-paragraph-function'
Roi Martin [Tue, 17 Jun 2025 08:45:13 +0000 (10:45 +0200)]
Add variable `fill-region-as-paragraph-function'

Add the variable `fill-region-as-paragraph-function' to provide
a way to override how functions like `fill-region' fill text.
* doc/lispref/text.texi (Filling): Document
`fill-region-as-paragraph-function' variable.
* doc/emacs/text.texi (Fill Commands): Reference
`fill-region-as-paragraph-function' variable.
* lisp/textmodes/fill.el (fill-region-as-paragraph-function):
Add variable.
(fill-region-as-paragraph): Convert into
`fill-region-as-paragraph-function' wrapper.
(fill-region-as-paragraph-default): Rename old
`fill-region-as-paragraph' function.
(fill-region-as-paragraph-semlf): Update calls to
`fill-region-as-paragraph-default'.
(fill-region): Add reference to `fill-region-as-paragraph-function'
in doc string.
* test/lisp/textmodes/fill-tests.el (fill-test-fill-region): Add
test case for the `fill-region' function.
* test/lisp/textmodes/fill-resources/fill-region.erts: Add test
data.  (Bug#78816)

(cherry picked from commit 99ec286d7803fa59f770013a2135f23918510103)

3 weeks agoAdd new gv place definitions
Zach Shaftel [Sun, 25 May 2025 05:11:27 +0000 (01:11 -0400)]
Add new gv place definitions

* lisp/emacs-lisp/gv.el (char-table-extra-slot, char-table-parent)
(default-toplevel-value, marker-insertion-type, process-plist)
(process-query-on-exit-flag, process-thread, lookup-key)
(window-prev-buffers, window-next-buffers, window-new-normal, font-get)
(charset-plist, get-charset-property): Add gv-setters.
(terminal-parameter): Fix the return value.  (Bug#78291)

(cherry picked from commit bca0ce9d071fee66893015bb45c3eae7ba05c938)

3 weeks ago; * doc/lispref/threads.texi (Condition Variables): Fix wording.
Eli Zaretskii [Sat, 28 Jun 2025 19:17:06 +0000 (22:17 +0300)]
; * doc/lispref/threads.texi (Condition Variables): Fix wording.

(cherry picked from commit e51ff3ee664ecc848ed99f2f715e9a33208a8d66)

3 weeks agoProperly invalidate XRender surfaces when only EmacsFrame is resized
Po Lu [Sat, 28 Jun 2025 14:14:35 +0000 (22:14 +0800)]
Properly invalidate XRender surfaces when only EmacsFrame is resized

* src/xterm.c (handle_one_xevent): Drop XRender surfaces when
the frame widget is resized, rather than when the toplevel is.
(bug#77988)

(cherry picked from commit 987cd7012de3cbbdc6a3cfaae337bf9cf752abb3)

3 weeks agoFix the DJGPP port
Po Lu [Sat, 28 Jun 2025 13:51:31 +0000 (21:51 +0800)]
Fix the DJGPP port

* msdos/sedlibmk.inp (NEXT_AS_FIRST_DIRECTIVE_STDCKDINT_H)
(NEXT_STDCKDINT_H): Define to presumably unused values.

(cherry picked from commit acefe3bb122d20112313d22b74f0f6ab6e404cf1)

3 weeks agoAvoid extra output in Vprin1_to_string_buffer (bug#78842)
Pip Cet [Sat, 28 Jun 2025 09:33:01 +0000 (09:33 +0000)]
Avoid extra output in Vprin1_to_string_buffer (bug#78842)

print_error_message can throw after producing some output, so use
unwind-protect to ensure prin1-to-string-buffer is cleared.

* src/print.c (erase_prin1_to_string_buffer): New.
(Ferror_message_string): Use it to catch errors thrown in
'print_error_message'.
* test/src/print-tests.el (error-message-string-circular): Expand
test.

(cherry picked from commit 6b19eb53c5048cfec1f3601afb44f94ebbb9d138)

3 weeks agobug#78901: [PATCH] js-ts-mode: Fix auto-mode-alist regexp
Liam Hupfer [Thu, 26 Jun 2025 03:47:34 +0000 (22:47 -0500)]
bug#78901: [PATCH] js-ts-mode: Fix auto-mode-alist regexp

Align the js-ts-mode entry with the javascript-mode entries in the
default auto-mode-alist value in lisp/files.el. Otherwise, js-ts-mode is
not associated with .js files.

* lisp/progmodes/js.el (js-ts-mode): Fix auto-mode-alist regexp.

Fixes: 2023-01-20 6b2f85caa6ca "Make tree-sitter based modes optional"
(cherry picked from commit 6299eb0fe54c87bcbb0f6ab4de3e4f9e250d4586)

3 weeks agoAvoid flicker when marking diary entries (bug#78861)
Manuel Giraud [Mon, 23 Jun 2025 07:45:49 +0000 (09:45 +0200)]
Avoid flicker when marking diary entries (bug#78861)

* lisp/calendar/calendar.el (calendar-generate-window): Remove
historical and not really understood `sit-for' calls.

(cherry picked from commit c64b2bf113eaa2044c24860d0610c3b8ebd7e742)

3 weeks ago; Skip commit 202a7039a2677fc473ce2e1c5e53b3c0bfc99739
Eshel Yaron [Wed, 23 Jul 2025 20:07:44 +0000 (22:07 +0200)]
; Skip commit 202a7039a2677fc473ce2e1c5e53b3c0bfc99739

3 weeks ago* lisp/pcmpl-rpm.el: Generate completions for dnf5
Rahguzar [Sun, 22 Jun 2025 08:13:06 +0000 (13:13 +0500)]
* lisp/pcmpl-rpm.el: Generate completions for dnf5

(pcmpl-rpm-dnf-cache-file): Remove now unused variable.
(pcmpl-rpm--dnf-packages): Use dnf repoquery.
(pcomplete/dnf): Adjust regexps to allow for help format of
dnf5.  New regexps works for both dnf4 and dnf5.  Add
aliases for better subcommand completion.  Better support
for dnf repoquery command.  (Bug#78661)

(cherry picked from commit 2e18b0bbe98d874739ad7dac461ae5e53349405f)

3 weeks agobug#78845: [PATCH 2/2] doc: Document desktop notifications for Gnus
Maxim Cournoyer [Fri, 20 Jun 2025 04:27:17 +0000 (13:27 +0900)]
bug#78845: [PATCH 2/2] doc: Document desktop notifications for Gnus

* doc/misc/gnus.texi (Notifications): Add section.

(cherry picked from commit 08b0dd890fcccadd3372a80141ab02074bc4430a)

3 weeks agovc-dir-update: Update 'backend' VC properties
Sean Whitton [Sat, 28 Jun 2025 09:30:29 +0000 (10:30 +0100)]
vc-dir-update: Update 'backend' VC properties

* lisp/vc/vc-dir.el (vc-dir-update): Update 'backend' VC file
properties from ENTRIES.  This resolves some issues relating to
cache invalidation.
* lisp/vc/vc-hooks.el (vc-backend): Improve docstring.

(cherry picked from commit 6cd9574e20dccb15924dd42f0f481ba5b7367a42)

3 weeks agobug#78845: [PATCH 1/2] doc: Update Texinfo menus.
Maxim Cournoyer [Fri, 20 Jun 2025 04:27:16 +0000 (13:27 +0900)]
bug#78845: [PATCH 1/2] doc: Update Texinfo menus.

Generated from Emacs via M-x texinfo-all-menus-update, and dropping
changes made due to limitations of the tool.

(cherry picked from commit d04b5d244500b66dcdbbe807c0c75a74b4d9182e)

3 weeks agoRevert "function-put: signal error with non-symbol"
Eli Zaretskii [Sat, 28 Jun 2025 09:01:13 +0000 (12:01 +0300)]
Revert "function-put: signal error with non-symbol"

This reverts commit a4ec9ca12969018cdf15b8cc713b3ba054326f99.
It caused unnecessary errors, see bug#78593.

(cherry picked from commit b4d3ac1e041347081f0843e0b47ad86516cd9cc9)

3 weeks ago; Skip commit 70d0528fc84c88106ea70c0b633834116a7902c5
Eshel Yaron [Wed, 23 Jul 2025 20:07:11 +0000 (22:07 +0200)]
; Skip commit 70d0528fc84c88106ea70c0b633834116a7902c5

3 weeks ago; Skip commit eda47cd2a8753ec74a816e62aba3fa63543e5526
Eshel Yaron [Wed, 23 Jul 2025 20:07:07 +0000 (22:07 +0200)]
; Skip commit eda47cd2a8753ec74a816e62aba3fa63543e5526

3 weeks ago; * lisp/cus-start.el (standard): Improve commentary (bug#78637).
Eli Zaretskii [Sat, 28 Jun 2025 06:56:08 +0000 (09:56 +0300)]
; * lisp/cus-start.el (standard): Improve commentary (bug#78637).

(cherry picked from commit 1e9167d22a75102389a49978594e96d7669948f6)

3 weeks agoPort varargs macros better to C99
Paul Eggert [Sat, 28 Jun 2025 06:53:32 +0000 (23:53 -0700)]
Port varargs macros better to C99

C99 prohibits passing zero args to macro’s ‘...’.
* lib-src/seccomp-filter.c (RULE0): New macro, which is like RULE
except with zero args.  All zero-arg uses of RULE changed to RULE0.
* src/comp.c (compile_function, Fcomp__init_ctxt, syms_of_comp):
Change ‘CALLN (Fmake_hash_table)’ to ‘Fmake_hash_table (0, NULL)’,
since CALLN requires at least two args in C99.

(cherry picked from commit dd1efa5309d82139c6637e21ebd9eeb55e1814c1)

3 weeks agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Sat, 28 Jun 2025 05:32:33 +0000 (22:32 -0700)]
Update from Gnulib by running admin/merge-gnulib

(cherry picked from commit dbdf761187d7cccfad20a2899bab3dc77f379c3a)

3 weeks ago(peg-parse): Fix bug#78884
Stefan Monnier [Tue, 24 Jun 2025 22:24:01 +0000 (18:24 -0400)]
(peg-parse): Fix bug#78884

* lisp/progmodes/peg.el (peg-parse): Be more careful when
testing if a symbol is the name of an existing rule.  Improve docstring.

test/lisp/progmodes/peg-tests.el (peg-tests--peg-parse): New test.

(cherry picked from commit 68100ca656ad76e937622a1a74b6ca185bc82e07)

3 weeks ago(Finsert_file_contents): Refine commit d07af40d8826
Stefan Monnier [Mon, 23 Jun 2025 02:25:03 +0000 (22:25 -0400)]
(Finsert_file_contents): Refine commit d07af40d8826

* src/fileio.c (Finsert_file_contents): Inhibit ask-supersession
only if we're VISITing in a non-narrowed buffer (bug#78866).

* test/src/fileio-tests.el (ert--tests-dir): New var.
(fileio-tests--insert-file-contents-supersession): New test.

(cherry picked from commit 6c0bbf0f921682a185ebd57efef1e9d4f8ced788)

3 weeks agocus-start.el: Reliably distinguish preload from nonpreload
Stefan Monnier [Sat, 28 Jun 2025 02:55:04 +0000 (22:55 -0400)]
cus-start.el: Reliably distinguish preload from nonpreload

`dump-mode` can be nil even if we're about to dump (this is
done in the Android build), so don't rely on it to distinguish
if `cus-start` is loaded from `loadup.el` vs loaded during
a "normal run".

* lisp/loadup.el (cus-start): Bind `cus-start--preload`.
* lisp/cus-start.el: <top-level>: Test it rather than `dump-mode`.

(cherry picked from commit cb484ead91cb20f1cad31ac878a65ea1e9354871)

3 weeks agovc-annotate: Fix ever-lengthening buffer names
Sean Whitton [Fri, 27 Jun 2025 20:19:55 +0000 (21:19 +0100)]
vc-annotate: Fix ever-lengthening buffer names

* lisp/vc/vc-annotate.el (vc-annotate): Rewrite code to generate
the buffer name so that when switching from annotating one
revision to annotating another, we don't embed the old name of
the vc-annotate buffer directly into its new one (bug#78890).

(cherry picked from commit a132ca9a5463c599f43901ab5064d639b0eff93c)

3 weeks ago* lisp/tab-bar.el: Ignore daemon's initial frame (bug#78896).
Juri Linkov [Fri, 27 Jun 2025 17:41:05 +0000 (20:41 +0300)]
* lisp/tab-bar.el: Ignore daemon's initial frame (bug#78896).

(tab-bar--update-tab-bar-lines): Don't set the frame parameter
'tab-bar-lines' in daemon's initial frame because it messes up the
frames when 'format-mode-line' called from 'tab-bar-format-global'
on daemon's initial frame forces focus switch to daemon's initial
frame.  Also don't set 'default-frame-alist' in daemon mode because
'frame-notice-user-settings' copies the frame parameter 'tab-bar-lines'
from 'default-frame-alist' to daemon's initial frame.  Here updating
'default-frame-alist' is not much needed anyway since the frame
parameter 'tab-bar-lines' for new frames is set in 'make_terminal_frame'
and 'x-create-frame'.  'default-frame-alist' might be need only
to handle non-default 'tab-bar-show', but this can be handled by
'toggle-frame-tab-bar' called from 'server-after-make-frame-hook'.
(toggle-frame-tab-bar): Document a useful case of calling it
from 'server-after-make-frame-hook'.

(cherry picked from commit cd8319677d8869d60fefca6d88cf994726058e9e)