]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 weeks ago; Skip commit 684adc07c28ce96b8da1fa2bea31dbf0c8833d92
Eshel Yaron [Sun, 13 Apr 2025 20:50:21 +0000 (22:50 +0200)]
; Skip commit 684adc07c28ce96b8da1fa2bea31dbf0c8833d92

7 weeks agoDrop 'help-form' and associated cruft.
Eshel Yaron [Sun, 13 Apr 2025 06:49:47 +0000 (08:49 +0200)]
Drop 'help-form' and associated cruft.

7 weeks agolisp/savehist.el: Save data, not code.
Eshel Yaron [Sat, 12 Apr 2025 09:15:10 +0000 (11:15 +0200)]
lisp/savehist.el: Save data, not code.

7 weeks agovc-do-async-command: Ellipse later lines in multiline arguments
Sean Whitton [Sat, 12 Apr 2025 02:05:57 +0000 (10:05 +0800)]
vc-do-async-command: Ellipse later lines in multiline arguments

* lisp/emacs-lisp/cl-print.el (cl-print-expand-ellipsis): Bind
inhibit-read-only to t.
* lisp/vc/vc-dispatcher.el (require): Require cl-print at
compile time.
(vc-do-async-command): When printing command arguments that
contain multiple lines, use cl-prin1 with cl-print-string-length
bound in order to ellipse lines other than the first.
Switch the outer quotation marks to single quotation marks.

(cherry picked from commit 3b841700a8bef1d5b16542679458ddfb588ea777)

7 weeks ago; Skip commit cc232bd7a19dcd8b5c77320615a5e93ea0f589b6
Eshel Yaron [Sat, 12 Apr 2025 06:35:12 +0000 (08:35 +0200)]
; Skip commit cc232bd7a19dcd8b5c77320615a5e93ea0f589b6

7 weeks agoRename treesit-toggle-sexp-type to treesit-cycle-sexp-type.
Juri Linkov [Fri, 11 Apr 2025 16:34:29 +0000 (19:34 +0300)]
Rename treesit-toggle-sexp-type to treesit-cycle-sexp-type.

* lisp/treesit.el (treesit-cycle-sexp-type):
Rename from 'treesit-toggle-sexp-type'.  Fix docstring.
https://lists.gnu.org/archive/html/emacs-devel/2025-04/msg00291.html

(cherry picked from commit 695edc5b55bec645fe2df8924513826b202022b6)

7 weeks agoscope.el: Handle 'add-face-text-property'.
Eshel Yaron [Fri, 11 Apr 2025 19:36:36 +0000 (21:36 +0200)]
scope.el: Handle 'add-face-text-property'.

7 weeks agoImprove elisp 'xref-backend-references'.
Eshel Yaron [Fri, 11 Apr 2025 19:36:14 +0000 (21:36 +0200)]
Improve elisp 'xref-backend-references'.

7 weeks ago; Skip commit 53058e15c3313a262d5bc1f0873452779dd2821f
Eshel Yaron [Fri, 11 Apr 2025 11:37:49 +0000 (13:37 +0200)]
; Skip commit 53058e15c3313a262d5bc1f0873452779dd2821f

7 weeks ago; Skip commit 1be9007c0ddec625810148fbee21643db38bad37
Eshel Yaron [Fri, 11 Apr 2025 11:37:45 +0000 (13:37 +0200)]
; Skip commit 1be9007c0ddec625810148fbee21643db38bad37

7 weeks ago; Delete FIXME in vc-print-log
Sean Whitton [Fri, 11 Apr 2025 03:47:32 +0000 (11:47 +0800)]
; Delete FIXME in vc-print-log

This isn't a state-changing operation, indeed, and passing t
here is relevant to dired-vc-deduce-fileset.

(cherry picked from commit 95675b4db0f4a72adfcde00fa24db6f3379f0f2e)

7 weeks agoNew buffer-local vc-buffer-overriding-fileset and vc-buffer-revision
Sean Whitton [Fri, 4 Apr 2025 02:49:57 +0000 (10:49 +0800)]
New buffer-local vc-buffer-overriding-fileset and vc-buffer-revision

