]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 days agoUse vtable in eww-list-bookmarks
Sebastián Monía [Sun, 1 Dec 2024 05:29:08 +0000 (00:29 -0500)]
Use vtable in eww-list-bookmarks

* lisp/net/eww.el (eww-list-bookmarks): Move logic to...
(eww--bookmark-prepare, eww--bookmark-format-data) ... these, and use
'vtable'.
(eww-bookmark-kill, eww-bookmark-yank, eww-bookmark-browse)
(eww-next-bookmark, eww-previous-bookmark, eww-buffers-mode-map): Use
'vtable-current-object'.

(cherry picked from commit 1294c5ed5fb9251c16c0b48293953e2a6ce06e96)

13 days ago;* doc/misc/dired-x.texi: Remove unnecessary paren (Bug#76148)
Philip Kaludercic [Sat, 8 Feb 2025 21:39:47 +0000 (22:39 +0100)]
;* doc/misc/dired-x.texi: Remove unnecessary paren  (Bug#76148)

(cherry picked from commit eb365182440f236e6b5fe2a9192a0c3675e0e306)

13 days agoRefresh package list without blocking
Philip Kaludercic [Fri, 31 Jan 2025 07:55:02 +0000 (08:55 +0100)]
Refresh package list without blocking

* lisp/emacs-lisp/package.el (package-refresh-contents): Run
asynchronously when invoked interactively.
* etc/NEWS: Mention the change.

(cherry picked from commit 4cc8709ac2ceb0888ed1868292400049b98fe642)

13 days agoDon't try to unregister tracker ID twice
Andreas Schwab [Sat, 8 Feb 2025 18:32:06 +0000 (19:32 +0100)]
Don't try to unregister tracker ID twice

* lisp/vc/diff-mode.el (diff-minor-mode): Clear
diff--track-changes after unregistering.

(cherry picked from commit a0e1115caa49be098efb2be4d721a7ba218fc30f)

13 days ago* doc/misc/ert.texi (Helper Functions): New node.
Michael Albinus [Sat, 8 Feb 2025 16:36:16 +0000 (17:36 +0100)]
* doc/misc/ert.texi (Helper Functions): New node.

(cherry picked from commit bdf77074bf3ce4d532d6accb44faf4ec0769f7ea)

13 days agoEglot: auto-expand first level in type and call hierarchies
João Távora [Sat, 8 Feb 2025 13:42:08 +0000 (13:42 +0000)]
Eglot: auto-expand first level in type and call hierarchies

* lisp/progmodes/eglot.el (eglot--hierarchy-2): Use widget-apply-action.

(cherry picked from commit 37c07f383b053a40b31439076bec0b170c1281de)

13 days agoEglot: do not activate unsupported menu items
Felicián Németh [Sat, 8 Feb 2025 10:53:31 +0000 (11:53 +0100)]
Eglot: do not activate unsupported menu items

* lisp/progmodes/eglot.el (eglot-menu): Do not activate items that
the server does not support.

(cherry picked from commit 3fde13a5019bafbd2b1059e061a4b0869123564f)

13 days ago; Skip commit 36c91fdacc4995672e88e147c34b19d9244da033
Eshel Yaron [Sun, 9 Feb 2025 08:46:21 +0000 (09:46 +0100)]
; Skip commit 36c91fdacc4995672e88e147c34b19d9244da033

13 days ago; * admin/authors.el (authors-aliases): Add aliases.
Eli Zaretskii [Sat, 8 Feb 2025 12:06:00 +0000 (14:06 +0200)]
; * admin/authors.el (authors-aliases): Add aliases.

(cherry picked from commit ed9dd4705c7299c12c18d566bd8db4183b1c57f3)

13 days ago; Skip commit ad157a86ea9486fcd54522a198108258be28e151
Eshel Yaron [Sun, 9 Feb 2025 08:46:13 +0000 (09:46 +0100)]
; Skip commit ad157a86ea9486fcd54522a198108258be28e151

13 days agoEliminate savehist duplicated symbols
shipmints [Fri, 7 Feb 2025 19:25:50 +0000 (14:25 -0500)]
Eliminate savehist duplicated symbols

* lisp/savehist.el (savehist-save): Do not save symbols
duplicated between 'savehist-minibuffer-history-variables'
and 'savehist-additional-variables'.  (Bug#76123)
* test/lisp/savehist-tests.el: New file.

(cherry picked from commit 3123562866130d4ab45c5af7b80aaf0815060ce5)

13 days ago; Avoid passive tense in Emacs manual
Eli Zaretskii [Sat, 8 Feb 2025 11:47:11 +0000 (13:47 +0200)]
; Avoid passive tense in Emacs manual

* doc/lispref/variables.texi (Defining Variables): Avoid passive
tense (bug#76135).

(cherry picked from commit 223ee56aae7cf052419cf026bce4d7ea29671286)

13 days agoCleanup tool-bar-mode documentation
Jared Finder [Thu, 6 Feb 2025 22:32:00 +0000 (14:32 -0800)]
Cleanup tool-bar-mode documentation

* doc/emacs/frames.texi (Tool Bars): Downcase concept index
text.
* lisp/cus-start.el (standard): Copy custom :tag strings
from window-tool-bar-style's, which are more descriptive.
(Bug#75844)

(cherry picked from commit b023d43ee7908d805a6776f18d1a94b213a021e3)

13 days agoUpdate window-tool-bar
Jared Finder [Sun, 2 Feb 2025 18:11:20 +0000 (10:11 -0800)]
Update window-tool-bar

Add support for the remaining tool bar item specs, new user
option `window-tool-bar-style', and add support for older
Emacs versions.

* doc/emacs/windows.texi (Window Tool Bar): Add documentation
for new user option `window-tool-bar-style'.
* lisp/window-tool-bar.el
(customize-package-emacs-version-alist): Add package-version to
Emacs version mapping.
(window-tool-bar-string): Do not show spacers after hidden
buttons.
(window-tool-bar--keymap-entry-to-string): Call new function
`window-tool-bar--style'.  Add handling for :visible, :filter,
:button, :vert-only, and :help item specs.  Show key bindings.
(window-tool-bar--last-command-triggers-refresh-p): Use "cannot"
in comment.
(window-tool-bar--allow-images): Delete this, it is replaced by
new user option `window-tool-bar-style'.
(window-tool-bar--use-images): Delete this, it is replaced by
new function `window-tool-bar--style'.
(window-tool-bar--turn-on): Move earlier in file, no changes.
(window-tool-bar-style): New user option supporting all values
`tool-bar-style' supports as well as inheriting from
tool-bar-style.
(window-tool-bar--style): New function to calculate active tool
bar style based on `window-tool-bar-style', `tool-bar-style',
and frame capabilities.
(global-window-tool-bar-mode, window-tool-bar-button)
(window-tool-bar-button-hover, window-tool-bar-button-disabled):
Retroactively add package-version.
(window-tool-bar-button-checked)
(window-tool-bar-button-checked-hover): New faces for :button
item spec.
(window-tool-bar--get-keymap): Call new function
`window-tool-bar--style'.  (Bug#75844)

(cherry picked from commit 72bbbff7e8128fe14c0b69c7282667788758b8b4)

13 days agolisp/progmodes/csharp-mode.el: Improve string-interpolation
Jostein Kjønigsen [Sat, 1 Feb 2025 21:16:36 +0000 (22:16 +0100)]
lisp/progmodes/csharp-mode.el: Improve string-interpolation

Correctly fontify expressions inside string-interpolations.
(Bug#75580)

(cherry picked from commit 535eec814484c437443051e0b6d2d654eef9b7e0)

13 days ago* lisp/mouse.el (mouse-skip-word): Avoid errors at EOB. (Bug#75965)
Eli Zaretskii [Sat, 8 Feb 2025 10:41:36 +0000 (12:41 +0200)]
* lisp/mouse.el (mouse-skip-word): Avoid errors at EOB.  (Bug#75965)

(cherry picked from commit 512187feb046aea6de6d26e45271481a324a928c)

13 days agoAdd 'nnregistry-request-group' function for 'gnus-refer-article'
Björn Bidar [Tue, 21 Jan 2025 23:28:22 +0000 (01:28 +0200)]
Add 'nnregistry-request-group' function for 'gnus-refer-article'

nnregistry doesn't handle any servers or groups; however we have to
define the dummy function so Gnus-registry works as refer article
method, as the `gnus-check-group-server' function requires it.
The latter function is called when referring to articles to check the
source group first before actually requesting any articles.
* lisp/gnus/nnregistry.el (nnregistry-request-group): New deffoo.
(Bug#22414)

(cherry picked from commit 628e3cb22d196c31fc2452c3eab4a62af4bf66b2)

13 days agoPrioritize split along the longest edge by default.
Nicolas Despres [Sat, 21 Dec 2024 11:45:12 +0000 (12:45 +0100)]
Prioritize split along the longest edge by default.

Currently, `split-window-sensibly' prefers to try to split
vertically first, disregarding the actual shape of the frame
or the user preferences.  This is a good default when Emacs
is taller than wider.  However, when Emacs is in full-screen
(landscape screen layout), trying to split vertically may not
be what the user expected, since there is plenty of space
available on the right.

Typical scenario: Emacs is in landscape layout, one buffer is
open in a window covering the entire frame.  Another buffer is
opened in a second window (C-x 4 f). Both splits are feasible
but users may prefer the horizontal one.

This patch preserves the behavior of the `split-height-threshold'
and `split-width-threshold' variables.  Splitting continues not
to be permitted if the edge length is below the threshold.

* lisp/window.el (split-window-sensibly): First tried split
direction follows user preferences.

* etc/NEWS: Add an entry for new variable
`split-window-preferred-direction'.
* doc/emacs/windows.texi: Document new variable.

(cherry picked from commit 77ff0df588b6691db38be810210225e84d15eca3)

13 days ago; Make ERC test fixture more robust
F. Jason Park [Sat, 8 Feb 2025 02:54:22 +0000 (18:54 -0800)]
; Make ERC test fixture more robust

* test/lisp/erc/erc-tests.el (erc-tests--assert-printed-in-subprocess):
Scan for sentinel before reading.
(erc--find-mode, erc--essential-hook-ordering): Use contrived :result
protocol expected by `erc-tests--assert-printed-in-subprocess'.
* test/lisp/erc/resources/erc-tests-common.el
(erc-tests-common-create-subprocess): Divert stderr to messages buffer.

(cherry picked from commit 028913c446b8f06288f2e17be91aef701dc58ba4)

13 days agoMore clearly define local module behavior in ERC
F. Jason Park [Tue, 4 Feb 2025 14:11:50 +0000 (06:11 -0800)]
More clearly define local module behavior in ERC

* doc/misc/erc.texi (Modules): Label all local modules as being such.
Move `querypoll' to the auxiliary section.  Rework entire "Local
Modules" portion.
* lisp/erc/erc-goodies.el (erc-keep-place-indicator-mode)
(erc-command-indicator-mode): Mention what buffer types they operate in.
* lisp/erc/erc-nicks.el (erc-nicks-mode): Mention the mode is enabled in
all buffers.
* lisp/erc/erc-notify.el (erc-querypoll-mode): Mention which buffers it
operates in.
* lisp/erc/erc-sasl.el (erc-sasl-mode): Disable completely in target
buffers so its mode variable is nil.
* lisp/erc/erc-services.el (erc-services-regain-mode): Disable in target
buffers.
* lisp/erc/erc.el (erc-open): When activating local modules, skip those
that have just been enabled by a fellow module.  Do this even though
their setup code is meant to be idempotent.
* test/lisp/erc/erc-scenarios-base-local-modules.el
(erc-scenarios-base-local-modules--toggle-helpers): Revise to assert
current behavior.  (Bug#57955)

(cherry picked from commit e9408918f4e7fe00eb4e25e1e5428fb26c4ad847)

13 days agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Fri, 7 Feb 2025 21:02:02 +0000 (13:02 -0800)]
Update from Gnulib by running admin/merge-gnulib

(cherry picked from commit 0e4883f18eecea59e537e2368a0f5674888a1af7)

13 days agoRemove leading '*' from docstrings in cc-vars.el
Stefan Kangas [Thu, 23 Jan 2025 22:49:52 +0000 (23:49 +0100)]
Remove leading '*' from docstrings in cc-vars.el

* lisp/progmodes/cc-vars.el (c-make-font-lock-extra-types-blurb):
Remove leading '*' from generated docstrings.  (Bug#75793)

(cherry picked from commit 93206cbcea31add3da76cc1025b2f148312fe6f1)

13 days agoFix gnus-score-find-score-files-function :type
Mauro Aranda [Fri, 7 Feb 2025 10:31:34 +0000 (07:31 -0300)]
Fix gnus-score-find-score-files-function :type

* lisp/gnus/gnus-score.el (gnus-score-find-score-files-function): Delete
extra quotes.  (Bug#76118)

(cherry picked from commit be4cf26c16794021ae790f1eb82fccea6efaa354)

13 days agoEglot: fix bug in eglot--lookup-mode
João Távora [Fri, 7 Feb 2025 20:33:41 +0000 (20:33 +0000)]
Eglot: fix bug in eglot--lookup-mode

When lookup in eglot-server-programs fails, fall back to a
half-decent (((foo-mode . "foo")) . nil) return value.  This
enables interactive M-x eglot for modes not yet registered in
e-s-p.

* lisp/progmodes/eglot.el (eglot--lookup-mode): Fallback when
lookup fails.

(cherry picked from commit 7169a5d5636ddede2fe70a31de098031f20f70b1)

13 days agoMark IRIX support in GUD as obsolete
Stefan Kangas [Fri, 7 Feb 2025 20:22:38 +0000 (21:22 +0100)]
Mark IRIX support in GUD as obsolete

* lisp/progmodes/gud.el (gud-irix-p, gud-dbx-use-stopformat-p)
(gud-irixdbx-marker-filter): Mark as obsolete.  We stopped supporting
IRIX in Emacs 26.1 (commit 6bc8689c0428).
* lisp/progmodes/gud.el (dbx): Suppress obsoletion warnings.

(cherry picked from commit 0c0f5f5df24947f0658c274f9fa62829ef5401dd)

13 days agotime-stamp: Better handling of some edge cases
Stephen Gildea [Fri, 7 Feb 2025 17:17:26 +0000 (09:17 -0800)]
time-stamp: Better handling of some edge cases

* lisp/time-stamp.el (time-stamp-count): Require confirmation if large.
(time-stamp-once): Correctly handle a start regexp matching 0 chars.
* test/lisp/time-stamp-tests.el (time-stamp-custom-start): New test.

(cherry picked from commit 280b25e0096bb97fb473a8da9b4635fb2d6e5385)

13 days ago; * src/keyboard.c (syms_of_keyboard): Fix previous change.
Robert Pluim [Fri, 7 Feb 2025 14:48:47 +0000 (15:48 +0100)]
; * src/keyboard.c (syms_of_keyboard): Fix previous change.

(cherry picked from commit a62b58648ac54feb8fb81aefdb0461cb11bf6a81)

13 days agoSuppress unneded events in special-event-map
Michael Albinus [Fri, 7 Feb 2025 14:14:47 +0000 (15:14 +0100)]
Suppress unneded events in special-event-map

* src/keyboard.c (keys_of_keyboard): Don't add ns-put-working-text
and ns-unput-working-text to Vspecial_event_map unless on NS port.

(cherry picked from commit 0065c9dbb8fb7d2b802e8f9a327f33049afec4ad)

13 days agoUse insert-special-event in Tramp
Michael Albinus [Fri, 7 Feb 2025 13:41:58 +0000 (14:41 +0100)]
Use insert-special-event in Tramp

* lisp/net/tramp-gvfs.el (tramp-gvfs-monitor-process-filter):
* lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter)
(tramp-sh-inotifywait-process-filter): Use `insert-special-event'
if possible.

(cherry picked from commit 8be3be7330953dd015df28369c1f071178248bb4)

13 days agoEglot: add support for call and type hierarchies
João Távora [Fri, 7 Feb 2025 11:08:29 +0000 (11:08 +0000)]
Eglot: add support for call and type hierarchies

* lisp/progmodes/eglot.el (eglot--lsp-interface-alist): Add new
interfaces.
(eglot-client-capabilities): Advertise support for callHierarchy
and typeHierarchy.
(eglot-ignored-server-capabilities): Add new providers.
(eglot--goto): New helper.
(eglot-menu): Add new menu items.
(eglot-handle-request window/showDocument): Use eglot--goto.
(button, tree-widget): Require them.
(eglot--hierarchy-item): New button type.
(eglot--hierarchy-interactive, eglot--hierarchy-children)
(eglot--hierarchy-label, eglot--hierarchy-1, eglot--hierarchy-2):
New internal functions.
(eglot--define-hierarchy-command): New macro.
(eglot-show-type-hierarchy, eglot-show-call-hierarchy)
(eglot-hierarchy-center-on-node): New commands.
(eglot--hierarchy-roots, eglot--hierarchy-specs): New local variables.
(eglot-hierarchy-label-map): New keymap.
(eglot-hierarchy-mode): New major mode.

* doc/misc/eglot.texi (Eglot Commands, Eglot Features): Describe
new feature.

* etc/EGLOT-NEWS (Changes in upcoming Eglot): Mention new feature.

(cherry picked from commit 1ef9de69b3c3d8254ab58bf455137a4439dce516)

13 days ago; * src/keyboard.c (Finsert_special_event): Don't use "//".
Eli Zaretskii [Fri, 7 Feb 2025 11:37:56 +0000 (13:37 +0200)]
; * src/keyboard.c (Finsert_special_event): Don't use "//".

(cherry picked from commit f806b9cba6568433e36878ed005673a5788c004f)

13 days agoNew function insert-special-event and special event sleep-event
Michael Albinus [Fri, 7 Feb 2025 11:04:05 +0000 (12:04 +0100)]
New function insert-special-event and special event sleep-event

* doc/lispref/commands.texi (Misc Events): Add sleep-event.
(Special Events): New function insert-special-event.

* etc/NEWS: New function insert-special-event.  New event 'sleep-event'.
Fix typos.

* src/keyboard.c (Finsert_special_event): New defun.
(syms_of_keyboard): Declare Qsleep_event.  Define subroutine
Sinsert_special_event.  Add sleep-event to Vspecial_event_map.
(Bug#63620)
(kbd_buffer_get_event, make_lispy_event)
(init_while_no_input_ignore_events, is_ignored_event):
* src/termhooks.h (event_kind): Add SLEEP_EVENT.

(cherry picked from commit d41178368eb73873f34c15b58062a7447802c914)

13 days ago; Fix files-tests
Gerd Möllmann [Fri, 7 Feb 2025 10:27:06 +0000 (11:27 +0100)]
; Fix files-tests

* test/lisp/files-tests.el (files-tests--with-buffer-offer-save):
Override symbol function of read-key instead of read-event.

(cherry picked from commit 92aecdfd9fda59f3ea66c5709f0bc7af882a0c0d)

13 days ago* lisp/progmodes/sh-script.el (bash-ts-mode): Improve treesit settings.
Juri Linkov [Fri, 7 Feb 2025 07:47:41 +0000 (09:47 +0200)]
* lisp/progmodes/sh-script.el (bash-ts-mode): Improve treesit settings.

Add 'list' and 'sentence' things to treesit-thing-settings,
and move mistakenly added 'sentence' to 'text' (bug#73404).
Set 'treesit-defun-name-function' and 'treesit-simple-imenu-settings'.
Reset 'outline-regexp'.

(cherry picked from commit f6e6585f5751852dbdc972fef8fc5a3ccc6e4573)

13 days agoPrevent crash when requesting storage permissions on Android
Po Lu [Fri, 7 Feb 2025 03:11:51 +0000 (11:11 +0800)]
Prevent crash when requesting storage permissions on Android

* java/org/gnu/emacs/EmacsService.java (requestStorageAccess30):
Handle ActivityNotFoundException.

(cherry picked from commit 1751739152149608d28853782ce53b0b9a749bb2)

13 days ago; Use an uninterned symbol in the inhibit-auto-revert expansion.
Tassilo Horn [Thu, 6 Feb 2025 19:07:09 +0000 (20:07 +0100)]
; Use an uninterned symbol in the inhibit-auto-revert expansion.

(cherry picked from commit be316dc1c74fc547fe83c0426fdec3ffd4e5fb1f)

13 days ago; Rename internal variable in inhibit-auto-revert
Michael Albinus [Thu, 6 Feb 2025 15:56:07 +0000 (16:56 +0100)]
; Rename internal variable in inhibit-auto-revert

* lisp/autorevert.el (inhibit-auto-revert): Call internal variable
`iar-buf' in order not to mismatch with variables outside the macro.

(cherry picked from commit 811d575336942b1cd1e1c6fb50620babdf9cc82c)

13 days agoImprove documentation of 'file-name-concat'
Eli Zaretskii [Thu, 6 Feb 2025 08:42:04 +0000 (10:42 +0200)]
Improve documentation of 'file-name-concat'

* doc/lispref/files.texi (Directory Names):
* src/fileio.c (Ffile_name_concat): Advise not to use
'file-name-concat' unless necessary.  (Bug#76023)

(cherry picked from commit 143f1096daa686841f1409bd63835167bb7e8aca)

13 days agoUse read-key in amp-y-or-n-p (bug#75886)
Gerd Möllmann [Thu, 6 Feb 2025 04:31:38 +0000 (05:31 +0100)]
Use read-key in amp-y-or-n-p (bug#75886)

* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Use read-key
so that C-g in recognized when defined in input-decode-map.

(cherry picked from commit ea04dd8ca93d609c0ee475c4acf58a56dfc0f1f3)

13 days agoAdd scheme-mode indentation for SRFI 64, R7RS guard
Antero Mejr [Sun, 19 Jan 2025 03:35:39 +0000 (22:35 -0500)]
Add scheme-mode indentation for SRFI 64, R7RS guard

* lisp/progmodes/scheme.el: Add properties for SRFI 64 and R7RS guard
identifiers.  (Bug#75999)

(cherry picked from commit d10acd16c90afe9fc8534fcd174397b7c403eda9)

13 days ago(font-ccl-encoder-alist): Delete variable, unused
Stefan Monnier [Thu, 6 Feb 2025 00:43:45 +0000 (19:43 -0500)]
(font-ccl-encoder-alist): Delete variable, unused

* src/ccl.c (syms_of_ccl): Remove `font-ccl-encoder-alist`.
* lisp/language/ethiopic.el (ccl-encode-ethio-font): Delete CCL program.
(font-ccl-encoder-alist): Don't modify it.

(cherry picked from commit 4be087f1e12afb2ea4de1a5686d14a28a9a20940)

13 days ago* lisp/dired-x.el (dired-omit-expunge): Escape '%' (bug#75877).
Eli Zaretskii [Wed, 5 Feb 2025 13:48:49 +0000 (15:48 +0200)]
* lisp/dired-x.el (dired-omit-expunge): Escape '%' (bug#75877).

(cherry picked from commit bfc8540da4521d460b72fdbc20edb3a0488c23c2)

13 days agoPrepare markers for insertions inside of a widget
Mauro Aranda [Fri, 17 Jan 2025 20:12:08 +0000 (17:12 -0300)]
Prepare markers for insertions inside of a widget

Recreating child widgets without recreating the parent widget
may lead to situations where the parent widget doesn't cover its
children or buttons entirely anymore.  This bug manifests as a
faulty fontification of children or buttons, for example.
(Bug#69941)

* lisp/wid-edit.el (widget--prepare-markers-for-inside-insertion)
(widget--prepare-markers-for-outside-insertion): New functions.
(widget-default-create): Use them.

* test/lisp/wid-edit-tests.el (widget-test-insertion-at-parent-markers)
(widget-test-insertion-at-parent-markers-2): New tests.

(cherry picked from commit 85113fcda97970bc2468f409278e27d6570fc76f)

13 days agoRevert "Improve bidi_get_time runtime checking"
Eli Zaretskii [Wed, 5 Feb 2025 12:44:01 +0000 (14:44 +0200)]
Revert "Improve bidi_get_time runtime checking"

This reverts commit 782ec71053d8535511522f27f28c11682ca0f40b.
It makes the code less readable and less future-proof, so a
net loss.  (Bug#75964)

(cherry picked from commit a1f2f5995d69db646f58a7203ab6208556f0df4b)

13 days ago* lisp/autorevert.el (defvar): Fix debug declaration.
Michael Albinus [Wed, 5 Feb 2025 08:41:49 +0000 (09:41 +0100)]
* lisp/autorevert.el (defvar): Fix debug declaration.

(cherry picked from commit a476295620a692657f7febd4630cf67f128c4c65)

13 days agoCorrectly handled the local parser for jsdoc (bug#75456)
Vincenzo Pupillo [Mon, 3 Feb 2025 21:14:44 +0000 (22:14 +0100)]
Correctly handled the local parser for jsdoc (bug#75456)

As a result of recent patches to treesitter, local parsers must
now be recognized by 'treesit-language-at-point' and have their
own indentation rules.

* lisp/progmodes/js.el
(js--treesit-indent-rules): New rule for jsdoc.
(js--treesit-language-at-point): New function.
(js-ts-mode): Use the new function.

(cherry picked from commit 4396f6414c2fb82cb8cee68420b658e376bb4e01)

13 days agoMake treesit-node-at more readable
Yuan Fu [Wed, 5 Feb 2025 07:35:37 +0000 (23:35 -0800)]
Make treesit-node-at more readable

* lisp/treesit.el (treesit-node-at): Make the logic for finding
the parser (and the root node) more explicit and
straightforward.  Don't use treesit-buffer-root-node; instead,
find the parser and use treesit-parser-root-node directly.

(cherry picked from commit 12a3145b3b9480e5e5993dac28df52a36cc7b95d)

13 days agoRemove no-longer-needed delete_frame UNINIT
Paul Eggert [Wed, 5 Feb 2025 00:56:56 +0000 (16:56 -0800)]
Remove no-longer-needed delete_frame UNINIT

* src/frame.c (delete_frame): Remove a local with UNINIT that is
no longer needed now that GCC bug#85563 is fixed, as we don’t
need to worry about porting --enable-gcc-warnings to older GCC.
This change reverts this part of my commit
“Port --enable-gcc-warnings to GCC 8”
8c3215e7a47e3caaa005bf573765ed63e0739b89
dated Sat Apr 28 16:49:24 2018 -0700.

(cherry picked from commit 4aab2f45b3dc39f4ebe4e09fd4e3b56b757843aa)

13 days agoMake it configurable to highlight Python 2 builtins
kobarity [Tue, 4 Feb 2025 15:02:05 +0000 (00:02 +0900)]
Make it configurable to highlight Python 2 builtins

By default, Python 2-only builtins are not highlighted.

* lisp/progmodes/python.el (python-2-support): New defcustom.
(python-font-lock-builtin-types)
(python-font-lock-builtins-python3)
(python-font-lock-builtins-python2)
(python-font-lock-builtins)
(python-font-lock-special-attributes)
(python-font-lock-builtin-exceptions-python3)
(python-font-lock-builtin-exceptions-python2)
(python-font-lock-builtin-exceptions): New variables.
(python-font-lock-keywords-level-2)
(python-font-lock-keywords-maximum-decoration)
(python--treesit-builtin-types)
(python--treesit-builtins)
(python--treesit-special-attributes)
(python--treesit-exceptions): Use new variables.

Co-authored-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Co-authored-by: Stefan Kangas <stefankangas@gmail.com>
(cherry picked from commit 999d054dc1e265f1a39c10035a3a3f7f75de8445)

13 days ago; Skip commit 7d85f678f33029cc874da2aaa89cf95a45403146
Eshel Yaron [Sun, 9 Feb 2025 08:35:39 +0000 (09:35 +0100)]
; Skip commit 7d85f678f33029cc874da2aaa89cf95a45403146

13 days agoImprove bidi_get_time runtime checking
Paul Eggert [Tue, 4 Feb 2025 19:43:58 +0000 (11:43 -0800)]
Improve bidi_get_time runtime checking

* src/bidi.c (bidi_get_type): Improve runtime checking, by also
aborting if the bidi_type_table entry is not a bidi_type_t value.

(cherry picked from commit 782ec71053d8535511522f27f28c11682ca0f40b)

13 days agoImprove calculation of indent prefixes when using text scaling
Jim Porter [Tue, 4 Feb 2025 17:25:17 +0000 (09:25 -0800)]
Improve calculation of indent prefixes when using text scaling

Previously, the display spec for the "average space" was wrong.  It used
a plain number for the width of the specified space, which means "N
times the normal character width for the buffer", but we want "N times
the normal character width for the *current face*" (bug#76008).

* lisp/visual-wrap.el (visual-wrap--content-prefix): Specify the width
of the "average space" in terms of the average width of the current
face.

* lisp/net/shr.el (shr-indent): As above, and call 'string-pixel-width'
without specifying the buffer, to match 'shr-string-pixel-width'.

(cherry picked from commit 6842415577405adafcba16f8cbff02f35b5583f9)

13 days agoEglot: protect against nil jit-lock-context-unfontify-pos
João Távora [Tue, 4 Feb 2025 14:43:48 +0000 (14:43 +0000)]
Eglot: protect against nil jit-lock-context-unfontify-pos

* lisp/progmodes/eglot.el (eglot-shutdown, eglot--update-hints): Rework.

Github-reference: https://github.com/joaotavora/eglot/pull/1370
(cherry picked from commit b685b21a33423018f3da7695919a4d1b1ef2c9cd)

13 days agoFix min-width display spec handling (bug#76014)
Gerd Möllmann [Tue, 4 Feb 2025 05:09:52 +0000 (06:09 +0100)]
Fix min-width display spec handling (bug#76014)

* src/xdisp.c (display_min_width): Take into account that the output may
already be longer than the specified min-width.

(cherry picked from commit f9a1f449d9cbe57f7312a5327d08e28e71c16882)

13 days ago; Skip commit 1e01ae335dda0ebcbca71c50c066a3072dd9d022
Eshel Yaron [Sun, 9 Feb 2025 08:34:45 +0000 (09:34 +0100)]
; Skip commit 1e01ae335dda0ebcbca71c50c066a3072dd9d022

13 days agormc.el: Use read-key instead of read-event like they do upstream
Eshel Yaron [Sun, 9 Feb 2025 08:34:14 +0000 (09:34 +0100)]
rmc.el: Use read-key instead of read-event like they do upstream

13 days ago* src/fileio.c (Fsubstitute_in_file_name): Doc fix (bug#76023).
Eli Zaretskii [Tue, 4 Feb 2025 14:06:36 +0000 (16:06 +0200)]
* src/fileio.c (Fsubstitute_in_file_name): Doc fix (bug#76023).

(cherry picked from commit 5c36b4126533764bb8b90413f274d766e1a6f0d6)

13 days ago; * test/src/editfns-tests.el (editfns-tests-styled-print): Fix last change.
Eli Zaretskii [Tue, 4 Feb 2025 14:01:47 +0000 (16:01 +0200)]
; * test/src/editfns-tests.el (editfns-tests-styled-print): Fix last change.

(cherry picked from commit 4212b2630f7a9d754810c8c9641e766534b44098)

13 days agoFix some checks in autorevert.el
Michael Albinus [Tue, 4 Feb 2025 13:32:46 +0000 (14:32 +0100)]
Fix some checks in autorevert.el

* lisp/autorevert.el (auto-revert-handler): Rework checks.
(auto-revert-handler): Don't run `vc-refresh-state' in
`auto-revert-tail-mode'.

(cherry picked from commit 2b1c25e62b3ff1718cfebda9d0e6b670c903b4cd)

13 days agoDon't use obsolete In-Reply-To format in messages (Bug#64454)
Andrew G Cohen [Wed, 5 Jul 2023 07:21:16 +0000 (15:21 +0800)]
Don't use obsolete In-Reply-To format in messages (Bug#64454)

When creating a new message, message-send-mail uses an obsolete format
for the In-Reply-To header that includes additional information about
the originating message.  This patch changes the default to use the
rfc5322 approved format, but allow the obsolete format through a
defcustom.

* lisp/gnus/message.el (message-make-in-reply-to): Return only the
message-id of the originating message (the default) unless the new
custom variable message-header-use-obsolete-in-reply-to is non-nil.
* doc/misc/message.texi: Document the new custom variable
message-header-use-obsolete-in-reply-to.
* etc/NEWS: Update NEWS.

(cherry picked from commit 2eb6171ec96eac0c78cf20b3003fcbcb1206c8c7)

13 days agoAdd inhibit-auto-revert macro
Michael Albinus [Tue, 4 Feb 2025 13:09:52 +0000 (14:09 +0100)]
Add inhibit-auto-revert macro

* doc/lispref/backups.texi (Reverting):
Add inhibit-auto-revert-buffers and inhibit-auto-revert.

* etc/NEWS: Add inhibit-auto-revert-buffers and inhibit-auto-revert.
Fix typos.

* lisp/autorevert.el (inhibit-auto-revert-buffers): New variable.
(inhibit-auto-revert): New macro.
(auto-revert-active-p, auto-revert-handler):
Check `inhibit-auto-revert-buffers'.

* lisp/dired.el (dired--inhibit-auto-revert): Remove.
(dired-buffer-stale-p): Don't set it.
(dired-map-over-marks, dired-internal-do-deletions):
Use `inhibit-auto-revert.

* test/lisp/autorevert-tests.el
(auto-revert-test08-auto-revert-inhibit-auto-revert)
(auto-revert-test08-auto-revert-inhibit-auto-revert-remote): New tests.

(cherry picked from commit 9597881592049509d62f91139316ac0eba2fb19d)

13 days ago; * test/src/editfns-tests.el (editfns-tests-styled-print): New test.
Eli Zaretskii [Tue, 4 Feb 2025 12:18:38 +0000 (14:18 +0200)]
; * test/src/editfns-tests.el (editfns-tests-styled-print): New test.

(cherry picked from commit 40e38a681dafb02f71d741338e9c3c5ff99c734e)

13 days agoEglot: avoid 'null' as params to 'shutdown' request (bug#66144)
João Távora [Tue, 4 Feb 2025 12:02:06 +0000 (12:02 +0000)]
Eglot: avoid 'null' as params to 'shutdown' request (bug#66144)

Doing so confuses some servers.  It used to be needed for the
gopls server, but according to
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66144#32
that has been fixed.

Thanks to Javier Olaechea <pirata@gmail.com>

* lisp/progmodes/eglot.el (eglot-shutdown): Use eglot--{}.

(cherry picked from commit 164da071e07cf162bfe166908dedc82da44ef634)

13 days ago; Update link to picons database
Stefan Kangas [Mon, 3 Feb 2025 22:51:15 +0000 (23:51 +0100)]
; Update link to picons database

* lisp/gnus/gnus-art.el (gnus-picon-databases): Fix broken link.

(cherry picked from commit 73a45ce7206a107695b2b4d9761e249edd7502e9)

13 days agoFix OpenBSD compilation (bug#76009)
Manuel Giraud [Mon, 3 Feb 2025 15:57:58 +0000 (16:57 +0100)]
Fix OpenBSD compilation (bug#76009)

* configure.ac: Remove a bogus LD_SWITCH_SYSTEM for OpenBSD.

(cherry picked from commit c4a67a405072601b9d7dd95dc94c0b402e1e0ae6)

13 days ago(save-place-abbreviate-file-names): Don't eagerly load alist (bug#75730)
Stefan Monnier [Mon, 3 Feb 2025 21:33:39 +0000 (16:33 -0500)]
(save-place-abbreviate-file-names): Don't eagerly load alist (bug#75730)

Change the way we handle `save-place-abbreviate-file-names` such that
this preference is applied lazily when we load the alist, rather than
eagerly when we define it (which forced the alist to be loaded before we
needed it).

* lisp/saveplace.el (save-place-load-alist-from-file): Use `unless`,
`when`, and `with-temp-buffer` to hopefully help readability.
Call `save-place--normalize-alist`.
(save-place--normalize-alist): New function extracted from the setter
of `save-place-abbreviate-file-names`.
(save-place-abbreviate-file-names): Use it.
(save-place-alist-to-file): Use `with-temp-buffer`.

(cherry picked from commit f3ac16b3cc5778041332bb46f819a51e8b697099)

13 days agoFix GC-related crashes in styled_format (bug#75754)
Pip Cet [Mon, 3 Feb 2025 20:40:34 +0000 (20:40 +0000)]
Fix GC-related crashes in styled_format (bug#75754)

This approach ensures we don't use an SSDATA pointer after GC, and
that no Lisp callback code can modify the format string while we're
working on it.

* src/editfns.c (styled_format): Operate on a copy of the format
string rather than the original.  Ensure final NUL byte is copied.

(cherry picked from commit 14ebe4d5dbd4e6637de227c8561aab22cf4b632c)

13 days ago* lisp/emacs-lisp/track-changes.el (track-changes-fetch): Fix bug#75906
Stefan Monnier [Mon, 3 Feb 2025 20:50:36 +0000 (15:50 -0500)]
* lisp/emacs-lisp/track-changes.el (track-changes-fetch): Fix bug#75906

(cherry picked from commit 1c3a8bc9b51cf89fc1eff181d39941d7f0c7b2e2)

13 days ago; Skip commit b5316e1ddb728ab7502e2b2fffcc84e9c47316dd
Eshel Yaron [Sun, 9 Feb 2025 08:02:02 +0000 (09:02 +0100)]
; Skip commit b5316e1ddb728ab7502e2b2fffcc84e9c47316dd

13 days agoFix -nw sessions on MS-Windows
Eli Zaretskii [Mon, 3 Feb 2025 16:36:11 +0000 (18:36 +0200)]
Fix -nw sessions on MS-Windows

* src/w32console.c (w32con_clear_end_of_line): Set the space
glyphs' frame to NULL.
(w32con_write_glyphs): Handle face_id_frame == NULL, when called
from 'w32con_clear_end_of_line'.
(tty_draw_row_with_mouse_face): Adjust to changes in term.c.

(cherry picked from commit a22e971a119dfd1385fe38d6f594bccfe8911152)

13 days ago; Don't use HTTPS in HTTP-specific example
Stefan Kangas [Mon, 3 Feb 2025 11:37:06 +0000 (12:37 +0100)]
; Don't use HTTPS in HTTP-specific example

* doc/misc/org.org (External Links): Change HTTP example to use HTTP.
Changing it to HTTPS has been done before, but it's a mistake.  To avoid
making this mistake again, change the URL to orgmode.org to make it more
similar to the example on the next line, thereby contrasting the two.

(cherry picked from commit a3b3083081299049b2ac2333d078c9cac62f2be4)

13 days agoAvoid ln(10) expression in calc units definition
Ulrich Müller [Sat, 1 Feb 2025 22:10:53 +0000 (23:10 +0100)]
Avoid ln(10) expression in calc units definition

* lisp/calc/calc-ext.el (calc-init-extensions): Autoload calc-math
for math-ln-10.
* lisp/calc/calc-units.el (math-standard-units): Use new ln10
constant instead of ln(10) in the decibel definition.
(math-find-base-units-rec): Allow ln10 in expression.
(math-to-standard-rec): Recognize the ln10 constant.  (Bug#75861)

(cherry picked from commit 1639ad2814ae100c9f878a1388eb9ffc9d208b07)

13 days agoBetter NaN handling in proced-tests.el
Michael Albinus [Mon, 3 Feb 2025 11:51:48 +0000 (12:51 +0100)]
Better NaN handling in proced-tests.el

* test/lisp/proced-tests.el (proced--cpu-at-point): Make it more robust.
(proced--assert-process-valid-cpu-refinement):
Handle `ert-test-skipped' signal.

(cherry picked from commit fbc13ba9ccf4590ccd15dafa35d3872807af9cbd)

13 days agoFix padding when using which-key-setup-side-window-right
Robert Pluim [Sun, 2 Feb 2025 12:33:37 +0000 (13:33 +0100)]
Fix padding when using which-key-setup-side-window-right

* lisp/which-key.el (which-key--pad-column): Insert zero padding
spaces when the description string is longer than the column
width.  (Bug#75765)

(cherry picked from commit a7f34a532cf7d99dac58bd7187f7ad82c1e4d789)

13 days agoImprove documentation of 'display-monitor-attributes-
Eli Zaretskii [Sun, 2 Feb 2025 13:58:18 +0000 (15:58 +0200)]
Improve documentation of 'display-monitor-attributes-

* doc/lispref/frames.texi (Multiple Terminals):
* lisp/frame.el (display-monitor-attributes-list): Better
documentation of what the 'source' key means on X.  (Bug#75936)

(cherry picked from commit 6d7e7899d84600de3aa4bb5e4cb4013e48f7a8b5)

13 days agoFix merge
Eshel Yaron [Sun, 9 Feb 2025 07:59:31 +0000 (08:59 +0100)]
Fix merge

2 weeks agoHandle mouse highlighting in the presence of tty child frames
Gerd Möllmann [Sun, 2 Feb 2025 14:09:52 +0000 (15:09 +0100)]
Handle mouse highlighting in the presence of tty child frames

* src/term.c (tty_draw_row_with_mouse_face): Draw only parts
of the highlighted text that are not covered by other frames.

(cherry picked from commit a8e85243790b6ab9b9e261c77ddfdc65a9867069)

2 weeks ago; time-stamp: documentation, tests, NEWS
Stephen Gildea [Mon, 3 Feb 2025 04:14:40 +0000 (20:14 -0800)]
; time-stamp: documentation, tests, NEWS

* lisp/time-stamp.el (time-stamp-pattern, time-stamp-count): Document
how to update different time stamps on multiple lines.
* doc/emacs/files.texi (Time stamps): Add an example showing a time
stamp at the end of a file.
* etc/NEWS: Announce time-stamp format additions.
* test/lisp/time-stamp-tests.el: More title-case tests.

(cherry picked from commit 7f10d2680be16219cbde78434836b0befce3a0b3)

2 weeks agoRun erc-services-regain-mode callback on a timer
F. Jason Park [Fri, 31 Jan 2025 03:07:00 +0000 (19:07 -0800)]
Run erc-services-regain-mode callback on a timer

* lisp/erc/erc-services.el (erc-services-regain-timeout-seconds): New
variable.
(erc-services-regain-mode): Mention CertFP in doc string.
(erc--nickname-in-use-make-request): Ensure the 900 RPL_LOGGEDIN
callback always runs after `erc-services-regain-timeout-seconds', even
when SASL isn't being used.
* test/lisp/erc/erc-scenarios-services-misc.el
(erc-scenarios-services-misc--regain-command/oftc): New test.
* test/lisp/erc/resources/services/regain/taken-regain-oftc.eld: New
file.

(cherry picked from commit a62a26239780684d481533a57d12de520b737f9b)

2 weeks ago; Remove obsolete :options value from erc-mode-hook
F. Jason Park [Sun, 2 Feb 2025 01:57:56 +0000 (17:57 -0800)]
; Remove obsolete :options value from erc-mode-hook

* lisp/erc/erc.el (erc-mode-hook): Remove `erc-add-scroll-to-bottom'
from :options list because the function has been deprecated.

(cherry picked from commit fb53de0c06651ed9662610790b3c2938a314c468)

2 weeks agoAnnounce XINERAM and XRANDR in 'system-configuration-features'
Eli Zaretskii [Sun, 2 Feb 2025 14:06:04 +0000 (16:06 +0200)]
Announce XINERAM and XRANDR in 'system-configuration-features'

* configure.ac (emacs_config_features): Add XINERAMA and XRANDR.
(Bug#75936)

(cherry picked from commit 669bb2eaf535728c58899ab56f0f7d5bdd3747c0)

2 weeks agoImprove format-seconds on negative args
Paul Eggert [Sun, 2 Feb 2025 06:20:04 +0000 (22:20 -0800)]
Improve format-seconds on negative args

* lisp/calendar/time-date.el (format-seconds):
Work better with negative seconds (Bug#75849).
* test/lisp/calendar/time-date-tests.el (test-format-seconds): Test it.

(cherry picked from commit 6b40dbda6ad6d677c69263785ff4db7010840b6e)

2 weeks agoImprove malloc Lisp alignment commentary
Paul Eggert [Sun, 2 Feb 2025 06:20:04 +0000 (22:20 -0800)]
Improve malloc Lisp alignment commentary

Prompted by a private email from Pip Cet.

(cherry picked from commit 7ac05c33b182ce3f3bd26b730a9c87ad4ec8cdd5)

2 weeks agoFix mouse pointer inside mouse-face on text with 'pointer' property
Eli Zaretskii [Sun, 2 Feb 2025 06:23:02 +0000 (08:23 +0200)]
Fix mouse pointer inside mouse-face on text with 'pointer' property

* src/dispnew.c (gui_update_window_end): Don't consider mouse face
overwritten.
* src/xdisp.c (show_mouse_face): Accept an additional argument;
redefine the mouse cursor only if that argument is 'true'.  All
callers changed.  (Bug#75931)

(cherry picked from commit 354b2907fce6a4ce9f5e8ea0faf69974e21e749b)

2 weeks agoFix hiding tty cursor for overlapping children
Gerd Möllmann [Sun, 2 Feb 2025 04:39:47 +0000 (05:39 +0100)]
Fix hiding tty cursor for overlapping children

* src/dispnew.c (is_cursor_obscured): If selected frame is in the
z-order of the root frame, use that, otherwise use the root frame.

(cherry picked from commit 42f1318e6579f94b90ef101f3f03ca65fb229262)

2 weeks agoOmit 2 ‘volatile’s in internal_lisp_condition_case
Paul Eggert [Sat, 1 Feb 2025 22:09:06 +0000 (14:09 -0800)]
Omit 2 ‘volatile’s in internal_lisp_condition_case

* src/eval.c (internal_lisp_condition_case): Omit an unnecessary
‘volatile’ and an unnecessary pointer-to-volatile local var.
Perhaps these were needed in previous versions of Emacs, or to
pacify older versions of GCC when using --enable-gcc-warnings,
but they are not needed to pacify current GCC.

(cherry picked from commit c91c591f0f0cc774647c32bdcf05bb3a9551e340)

2 weeks ago; Fix last change.
Eli Zaretskii [Sat, 1 Feb 2025 20:08:38 +0000 (22:08 +0200)]
; Fix last change.

(cherry picked from commit 3ae7c9069fa9320ce2cff5b421dc8d9d4c4b8430)

2 weeks agoAdd missing custom :set to 'savehist-autosave-interval'
shipmints [Sat, 25 Jan 2025 18:12:56 +0000 (13:12 -0500)]
Add missing custom :set to 'savehist-autosave-interval'

* lisp/savehist.el (savehist-autosave-interval): Correctly
reset 'savehist-timer' when 'savehist-autosave-interval' changes
via setopt or a Customize command.  (Bug#75834)

(cherry picked from commit c7889d0545d5e684fc5cec5d50e249ab9c24da44)

2 weeks agoAdd auto save timer to save-place (bug#75837)
shipmints [Sat, 25 Jan 2025 19:04:51 +0000 (14:04 -0500)]
Add auto save timer to save-place (bug#75837)

* lisp/saveplace.el (save-place-autosave-interval):
New user option 'save-place-autosave-interval' which defaults to nil,
and has a custom :set to manage the timer.  Add
'save-place--manage-timer' to enable or cancel the timer if the mode is
enabled and 'save-place-autosave-interval' is non-nil.  Amend
'save-place-mode' to invoke save-place--manage-timer.  Add
'save-place--cancel-timer'.  Add 'save-place--autosave'.

(cherry picked from commit 1292b64216f636bacea7fedf578b373f03affdd8)

2 weeks agoMinor Tramp changes
Michael Albinus [Sat, 1 Feb 2025 17:52:13 +0000 (18:52 +0100)]
Minor Tramp changes

* doc/misc/tramp.texi (External methods): Precise remark on rsync speed.

* lisp/net/tramp-cache.el (tramp-connection-properties): Add link
to the Tramp manual in the docstring.

(cherry picked from commit c5731a74c73678de34ccbacf6977a0e55a239bc8)

2 weeks agoUpdate to Transient v0.8.4-7-gabee7353
Jonas Bernoulli [Sat, 1 Feb 2025 17:14:47 +0000 (18:14 +0100)]
Update to Transient v0.8.4-7-gabee7353

(cherry picked from commit 3a86774ce55e9dc4dc6de01f6aca19fcaa41a5d3)

2 weeks ago; src/pdumper.c (dump_hash_table): Bump CHECK_STRUCTS hash.
Pip Cet [Sat, 1 Feb 2025 17:08:27 +0000 (17:08 +0000)]
; src/pdumper.c (dump_hash_table): Bump CHECK_STRUCTS hash.

(cherry picked from commit 5a5706f943ae2677c6d73fed8de11affd3ef04aa)

2 weeks agoUse #$ for lambda fixups in native compilation data vectors
Pip Cet [Sat, 18 Jan 2025 20:55:18 +0000 (20:55 +0000)]
Use #$ for lambda fixups in native compilation data vectors

The "#$" syntax is recognized by Fread, which substitutes
Vload_file_name in its place.  If Vload_file_name is bound
appropriately, no other value can produce an object EQ to the one
produced by "#$".

We use this to check the data vector for entries that we know should
have been initialized: if the value is still equal to what we bound
Vload_file_name to when it was read, it wasn't initialized, and we
abort.

* lisp/emacs-lisp/comp.el (comp--#$): New defvar.
(comp--finalize-container): Use it.
* src/comp.c (ABI_VERSION): Bump.
(emit_static_object): Ensure 'comp--#$' prints as "#$".
(load_static_obj): Ensure '#$' reads as Vcomp__hashdollar.
(check_comp_unit_relocs): Adjust assertion.
(syms_of_comp): Define 'comp--#$'.
* src/pdumper.c (dump_do_dump_relocation): Adjust assertion.

(cherry picked from commit 4eabfd68c91185909be307435e5db8b8f0fb4102)

2 weeks ago; * lisp/progmodes/etags.el (tags-verify-table): Improve comment (bug#75946).
Eli Zaretskii [Sat, 1 Feb 2025 13:44:47 +0000 (15:44 +0200)]
; * lisp/progmodes/etags.el (tags-verify-table): Improve comment (bug#75946).

(cherry picked from commit 20e3959dc37685334579394b320ab93f751243fb)

2 weeks agoAvoid infinite questions if TAGS file was removed
Konstantin Kharlamov [Thu, 30 Jan 2025 14:09:48 +0000 (17:09 +0300)]
Avoid infinite questions if TAGS file was removed

When the visited TAGS file was removed, commands that depend on
TAGS, such as auto-completion, may invoke an interactive question
whether a user wants to re-read the file.  From that point on,
the question will be asked over and over, because the file no
longer exists, which results in mtime mismatch and inability to
"fix the mismatch" by reading from the file.  Fix that by simply
ignoring the mismatch if the file no longer exists.
* lisp/progmodes/etags.el (tags-verify-table): Avoid infinite
questions if TAGS file was removed.  (Bug#75946)

(cherry picked from commit eb12b6d153b8ad3f9e3fe23761a98021d8071293)

2 weeks agoFix compilation warnings on Android
Po Lu [Sat, 1 Feb 2025 12:59:24 +0000 (20:59 +0800)]
Fix compilation warnings on Android

* src/alloc.c (pointer_align): Only define if
!USE_ALIGNED_ALLOC.

(cherry picked from commit 532ff6e29df87b9fdc84c56cddd9c587c5895e48)

2 weeks agolisp/progmodes/csharp-mode.el: Fix fontification of typeof (bug#75406).
Jostein Kjønigsen [Mon, 6 Jan 2025 14:08:36 +0000 (15:08 +0100)]
lisp/progmodes/csharp-mode.el: Fix fontification of typeof (bug#75406).

(cherry picked from commit 0ef78b131b4e232f064e370699a7ae2413715a44)

2 weeks ago; Skip commit 3a5aba81ca0739ff3f877a77c41cc0cd5a3c8fc7
Eshel Yaron [Mon, 3 Feb 2025 11:13:35 +0000 (12:13 +0100)]
; Skip commit 3a5aba81ca0739ff3f877a77c41cc0cd5a3c8fc7

2 weeks ago; Skip commit ba2719389515cee54874588d76b9244c17f568d5
Eshel Yaron [Mon, 3 Feb 2025 11:13:23 +0000 (12:13 +0100)]
; Skip commit ba2719389515cee54874588d76b9244c17f568d5

2 weeks ago; Skip commit 89eac993c76b58384e1e5d5ffb7402a8bcdb6290
Eshel Yaron [Mon, 3 Feb 2025 11:13:09 +0000 (12:13 +0100)]
; Skip commit 89eac993c76b58384e1e5d5ffb7402a8bcdb6290