* lisp/vc/vc.el (vc-buffer-overriding-fileset)
(vc-buffer-revision): New variables (bug#77529).
(vc-find-revision-save, vc-find-revision-no-save): Set them.
(vc-deduce-fileset): Respect vc-buffer-overriding-fileset.
(vc-print-log): Use vc-buffer-revision as a default working
revision.

* lisp/vc/vc-annotate.el (vc-annotate-parent-file)
(vc-annotate-parent-rev): Delete.
(vc-annotate): Respect vc-buffer-overriding-fileset and
vc-buffer-revision.  This makes 'C-x v g' work from buffers
generated by 'C-x v ~' (bug#5424).
Set the two variables in the newly prepared buffer.
(vc-annotate-working-revision)
(vc-annotate-extract-revision-at-line)
(vc-annotate-revision-at-line, vc-annotate-warp-revision)
(vc-annotate-goto-line):
* lisp/vc/vc-svn.el (vc-svn-annotate-current-time): Use
vc-buffer-overriding-fileset instead of vc-annotate-parent-file,
vc-buffer-revision instead of vc-annotate-parent-rev.
(vc-annotate-parent-rev): Delete declaration.

* etc/NEWS: Announce the new variables.

(cherry picked from commit 60530889c309746def95f32d3dfc117bc4f98444)

7 weeks ago; Skip commit 37164032f690f8a2382f4216c0eb947ce48e2f1f
Eshel Yaron [Fri, 11 Apr 2025 11:37:13 +0000 (13:37 +0200)]
; Skip commit 37164032f690f8a2382f4216c0eb947ce48e2f1f

7 weeks ago; Skip commit c0ea954d0f650227dc518f02a292daeb27cf0c37
Eshel Yaron [Fri, 11 Apr 2025 11:36:59 +0000 (13:36 +0200)]
; Skip commit c0ea954d0f650227dc518f02a292daeb27cf0c37

7 weeks agoFix treesit-forward-sexp/list navigation in the middle of a node.
Juri Linkov [Thu, 10 Apr 2025 16:20:35 +0000 (19:20 +0300)]
Fix treesit-forward-sexp/list navigation in the middle of a node.

* lisp/treesit.el (treesit--forward-list-with-default):
Check the thing 'sexp-default' (bug#76791).

* lisp/progmodes/elixir-ts-mode.el (elixir-ts-mode):
* lisp/progmodes/go-ts-mode.el (go-ts-mode):
* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode):
* lisp/progmodes/sh-script.el (bash-ts-mode):
Add the thing 'sexp-default' to 'treesit-thing-settings'.

(cherry picked from commit ec62674cb959278240a56246cb6a958217dd17c0)

7 weeks agoRename treesit-toggle-sexp-mode to treesit-toggle-sexp-type.
Juri Linkov [Thu, 10 Apr 2025 16:04:12 +0000 (19:04 +0300)]
Rename treesit-toggle-sexp-mode to treesit-toggle-sexp-type.

* lisp/treesit.el (treesit-toggle-sexp-type):
Rename from 'treesit-toggle-sexp-mode'.  Fix docstring.
https://lists.gnu.org/archive/html/emacs-devel/2025-04/msg00273.html

(cherry picked from commit addcab68918a2dbbff997642e1287bd309a741bc)

7 weeks ago; Skip commit cb9aded6d934a384e9281e43f943281bdca5d517
Eshel Yaron [Fri, 11 Apr 2025 11:36:26 +0000 (13:36 +0200)]
; Skip commit cb9aded6d934a384e9281e43f943281bdca5d517

7 weeks ago; Skip commit aa8a5090ec102a7e39d1cc7661c6dffd27dbea67
Eshel Yaron [Fri, 11 Apr 2025 11:36:21 +0000 (13:36 +0200)]
; Skip commit aa8a5090ec102a7e39d1cc7661c6dffd27dbea67

7 weeks ago; Skip commit bb0f84bc0bf77892b05e3720ea623dcd3431325b
Eshel Yaron [Fri, 11 Apr 2025 11:36:18 +0000 (13:36 +0200)]
; Skip commit bb0f84bc0bf77892b05e3720ea623dcd3431325b

7 weeks ago; Skip commit 50947fd51202dbdd86b1cc677722ab2031c5050b
Eshel Yaron [Fri, 11 Apr 2025 11:36:15 +0000 (13:36 +0200)]
; Skip commit 50947fd51202dbdd86b1cc677722ab2031c5050b

7 weeks ago; * test/infra/android/test-controller.el (ats-eval): Correct punctuation.
Po Lu [Thu, 10 Apr 2025 10:19:28 +0000 (18:19 +0800)]
; * test/infra/android/test-controller.el (ats-eval): Correct punctuation.

(cherry picked from commit 426a016d612a539178a913b68fd395d94919af64)

7 weeks ago; Skip commit ddcc87514c72f86d5eac1cb9015e9b08160451b9
Eshel Yaron [Fri, 11 Apr 2025 11:32:52 +0000 (13:32 +0200)]
; Skip commit ddcc87514c72f86d5eac1cb9015e9b08160451b9

7 weeks agoRespond to display configuration updates on Android
Po Lu [Thu, 10 Apr 2025 07:21:15 +0000 (15:21 +0800)]
Respond to display configuration updates on Android

* java/org/gnu/emacs/EmacsNative.java
(sendConfigurationChanged): Declare function.

* java/org/gnu/emacs/EmacsSdk7FontDriver.java (Sdk7FontEntity)
(Sdk7FontObject): Do not access `metrics' field deleted from
`EmacsService'.

* java/org/gnu/emacs/EmacsService.java (EmacsService)
<metrics, resources>: Delete fields.
<dpiX, dpiY, dpiScaled>: New fields.
(onCreate): Adjust accordingly.  Record current display metrics
for subsequent comparison.
(onConfigurationChanged): New function.

* lisp/dynamic-setting.el (font-setting-change-default-font):
Enable on systems where font-get-system-font is not defined if
invoked with SET-FONT nil.

* src/android.c (sendConfigurationChanged): New function.

* src/androidgui.h (ANDROID_CONFIGURATION_CHANGED): New enumerator.
(struct android_configuration_changed): New structure.
(union android_event): Add `config' member.

* src/androidterm.c (handle_one_android_event): Handle
ANDROID_CONFIGURATION_CHANGED events.
(syms_of_androidterm): Define Qfont_render, and
Qdynamic_setting.  Provide the latter.

(cherry picked from commit 884ede7c959b1331e1ede0b1b80f01a06c048bf5)

7 weeks ago; Skip commit cb339ad8f4e386505f1eae9e45c4162feea61f53
Eshel Yaron [Fri, 11 Apr 2025 11:32:45 +0000 (13:32 +0200)]
; Skip commit cb339ad8f4e386505f1eae9e45c4162feea61f53

7 weeks ago; Fix recently-added documentation
Eli Zaretskii [Thu, 10 Apr 2025 06:26:32 +0000 (09:26 +0300)]
; Fix recently-added documentation

* etc/NEWS:
* lisp/treesit.el (treesit-toggle-sexp-mode): Fix wording of
recently-added documentation.

(cherry picked from commit b205d7b59d8bc97507fb6ffa766eedfcf13f8877)

7 weeks agoNew command 'treesit-toggle-sexp-mode' (bug#76676).
Juri Linkov [Wed, 9 Apr 2025 18:21:53 +0000 (21:21 +0300)]
New command 'treesit-toggle-sexp-mode' (bug#76676).

* lisp/treesit.el (treesit-forward-sexp): Don't use
'treesit-sexp-type-regexp' reserved for list commands
to override their default 'list' thing.
(treesit-down-list, treesit-up-list): Use
'treesit-sexp-type-regexp' instead of 'list'
when it's non-nil.
(treesit-toggle-sexp-mode): New command.

* lisp/progmodes/c-ts-mode.el (c-ts-mode--thing-settings):
Improve 'sexp' thing settings to exclude the top-level
"translation_unit" that just moves to EOF and also "comment".

* lisp/progmodes/elixir-ts-mode.el (elixir-ts--sexp-regexp): Remove.
(elixir-ts--forward-sexp): Remove to use the default 'sexp' navigation.
(elixir-ts--with-parens-0-p, elixir-ts--with-parens-1-p):
New internal functions.
(elixir-ts-mode): Add 'treesit-thing-settings'
instead of 'forward-sexp-function' (bug#76788).

* lisp/progmodes/heex-ts-mode.el (heex-ts--sexp-regexp): Remove.
(heex-ts--forward-sexp): Remove to use the default 'sexp' navigation.
(heex-ts--thing-settings): New variable.
(heex-ts-mode): Use 'heex-ts--thing-settings'
instead of 'forward-sexp-function'.

* lisp/progmodes/java-ts-mode.el (java-ts-mode):
Improve 'sexp' thing to use settings like in c-ts-mode.

* lisp/progmodes/php-ts-mode.el (php-ts-mode):
Improve 'sexp' thing settings to exclude the top-level
"program" that just moves to EOF and also "comment".

* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode):
Improve 'sexp' thing to use settings like in c-ts-mode.

* lisp/textmodes/css-mode.el (css--treesit-thing-settings):
Add 'sexp' thing.  Add "string_value" to 'text' thing.

* lisp/textmodes/html-ts-mode.el (html-ts-mode--treesit-things-settings):
Improve 'sexp' thing to use settings like in c-ts-mode.
Add "doctype" to the 'list' thing.

(cherry picked from commit 99a2cb05a41c66565d417e11e60f4324aaa5c5b5)

7 weeks agoImprove 'treesit-outline-search'.
Juri Linkov [Wed, 9 Apr 2025 17:40:09 +0000 (20:40 +0300)]
Improve 'treesit-outline-search'.

* lisp/treesit.el (treesit-outline-search): Remove
temporary arg 'recursive'.  Use iteration to visit
more ranges until the next outline heading is found.

* lisp/progmodes/php-ts-mode.el (php-ts-mode):
Set 'treesit-outline-predicate' explicitly.

(cherry picked from commit fa247a24a5ec9cf10865f0ac3711eddfd0ad3546)

7 weeks ago* lisp/subr.el (defvar-local): Change 'indent' to 'defun' (bug#77256).
Juri Linkov [Wed, 9 Apr 2025 17:24:42 +0000 (20:24 +0300)]
* lisp/subr.el (defvar-local): Change 'indent' to 'defun' (bug#77256).

(cherry picked from commit 4b9d571a558fe75df67045ce5dd6d964d4956295)

7 weeks ago; Skip commit 09887a2d41f61dff749860fe41a5e8382bb03bd9
Eshel Yaron [Fri, 11 Apr 2025 11:31:56 +0000 (13:31 +0200)]
; Skip commit 09887a2d41f61dff749860fe41a5e8382bb03bd9

7 weeks agoVC-Dir: Offer to register files before checking in
Sean Whitton [Wed, 9 Apr 2025 04:37:32 +0000 (12:37 +0800)]
VC-Dir: Offer to register files before checking in

* lisp/vc/vc.el (vc-only-files-state-and-model): Rewrite
checking that all files are in compatible VC states.  In
particular, consistently return 'edited' when all files are
either added, removed or edited, instead of allowing the return
value to depend on the order of the files in VC-Dir, and offer
to registered unregistered files if doing so would allow the
operation to proceed.
(vc-compatible-state): Delete.
(vc-next-action): Replace call to vc-compatible-state.
Document, in this command's docstring, the new feature
implemented in vc-only-files-state-and-model.
* etc/NEWS: Announce the new feature.

(cherry picked from commit 253364e2c71bfaaa3ca623ed23f1cae6548a16c7)

7 weeks ago; vc-setup-buffer: Don't pass a string to buffer-live-p.
Sean Whitton [Wed, 9 Apr 2025 03:04:26 +0000 (11:04 +0800)]
; vc-setup-buffer: Don't pass a string to buffer-live-p.

(cherry picked from commit 2310c12658c4b563f9860cb1196bab0d56c6f94d)

7 weeks ago; Skip commit 686032ddaf31cacae9a6cd963d9fcbc85ba3905a
Eshel Yaron [Fri, 11 Apr 2025 11:31:20 +0000 (13:31 +0200)]
; Skip commit 686032ddaf31cacae9a6cd963d9fcbc85ba3905a

7 weeks agoEglot: announce support for diagnostic version checks (bug#77588)
João Távora [Tue, 8 Apr 2025 21:15:26 +0000 (22:15 +0100)]
Eglot: announce support for diagnostic version checks (bug#77588)

* lisp/progmodes/eglot.el (eglot-client-capabilities): Mention versionSupport.

(cherry picked from commit 3e22c73fb612edb1879c83d24396dd8e7db40ffb)

7 weeks agoUpdate lisp/ldefs-boot.el
Eshel Yaron [Fri, 11 Apr 2025 10:38:56 +0000 (12:38 +0200)]
Update lisp/ldefs-boot.el

7 weeks agokkc.el: Fix a couple of bugs.
Eshel Yaron [Fri, 11 Apr 2025 10:38:15 +0000 (12:38 +0200)]
kkc.el: Fix a couple of bugs.

7 weeks agoMake scope.el symbol types a first class citizen.
Eshel Yaron [Fri, 11 Apr 2025 10:37:45 +0000 (12:37 +0200)]
Make scope.el symbol types a first class citizen.

7 weeks ago; * lisp/files.el (hack-local-variables): Fix thinko.
Eshel Yaron [Fri, 11 Apr 2025 10:36:40 +0000 (12:36 +0200)]
; * lisp/files.el (hack-local-variables): Fix thinko.

7 weeks agoPromote 'constantly' from 'cl-constantly'
Eshel Yaron [Fri, 11 Apr 2025 06:45:50 +0000 (08:45 +0200)]
Promote 'constantly' from 'cl-constantly'

8 weeks agorecentf.el: Clean up.
Eshel Yaron [Wed, 9 Apr 2025 14:09:40 +0000 (16:09 +0200)]
recentf.el: Clean up.

8 weeks ago; Update lisp/ldefs-boot.el
Eshel Yaron [Tue, 8 Apr 2025 20:02:21 +0000 (22:02 +0200)]
; Update lisp/ldefs-boot.el

8 weeks agoFix ElDoc in minibuffer
Eshel Yaron [Tue, 8 Apr 2025 19:58:54 +0000 (21:58 +0200)]
Fix ElDoc in minibuffer

8 weeks agoscope.el: Handle derived-mode-p.
Eshel Yaron [Tue, 8 Apr 2025 19:58:26 +0000 (21:58 +0200)]
scope.el: Handle derived-mode-p.

8 weeks ago; Skip commit 40b0c83988267c891e7d0ecf241cc2c0135d5ce1
Eshel Yaron [Tue, 8 Apr 2025 19:43:24 +0000 (21:43 +0200)]
; Skip commit 40b0c83988267c891e7d0ecf241cc2c0135d5ce1

8 weeks agoPreserve an explicit * in pcm-try-completion
Spencer Baugh [Mon, 18 Nov 2024 17:26:55 +0000 (12:26 -0500)]
Preserve an explicit * in pcm-try-completion

An explicitly typed * has different semantics from automatically
inserted PCM wildcards, so it should be preserved on try-completion.  We
already do this in some cases, but now we do it more.

This is especially significant for filename completion: removing an
explicit * can take us from

~/src/emacs/trunk/*/minibuf

to

~/src/emacs/trunk//minibuf

The explicit double slash is interpreted by the file name completion
table to mean "start completing from the root directory", so deleting
the * here substantially changes semantics.

* lisp/minibuffer.el (completion-pcm--merge-completions): Don't drop
important wildcards. (bug#74420)
* test/lisp/minibuffer-tests.el (completion-pcm-test-7): Add tests.

(cherry picked from commit 0fbba16387513e7692b46885833e4a9c218251f0)

8 weeks ago* lisp/treesit.el (treesit--after-change): New function.
Juri Linkov [Tue, 8 Apr 2025 17:43:41 +0000 (20:43 +0300)]
* lisp/treesit.el (treesit--after-change): New function.

(treesit-major-mode-setup): Set 'outline-minor-mode-hook'
to add 'treesit--after-change' with 'treesit-update-ranges'
to 'after-change-functions' (bug#77256).

(cherry picked from commit bec2de20469db0767d2bd7f60f0d4dfb20269614)

8 weeks agoNew function treesit-parsers-at for treesit-language-at (bug#77256).
Juri Linkov [Tue, 8 Apr 2025 17:40:10 +0000 (20:40 +0300)]
New function treesit-parsers-at for treesit-language-at (bug#77256).

* doc/lispref/parsing.texi (Multiple Languages): The variable
'treesit-language-at-point-function' is now optional for
multi-language major modes.  Add description of 'treesit-parsers-at'.

* lisp/treesit.el (treesit-language-at-point-function):
Change the the docstring to remove the dissuasion against
deriving the language from parser ranges.
(treesit-language-at): Use the first parser from
'treesit-parsers-at' as the default return value when
'treesit-language-at-point-function' is nil.  Adapt the docstring.
(treesit-node-at): Use 'treesit-parsers-at'.
(treesit-parsers-at): New function.
(treesit-local-parsers-at): Use 'treesit-parsers-at'
with the most part of the body moved to it.
(treesit-local-parsers-on): Replace the overlay property
'treesit-parser' with 'treesit-parser-local-p' in the docstring.
(treesit-up-list, treesit-simple-imenu, treesit-outline-level):
Use 'treesit-parsers-at'.

* lisp/progmodes/c-ts-mode.el (c-ts-mode): Don't set
'treesit-language-at-point-function'.

* lisp/progmodes/elixir-ts-mode.el (elixir-ts--treesit-language-at-point):
Remove.
(elixir-ts-mode): Don't set 'treesit-language-at-point-function'.

* lisp/progmodes/js.el (js--treesit-language-at-point): Remove.
(js-ts-mode): Don't set 'treesit-language-at-point-function'.

* lisp/progmodes/php-ts-mode.el (php-ts-mode--html-language-at-point)
(php-ts-mode--language-at-point): Remove.
(php-ts-mode): Don't set 'treesit-language-at-point-function'.

* lisp/textmodes/mhtml-ts-mode.el (mhtml-ts-mode--language-at-point):
Remove.
(mhtml-ts-mode): Don't set 'treesit-language-at-point-function'.
Use 'treesit-language-at' for mode-line lighter.

(cherry picked from commit 5e0daa1ef77d2a5fe5b65b8f0fa6c4eab83a2498)

8 weeks ago(internal--get-default-lexical-binding): Be more failsafe
Stefan Monnier [Tue, 8 Apr 2025 17:10:30 +0000 (13:10 -0400)]
(internal--get-default-lexical-binding): Be more failsafe

* lisp/files.el (internal--get-default-lexical-binding): Try and
avoid signaling an error.  Make it easier to suppress the
warning for a specific file.

(cherry picked from commit 7ff674d7125452b0ce6a8d39cb667eacb90f3df2)

8 weeks agoFix prettify-symbols-mode with composition rules
Eli Zaretskii [Tue, 8 Apr 2025 16:04:41 +0000 (19:04 +0300)]
Fix prettify-symbols-mode with composition rules

* lisp/progmodes/prog-mode.el
(prettify-symbols--composition-displayable-p): Fix a thinko.
Patch by Visuwesh <visuweshm@gmail.com>.  (Bug#77627)

(cherry picked from commit 646ccd5e67db701ed9f632492d1bfbe3f6110cb4)

8 weeks agoFix window selection after log-edit-show-diff, again
Sean Whitton [Tue, 8 Apr 2025 12:36:42 +0000 (20:36 +0800)]
Fix window selection after log-edit-show-diff, again

In October I installed a change to vc-diff-patch-string and
labelled it as "Fix window selection after log-edit-show-diff"
but that change only fixed the problem within
log-view-modify-change-comment.  This change should fix window
selection after C-c C-d in ordinary checkins.

* lisp/vc/log-edit.el (log-edit-diff-fileset): Use
save-selected-window in order to respect the documented
requirement that values of log-edit-diff-function leave the Log
Edit buffer's window selected when they return.

(cherry picked from commit d283db577339ee247826bfa1e8c1808dad823858)

8 weeks agoEglot: check textDocument/publishDiagnostics version (bug#77588)
João Távora [Tue, 8 Apr 2025 07:43:14 +0000 (08:43 +0100)]
Eglot: check textDocument/publishDiagnostics version (bug#77588)

* lisp/progmodes/eglot.el (eglot--versioned-identifier): Move up.
(eglot-handle-notification textDocument/publishDiagnostics): Check
eglot--versioned-identifier

(cherry picked from commit 13f439ce98c4cdd57bddfa671f071e31fa2badc6)

8 weeks ago; Fix last change: ensure-list does not ensure a proper list
Sean Whitton [Tue, 8 Apr 2025 07:12:17 +0000 (15:12 +0800)]
; Fix last change: ensure-list does not ensure a proper list

(cherry picked from commit 577ddbb9b79c067d296d50f3e8a04c193c1632b3)

8 weeks agoFactor out vc-only-files-state-and-model
Sean Whitton [Tue, 8 Apr 2025 06:09:07 +0000 (14:09 +0800)]
Factor out vc-only-files-state-and-model

* lisp/dired-aux.el (vc-compatible-state): Delete declaration.
(vc-only-files-state-and-model): Declare.
(dired-vc-deduce-fileset): Factor out vc-only-files-state-and-model.
* lisp/vc/vc-dir.el (require): Require cl-lib at load time, too.
(vc-only-files-state-and-model): Declare.
(vc-dir-deduce-fileset): Factor out vc-only-files-state-and-model.
* lisp/vc/vc.el (vc-only-files-state-and-model): New function,
factored out of dired-vc-deduce-fileset and vc-dir-deduce-fileset.

(cherry picked from commit b784f194f8320d326c755dd49b31210977aae0e7)

8 weeks agoDrop ido.el and icomplete.el
Eshel Yaron [Tue, 8 Apr 2025 19:35:33 +0000 (21:35 +0200)]
Drop ido.el and icomplete.el

8 weeks agoDrop refer.el and refbib.el
Eshel Yaron [Tue, 8 Apr 2025 16:31:22 +0000 (18:31 +0200)]
Drop refer.el and refbib.el

8 weeks ago; Drop Mtn from comment now vc-mtn is obsolete
Sean Whitton [Tue, 8 Apr 2025 05:24:15 +0000 (13:24 +0800)]
; Drop Mtn from comment now vc-mtn is obsolete

(cherry picked from commit 5f89eadb3f5a3794a6ee6acc7c5a3e6b26ab590d)

8 weeks agoUpdate descriptions of VC's capabilities for Git and Mercurial
Sean Whitton [Tue, 8 Apr 2025 05:17:17 +0000 (13:17 +0800)]
Update descriptions of VC's capabilities for Git and Mercurial

* doc/emacs/maintaining.texi (Version Control Systems): Update
descriptions of VC's capabilities for Git and Mercurial.

(cherry picked from commit ef8c4779dd4fd2a00d9ca4e572e42608628bce50)

8 weeks agolisp/files.el (internal--get-default-lexical-binding): Buttonize the M-x
Stefan Monnier [Tue, 8 Apr 2025 03:24:21 +0000 (23:24 -0400)]
lisp/files.el (internal--get-default-lexical-binding): Buttonize the M-x

(cherry picked from commit 19257efbf712dc026572a88b46d456d0c4b8c365)

8 weeks agolisp/files.el (internal--get-default-lexical-binding): Handle nested loads
Stefan Monnier [Tue, 8 Apr 2025 02:48:01 +0000 (22:48 -0400)]
lisp/files.el (internal--get-default-lexical-binding): Handle nested loads

(cherry picked from commit 9dc6177206a10efcc3a25894aa7aabaa54044adc)

8 weeks agoReplace some calls to `intern' with DEFSYMs
Po Lu [Tue, 8 Apr 2025 02:26:18 +0000 (10:26 +0800)]
Replace some calls to `intern' with DEFSYMs

* src/filelock.c (lock_file, unlock_file_handle_error): Call
constant symbols rather than interning them all the time.
(syms_of_filelock): New symbols Qask_user_about_lock,
Quserlock__handle_unlock_error, and
Quserlock__ask_user_about_supersession_threat.

(cherry picked from commit b392038560736d4413bc1b31671a9aa826ff873e)

8 weeks ago; * src/lread.c (get_lexical_binding): Fix coding style.
Po Lu [Tue, 8 Apr 2025 01:46:16 +0000 (09:46 +0800)]
; * src/lread.c (get_lexical_binding): Fix coding style.

(cherry picked from commit 9b7402c5fdbae1ec88c47101e9e8f74fcbffe5ec)

8 weeks ago(Fload, Feval_buffer): Emit a warning when lexbind is unset (bug#74145)
Stefan Monnier [Tue, 8 Apr 2025 01:41:35 +0000 (21:41 -0400)]
(Fload, Feval_buffer): Emit a warning when lexbind is unset (bug#74145)

This emits a warning at run-time rather than at compile time.

* src/lread.c (get_lexical_binding): New function.
(Fload, Feval_buffer): Use it.
(syms_of_lread): New var `internal--get-default-lexical-binding-function`.
* lisp/files.el: Set it.
(internal--get-default-lexical-binding): New function.

(cherry picked from commit 9f25d46568bf0a4d617145537db4c8aaf5e0219b)

8 weeks agoeieio: Improve some obsolecence warnings and fix #<CLASS CLASS-XX> names
Stefan Monnier [Mon, 7 Apr 2025 16:41:49 +0000 (12:41 -0400)]
eieio: Improve some obsolecence warnings and fix #<CLASS CLASS-XX> names

* lisp/emacs-lisp/eieio.el (eieio--constructor-macro): Improve message.
(eieio-object-name-string): Avoid repeated class name in the output of
`eieio-object-name`.
(make-instance, clone): Improve message.

* lisp/emacs-lisp/eieio-core.el (eieio-defclass-autoload): Use the same
obsolescence warning as elsewhere.

(cherry picked from commit 9663c959c73d6cca0c56f833d80ff1d9e9708b70)

8 weeks ago(Freplace_region_contents): Fix point preservation (bug#77607)
Stefan Monnier [Mon, 7 Apr 2025 15:54:06 +0000 (11:54 -0400)]
(Freplace_region_contents): Fix point preservation (bug#77607)

* src/editfns.c (Freplace_region_contents): Save excursion around
temporary restriction (bug#77607) and remove
`record_unwind_protect_excursion` made redundant by commit 40d8650d5177.

(cherry picked from commit ae5c608eca636ad1c5c76294d81f16a16d2ec3b5)

8 weeks agotest/eieio: Silence warnings about slots and obsolete name arg
Stefan Monnier [Mon, 7 Apr 2025 03:49:37 +0000 (23:49 -0400)]
test/eieio: Silence warnings about slots and obsolete name arg

* test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el
(eieio-test-method-order-list-3, eieio-test-method-order-list-6)
(eieio-test-method-order-list-7, eieio-test-method-order-list-8):
Delete obsolete name argument to constructors.
(eieio-test-method-order-list-4): Make sure backward compatibility is
active when testing the obsolete name arg.

* test/lisp/jsonrpc-tests.el (jsonrpc--call-with-emacsrpc-fixture):
Delete obsolete name argument to constructor.

* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (derived-value):
Silence unknown slot warning.

(cherry picked from commit 31c5fd3bfba31687de31e1e4c3d3501401f023bc)

8 weeks agolisp/emacs-lisp/eieio-custom.el: Require `eieio-base` to silence warning
Stefan Monnier [Mon, 7 Apr 2025 03:43:37 +0000 (23:43 -0400)]
lisp/emacs-lisp/eieio-custom.el: Require `eieio-base` to silence warning

(cherry picked from commit aca9f8c50aeea36f85e602272e97a6adfc93283a)

8 weeks agoeieio: Emit compilation warnings a bit more thoroughly
Stefan Monnier [Mon, 7 Apr 2025 03:39:40 +0000 (23:39 -0400)]
eieio: Emit compilation warnings a bit more thoroughly

We used to warn about unknown slots only in `oref`: add the same check
for `oset` and `slot-boundp`.
Similarly, we warned about obsolete name args only when calling the
constructors: add the same check to `make-instance`.

* lisp/emacs-lisp/eieio-core.el (eieio--check-slot-name): New function
extracted from the compiler-macro of `eieio-oref`.
(eieio-oref, eieio-oset): Use it.
* lisp/emacs-lisp/eieio.el (slot-boundp): Use it.
 (eieio--constructor-macro): Add category to warning.
(make-instance): Add compiler-macro to warn about obsolete name.

(cherry picked from commit 71afa12941ebbd6fa2c010064de01db681985279)

8 weeks ago; Skip commit 308a5ff0f8997a287a496993d92f92c6a8a0f393
Eshel Yaron [Tue, 8 Apr 2025 05:49:43 +0000 (07:49 +0200)]
; Skip commit 308a5ff0f8997a287a496993d92f92c6a8a0f393

8 weeks ago; Skip commit f0c1de75e128c3b35f8b6e9324a6bd58057af6cb
Eshel Yaron [Tue, 8 Apr 2025 05:49:27 +0000 (07:49 +0200)]
; Skip commit f0c1de75e128c3b35f8b6e9324a6bd58057af6cb

8 weeks ago; Skip commit 48b41d595c37a7fd7b2a1e97fd0dcadc24e1a6bb
Eshel Yaron [Tue, 8 Apr 2025 05:49:18 +0000 (07:49 +0200)]
; Skip commit 48b41d595c37a7fd7b2a1e97fd0dcadc24e1a6bb

8 weeks agocedet: Delete obsolete object name arg to EIEIO constructors
Stefan Monnier [Sun, 6 Apr 2025 21:25:43 +0000 (17:25 -0400)]
cedet: Delete obsolete object name arg to EIEIO constructors

For classes that don't inherit from `eieio-named`, this argument
is ignored anyway.

* lisp/auth-source-pass.el (auth-source-pass-backend): Delete obsolete
object-name argument to `auth-source-backend` constructor.

* lisp/cedet/ede/config.el (ede-config-get-configuration): Delete obsolete
object-name argument to ede-config constructor.

* lisp/cedet/ede/cpp-root.el (ede-find-target): Delete obsolete
object-name argument to `ede-cpp-root-target` constructor.

* lisp/cedet/ede/locate.el (ede-enable-locate-on-project): Delete obsolete
object-name argument to ede-locate constructor.

* lisp/cedet/ede/project-am.el (project-am-load-makefile): Delete obsolete
object-name argument to `project-am-makefile` constructor.

* lisp/cedet/semantic/complete.el (semantic-complete-read-tag-buffer-deep)
(semantic-complete-read-tag-local-members)
(semantic-complete-read-tag-project, semantic-complete-read-tag-analyzer):
Delete obsolete object-name argument to
`semantic-collector-buffer-deep`,
`semantic-collector-local-members`,
`semantic-collector-project-brutish`, and
`semantic-collector-analyze-completions` constructors.

* lisp/cedet/semantic/db-ebrowse.el (semanticdb-create-database):
Delete obsolete object-name argument to
`semanticdb-project-database-ebrowse` constructor.

* lisp/cedet/semantic/db-file.el (semanticdb-create-database): Delete
obsolete object-name argument to
`semanticdb-project-database-file` constructor.

* lisp/cedet/semantic/db-typecache.el (semanticdb-get-typecache):
Delete obsolete object-name argument to `semanticdb-typecache` constructor.

* lisp/cedet/semantic/db.el (semanticdb-get-table-index)
(semanticdb-create-table):
Delete obsolete object-name argument to
`semanticdb-default-find-index-class`, new-table-class, and
desired-class constructors.

* lisp/cedet/semantic/bovine/c.el (semantic-analyze-tag-references):
* lisp/cedet/semantic/analyze/refs.el
(semantic-analyze-tag-references-default): Delete obsolete
object-name argument to `semantic-analyze-references` constructor.

* lisp/cedet/srecode/compile.el (srecode-compile-templates):
Delete obsolete object-name argument to `srecode-compile-state` and
`srecode-dictionary-compound-variable` constructors.

* lisp/cedet/srecode/cpp.el (srecode-semantic-apply-tag-to-dict)
(srecode-c-apply-templates): Delete obsolete object-name argument to
`srecode-semantic-tag` constructors.

* lisp/cedet/srecode/dictionary.el (srecode-dictionary-add-entries)
(srecode-compound-toString): Delete obsolete object-name argument to
`srecode-dictionary-compound-variable` and `srecode-field` constructors.

* lisp/cedet/srecode/insert.el (srecode-insert-method-field):
Delete obsolete object-name argument to `srecode-field-value` constructor.

* lisp/cedet/srecode/semantic.el (srecode-semantic-handle-:tag)
(srecode-semantic-insert-tag, srecode-semantic-apply-tag-to-dict-default):
Delete obsolete object-name argument to `srecode-semantic-tag` constructors.

* lisp/cedet/srecode/table.el (srecode-mode-table-new): Delete
obsolete object-name argument to `srecode-template-table` constructor.

(cherry picked from commit 05680dc6c59be73ebe6c5cfa28d4c095edd661f4)

8 weeks ago; Skip commit f75f8f3d6a09fe3dda3e747665187a0c34c19eaf
Eshel Yaron [Tue, 8 Apr 2025 05:47:57 +0000 (07:47 +0200)]
; Skip commit f75f8f3d6a09fe3dda3e747665187a0c34c19eaf

8 weeks ago; Skip commit 94148549d782af3fb6677bc121fd5fc8dee3ea63
Eshel Yaron [Tue, 8 Apr 2025 05:47:22 +0000 (07:47 +0200)]
; Skip commit 94148549d782af3fb6677bc121fd5fc8dee3ea63

8 weeks agoAdd bindings for vc-git-stash-delete-at-point, vc-git-stash-delete
Sean Whitton [Mon, 7 Apr 2025 03:28:13 +0000 (11:28 +0800)]
Add bindings for vc-git-stash-delete-at-point, vc-git-stash-delete

* lisp/vc/vc-git.el (vc-git-stash-map): Bind "D" to
vc-git-stash-delete-at-point.
(vc-dir-git-mode-map): Bind "z d" to vc-git-stash-delete.
* etc/NEWS: Announce the new bindings.

(cherry picked from commit e9e11f7281899aa206ff6f62a183fa83cde48e95)

8 weeks ago; * lisp/vc/ediff-wind.el (ediff-with-live-window): Use cl-once-only
Sean Whitton [Mon, 7 Apr 2025 02:19:58 +0000 (10:19 +0800)]
; * lisp/vc/ediff-wind.el (ediff-with-live-window): Use cl-once-only

(cherry picked from commit 1e100f482c5f07fc6cd55f32065c62244856bff2)

8 weeks ago* lisp/vc/vc-git.el (vc-git-checkin): Actually pass down TO-STASH.
Sean Whitton [Mon, 7 Apr 2025 02:05:08 +0000 (10:05 +0800)]
* lisp/vc/vc-git.el (vc-git-checkin): Actually pass down TO-STASH.

(cherry picked from commit 3ccd25f6b01bcd2e103faa86b11c10017b64e69b)

8 weeks agovc-git-checkin: Don't relativize names of temporary files
Sean Whitton [Mon, 7 Apr 2025 02:03:46 +0000 (10:03 +0800)]
vc-git-checkin: Don't relativize names of temporary files

* lisp/vc/vc-git.el (vc-git-checkin)
(vc-git--stash-staged-changes): Don't relativize names of
temporary files passed to 'git apply --cached'.  More generally,
these are not files managed by the underlying VCS, so they
shouldn't go in the FILE-OR-LIST argument to vc-git-command.

(cherry picked from commit 7f60aa45aab4191a44d6d83ec6c3004e4901469b)

8 weeks ago; Skip commit ba13e7de32d08028ab7bffdd73dab271a95ea453
Eshel Yaron [Tue, 8 Apr 2025 05:46:47 +0000 (07:46 +0200)]
; Skip commit ba13e7de32d08028ab7bffdd73dab271a95ea453

8 weeks ago; Skip commit 819f92cb12b07938623e18384e86371ee101495a
Eshel Yaron [Tue, 8 Apr 2025 05:46:10 +0000 (07:46 +0200)]
; Skip commit 819f92cb12b07938623e18384e86371ee101495a

8 weeks ago; Skip commit 8ae7224b8fae59229b186853b300822bd70a8ec4
Eshel Yaron [Tue, 8 Apr 2025 05:45:44 +0000 (07:45 +0200)]
; Skip commit 8ae7224b8fae59229b186853b300822bd70a8ec4

8 weeks agoTeach VC-Dir to automatically add and remove marks on other lines
Sean Whitton [Sun, 6 Apr 2025 03:18:57 +0000 (11:18 +0800)]
Teach VC-Dir to automatically add and remove marks on other lines

* lisp/vc/vc-dir.el (vc-dir-allow-mass-mark-changes): New option.
(vc-dir-parent-marked-p): Replace with ...
(vc-dir--parent): ... this.
(vc-dir-children-marked-p): Replace with ...
(vc-dir--children): ... this.
(vc-dir-mark-file): Unmark subitems before marking a directory.
Offer to unmark a directory before marking a subitem.
(vc-dir-unmark-file): For an implicitly marked item, offer to
unmark it by marking everything else that's implicitly marked.
For an unmarked directory with marked subitems, offer to unmark
them all.
* etc/NEWS: Document the changes.

(cherry picked from commit 936b2efdb389488d291086d5c2189fd1a7170aa6)

8 weeks agoFix dired-vc-next-action generating inconsistent marks
Sean Whitton [Sun, 6 Apr 2025 03:09:22 +0000 (11:09 +0800)]
Fix dired-vc-next-action generating inconsistent marks

* lisp/vc/vc-dir.el (vc-dir-mark-files): Document that
directories passed to this function must have trailing slashes.
Don't mark both a directory and also items under it (bug#76769).
* lisp/dired-aux.el (dired-vc-next-action): Update docstring.

(cherry picked from commit c0b1b54d734a45698da9df0841700c4c15785b11)

8 weeks agovc-dir-mark-file: Consistently don't allow marking a subdirectory
Sean Whitton [Sun, 6 Apr 2025 01:09:32 +0000 (09:09 +0800)]
vc-dir-mark-file: Consistently don't allow marking a subdirectory

* lisp/vc/vc-dir.el (vc-dir-mark-file): Don't allow marking a
subdirectory if its parent is already marked.  This fixes an
inconsistency whereby if a subdirectory was already marked then
its parent could not be marked, but not vice-versa (bug #76769).

(cherry picked from commit a5f574429db1f820cc4d25bfb0e700aae050dc07)

8 weeks ago; Skip commit c418e454b3a9d103a5a59c76e1c36f3597de6798
Eshel Yaron [Tue, 8 Apr 2025 05:45:16 +0000 (07:45 +0200)]
; Skip commit c418e454b3a9d103a5a59c76e1c36f3597de6798

8 weeks agoAdd tab-bar test for "effectively dedicated window" (bug#71386)
shipmints [Fri, 4 Apr 2025 17:25:55 +0000 (13:25 -0400)]
Add tab-bar test for "effectively dedicated window" (bug#71386)

* test/lisp/tab-bar-tests.el (tab-bar-tests-quit-restore-window):
New test for 'delete-frame' for effectively-dedicated windows.

(cherry picked from commit 5fc1bd879e41e79601cff27db175d2ad22eafb66)

8 weeks ago* lisp/gnus/nnfeed.el (nnfeed--write-server): Use default print settings.
James Thomas [Fri, 14 Mar 2025 10:24:31 +0000 (15:54 +0530)]
* lisp/gnus/nnfeed.el (nnfeed--write-server): Use default print settings.

Bug#77113

(cherry picked from commit 5987d77f40bf72a268d35d1f2a88f7cd00c17459)

8 weeks agoTeach 'current-column' to account for images
Eli Zaretskii [Sat, 5 Apr 2025 10:24:22 +0000 (13:24 +0300)]
Teach 'current-column' to account for images

* src/indent.c (check_display_width): Handle 'image' and 'slice'
display specs, instead of using the width of the underlying text.
Accept 2 additional arguments: WINDOW and SCAN_BYTE.  (Bug#76107)

(cherry picked from commit 52e7a71e3f90fede27864e366977e23bfc193891)

8 weeks ago; Skip commit a4ee1e6709b57e6aed3ff6e800ab8fb83b706d65
Eshel Yaron [Tue, 8 Apr 2025 05:43:29 +0000 (07:43 +0200)]
; Skip commit a4ee1e6709b57e6aed3ff6e800ab8fb83b706d65

8 weeks agoAdd input method for languages based on Burmese
Billy Lei [Sat, 15 Mar 2025 06:46:31 +0000 (14:46 +0800)]
Add input method for languages based on Burmese

This adds 4 new input methods:
 . Burmese
 . Burmese Visual
 . Shan
 . Mon
* lisp/leim/quail/burmese.el: New file.  (Bug#77026)

(cherry picked from commit 183ab3372e24c80217db8cc8ba22bf1ac48100a4)

8 weeks ago; * src/xdisp.c (display_mode_line, display_mode_element): Fix comments.
Eli Zaretskii [Sat, 5 Apr 2025 09:35:42 +0000 (12:35 +0300)]
; * src/xdisp.c (display_mode_line, display_mode_element): Fix comments.

(cherry picked from commit bf7b3c5ddd5f66cd0f4927c983789128b43056ba)

8 weeks agoFix mouse highlighting for compact mode lines (bug#77336)
Pengji Zhang [Wed, 2 Apr 2025 12:52:30 +0000 (20:52 +0800)]
Fix mouse highlighting for compact mode lines (bug#77336)

When 'mode-line-compact' is non-nil, the mode line string is
displayed as a whole.  That confuses the computation of ranges
of mouse highlighting on the mode line because all the glyphs
have the same Lisp object source.  As such, in this commit we
instead split the mode line string by sources, and display those
elements one by one, so the boundaries of each element could be
correctly detected for the purpose of mouse highlighting.

* src/xdisp.c (display_mode_line): Display mode line elements
one by one when 'mode-line-compact' is non-nil.
(display_mode_element): Record source element number of the
stored string via a text property.
(Fformat_mode_line): Initialize 'mode_line_elt_no' to 0.
(syms_of_xdisp): New symbol for the text property.

(cherry picked from commit c94f0d3dc82a72baa0ba8d69beda220aaf0b2d91)

8 weeks agoRestrict symbol prettification to displayable glyphs
Paul Nelson [Mon, 31 Mar 2025 13:37:14 +0000 (15:37 +0200)]
Restrict symbol prettification to displayable glyphs

* lisp/international/mule.el (char-displayable-on-frame-p): New
function used to determine whether a character can be
meaningfully displayed on a given frame.
* doc/lispref/display.texi (Fontsets): Document it.
* lisp/progmodes/prog-mode.el
(prettify-symbols--composition-displayable-p): New function used
to restrict to displayable prettification symbols.  This
prevents issues with missing characters appearing as boxes.
(prettify-symbols--make-keywords): Use it.  (Bug#77381)

(cherry picked from commit 2d0b5f34a008979d34f337c872bcf93a296c6ec2)

8 weeks agoExtend prettify-symbols-alist in TeX mode
Paul Nelson [Sun, 30 Mar 2025 11:31:58 +0000 (13:31 +0200)]
Extend prettify-symbols-alist in TeX mode

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Add
further math symbols, quotes and fractions.  (Bug#77381)

(cherry picked from commit ef6203b64aaf53cd986caf17bd49b6ffe840c93a)

8 weeks ago; Skip commit d6f1b25d2e5e83f472cf9cd35bea43c066fbd4f3
Eshel Yaron [Tue, 8 Apr 2025 05:42:57 +0000 (07:42 +0200)]
; Skip commit d6f1b25d2e5e83f472cf9cd35bea43c066fbd4f3

8 weeks agoOptionally display function docstring in eldoc
Elías Gabriel Pérez [Wed, 19 Mar 2025 18:01:22 +0000 (12:01 -0600)]
Optionally display function docstring in eldoc

Allow display (optionally) function docstring in eldoc. (Bug#77124)
* etc/NEWS: Document changes.
* lisp/progmodes/elisp-mode.el
(elisp-eldoc-funcall-with-docstring-length): New user option.
(elisp-eldoc-funcall-with-docstring): New function.

(cherry picked from commit 8fc18d0968a0f7ef610b6868a35e731c778991ac)

8 weeks agoImprove formatting of 'setopt' suggestion in *Help* buffer
Visuwesh [Sun, 23 Mar 2025 05:58:16 +0000 (11:28 +0530)]
Improve formatting of 'setopt' suggestion in *Help* buffer

* lisp/help-fns.el (help--recommend-setopt): Remove function,
and...
(help-fns--customize-variable): ... move the relevant code here
to keep related code in the same place.  Change the formatting
to also include the :set function if it is set to a named
function.  (Bug#77173)

(cherry picked from commit c73e4cdece0d97f3f5793590fefa258923dca08b)

8 weeks ago; Fix wording of recent documentation changes
Eli Zaretskii [Sat, 5 Apr 2025 07:11:03 +0000 (10:11 +0300)]
; Fix wording of recent documentation changes

* lisp/desktop.el (desktop-restore-frames):
* etc/NEWS:
* doc/emacs/misc.texi (Saving Emacs Sessions): Fix wording of the
recent changes.

(cherry picked from commit cffe5a02454f0d2201172c07a239bd9a3682ad68)

8 weeks ago; Skip commit 3ee021dc19e314f6f456867ec43c25aed5cc41b8
Eshel Yaron [Tue, 8 Apr 2025 05:42:05 +0000 (07:42 +0200)]
; Skip commit 3ee021dc19e314f6f456867ec43c25aed5cc41b8

8 weeks agoperl-mode.el: Avoid obsolete font-lock face vars
Stefan Monnier [Sat, 5 Apr 2025 03:53:10 +0000 (23:53 -0400)]
perl-mode.el: Avoid obsolete font-lock face vars

* lisp/progmodes/perl-mode.el (perl-mode-abbrev-table): Merge defvar
into the definition.
(perl-font-lock-keywords-1, perl-font-lock-keywords-2): Avoid obsolete
font-lock face vars.

(cherry picked from commit cd41247dc18f4e478ffb296198229ee22d44668c)

8 weeks agoDisable desktop-restore-frames by default on Android
Po Lu [Sat, 5 Apr 2025 02:30:30 +0000 (10:30 +0800)]
Disable desktop-restore-frames by default on Android

* lisp/desktop.el (desktop-restore-frames): Default to nil when
\(featurep 'android).

* doc/emacs/misc.texi (Saving Emacs Sessions): Adjust to match.

(cherry picked from commit d582ed9dc9be516f17dc9a526c3f9615001a46a6)

8 weeks agoediff-current-file: New optional startup-hooks arg
Paul D. Nelson [Mon, 31 Mar 2025 07:07:07 +0000 (09:07 +0200)]
ediff-current-file: New optional startup-hooks arg

* lisp/vc/ediff.el (ediff-current-file): Add optional
startup-hooks argument, so that the user can write wrapper
commands with more finely customized behavior (bug#77323).

(cherry picked from commit 2bced74aa9735d9a9a5cb00aedfcac72d54f5d50)