]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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)

3 weeks ago; * lisp/vc/vc-dispatcher.el (vc-finish-logentry): Fix thinko.
Sean Whitton [Fri, 27 Jun 2025 13:18:14 +0000 (14:18 +0100)]
; * lisp/vc/vc-dispatcher.el (vc-finish-logentry): Fix thinko.

(cherry picked from commit e25ee1082f74c65b81ba4a184cfc29b26c2bf3b9)

3 weeks ago'C-u C-x .' clears the fill prefix
Sean Whitton [Fri, 27 Jun 2025 13:14:36 +0000 (14:14 +0100)]
'C-u C-x .' clears the fill prefix

* lisp/textmodes/fill.el (set-fill-prefix): When called
interactively with a prefix argument, clear the fill prefix,
just like how 'C-u C-x C-n' clears the goal column.
* doc/emacs/text.texi (Fill Prefix):
* etc/NEWS: Document the change.

(cherry picked from commit 0c0ac8d48a154779bc349da9fae2a2cf0230ff5d)

3 weeks agoNew user option vc-dir-save-some-buffers-on-revert
Sean Whitton [Fri, 27 Jun 2025 11:39:29 +0000 (12:39 +0100)]
New user option vc-dir-save-some-buffers-on-revert

* lisp/vc/vc-dir.el (vc-dir-save-some-buffers-on-revert):
New user option.
(vc-dir-refresh): Use it.
* etc/NEWS: Document it.

(cherry picked from commit 772099bc9b8043d46154992e1f06d7b4aa9ceccd)

3 weeks ago; * lisp/proced.el (proced-update): Support non-symbol proced-filter values
Phil Sainty [Fri, 27 Jun 2025 06:36:33 +0000 (18:36 +1200)]
; * lisp/proced.el (proced-update): Support non-symbol proced-filter values

Avoid errors like "Wrong type argument: symbolp, ((args . "REGEXP"))"
when `proced-filter' is a list of elementary filters.

(cherry picked from commit d70f1e0cfe5c6cca5c551326bc0fec613a2d683a)

3 weeks agolisp/vc/smerge-mode.el (smerge--refine-highlight-change): Fix misalignment
Stefan Monnier [Thu, 26 Jun 2025 16:55:27 +0000 (12:55 -0400)]
lisp/vc/smerge-mode.el (smerge--refine-highlight-change): Fix misalignment

(cherry picked from commit a002ca79ee7f536cb2293af1c7e712a251638fbf)

3 weeks agoFix *Help* text when a command is bound to a single key
Eli Zaretskii [Thu, 26 Jun 2025 14:39:19 +0000 (17:39 +0300)]
Fix *Help* text when a command is bound to a single key

* lisp/help-fns.el (help-fns--key-bindings): Don't insert
redundant period.  (Bug#78905)

(cherry picked from commit 80cb688b04b11a0f2291a3dfb26c16febfdea4cd)

3 weeks agoWhen making a readable page in EWW, include the <title> and similar tags
Jim Porter [Tue, 17 Jun 2025 16:11:55 +0000 (09:11 -0700)]
When making a readable page in EWW, include the <title> and similar tags

* lisp/net/eww.el (eww--walk-readability, eww-readable-dom): New
functions.
(eww-display-html): Call 'eww-readable-dom'.
(eww-readable): Call 'eww-readable-dom'.  Don't copy over 'eww-data'
properties that our new readable page can handle on its own.
(eww-score-readability): Rewrite in terms of 'eww--walk-readability'.
Make obsolete.
(eww-highest-readability): Make obsolete.

* test/lisp/net/eww-tests.el (eww-test--lots-of-words)
(eww-test--wordy-page): New variables...
(eww-test/readable/toggle-display): ... use them.
(eww-test/readable/default-readable): Make sure that the readable page
includes the <title> and <link> tags (bug#77299).

(cherry picked from commit 2bdcf0250acecdb0719203ae711aedf5baad1783)

3 weeks agoFix yaml-ts-mode comment-start-skip to improve commenting/uncommenting
James Cherti [Tue, 24 Jun 2025 17:25:40 +0000 (13:25 -0400)]
Fix yaml-ts-mode comment-start-skip to improve commenting/uncommenting

* lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode): Fix 'comment-start-skip'
value to resolve an issue when commenting/uncommenting using the
'comment-or-uncomment-region' function.  The previous 'comment-start-skip'
value left some "-" uncommented after commenting and uncommenting
multiple YAML indented blocks (bug#78892).

Copyright-paperwork-exempt: yes
(cherry picked from commit faae9f572ab3027c46800575a12a72c8c0eee7c1)

3 weeks agoAdd alternative "ruby-lsp" to eglot-server-programs.
Juri Linkov [Wed, 25 Jun 2025 17:07:17 +0000 (20:07 +0300)]
Add alternative "ruby-lsp" to eglot-server-programs.

* lisp/progmodes/eglot.el (eglot-server-programs):
Add "ruby-lsp" to eglot-alternatives for ruby-mode and ruby-ts-mode.
https://shopify.github.io/ruby-lsp/editors.html#emacs-eglot

(cherry picked from commit 80f2f07c48c31b5f451254303dfb79e0426b5a33)

3 weeks agoImprove treesit settings for python-ts-mode (bug#73404).
Juri Linkov [Wed, 25 Jun 2025 16:57:05 +0000 (19:57 +0300)]
Improve treesit settings for python-ts-mode (bug#73404).

* lisp/progmodes/python.el (python--thing-settings):
For the 'sexp' thing use all nodes except top-level
grouping nodes, comments and parens.  Add the 'list' thing.
(python-ts-mode): Use setq-local for treesit-thing-settings.
Modify 'forward-sexp-function' and 'treesit-sexp-thing'
after calling 'treesit-major-mode-setup'.

(cherry picked from commit f3c755129f7d77bd6e18f5005f3c4034c170ea25)

3 weeks agoFix usage of 'treesit-defun-type-regexp' in treesit-tests.
Juri Linkov [Wed, 25 Jun 2025 16:45:54 +0000 (19:45 +0300)]
Fix usage of 'treesit-defun-type-regexp' in treesit-tests.

* test/src/treesit-tests.el (treesit--ert-test-defun-navigation):
Replace 'treesit-defun-type-regexp' with
'(or treesit-defun-type-regexp 'defun)' that fixes the tests
for ts-modes that set up the 'defun' thing instead of
'treesit-defun-type-regexp'.

(cherry picked from commit 789a6b969345d6f9e0c8604bff8618d20a6cf536)

3 weeks agoFix 'insert-directory' in Turkish language-environment
Eli Zaretskii [Wed, 25 Jun 2025 16:17:59 +0000 (12:17 -0400)]
Fix 'insert-directory' in Turkish language-environment

* lisp/files.el (insert-directory-clean, insert-directory): Use
case-sensitive search for "//DIRED//" and similar strings.
(Bug#78894)

(cherry picked from commit e68ad70af6d621895016548b6929e42b8a743a93)

3 weeks agoAttempt to fix initialization of startup variables on Android
Po Lu [Wed, 25 Jun 2025 16:02:11 +0000 (00:02 +0800)]
Attempt to fix initialization of startup variables on Android

* lisp/cus-start.el (standard): Revert last change if (featurep
'android), as Android systems perform dumping during the
initialization of the first user session.

(cherry picked from commit 704832f41b9ebf1cb2bef5f8cba4ab00fa31520f)

3 weeks agoImprove discoverability of using dumb-emacs-ansi terminal type
Sean Whitton [Wed, 25 Jun 2025 15:21:49 +0000 (16:21 +0100)]
Improve discoverability of using dumb-emacs-ansi terminal type

* doc/emacs/misc.texi (Interactive Shell, Shell Options):
* lisp/comint.el (comint-terminfo-terminal): Mention setting
comint-terminfo-terminal to "dumb-emacs-ansi" when the system's
terminfo database contains a definition for that terminal type.

(cherry picked from commit d05b59c8be5f350497ca142bc94ade23c568ad15)

3 weeks agoFix job control in remote shell
Michael Albinus [Wed, 25 Jun 2025 07:32:20 +0000 (09:32 +0200)]
Fix job control in remote shell

* lisp/net/tramp-sh.el (tramp-methods) <rsync>:
Adapt `tramp-direct-async' argument.  (Bug#71050, Bug#71259)

(cherry picked from commit f805f51373217a415015c684cc9d4659dcad12d4)

3 weeks agoAllow automatically delete non-existent projects. (Bug#77566)
Elías Gabriel Pérez [Wed, 9 Apr 2025 04:30:28 +0000 (22:30 -0600)]
Allow automatically delete non-existent projects. (Bug#77566)

* etc/NEWS: Announce changes.
* lisp/progmodes/project.el (project-prune-zombie-projects): New
user option.
(project-prune-zombies-default): New function.
(project-forget-zombie-projects): Rework.
(project--ensure-read-project-list, project-prompt-project-dir)
(project-prompt-project-name): Call
'project-forget-zombie-projects' but inhibit its message.

(cherry picked from commit 6b078013f19e9e2ee4e7ac8bf5d22fb0b8989035)

3 weeks agocus-start.el: Fix bug#78637
Stefan Monnier [Tue, 24 Jun 2025 22:16:04 +0000 (18:16 -0400)]
cus-start.el: Fix bug#78637

* lisp/cus-start.el <toplevel>: Test `dump-mode` rather than
`after-init-time` for `custom-delayed-init-variables`.

(cherry picked from commit 189ae7b1ed1a243db815560fffa71e9b8771ecb4)

3 weeks ago; Skip commit b687f02a734ffd965cba3b140805f4c2c82358e6
Eshel Yaron [Wed, 23 Jul 2025 19:15:54 +0000 (21:15 +0200)]
; Skip commit b687f02a734ffd965cba3b140805f4c2c82358e6

3 weeks agoLoad site-start.el before early-init.el
Sean Whitton [Tue, 24 Jun 2025 16:33:39 +0000 (17:33 +0100)]
Load site-start.el before early-init.el

* lisp/startup.el (command-line): Load site-start.el before
early-init.el.
(site-run-file):
* doc/lispref/os.texi (Startup Summary, Init File):
* etc/NEWS: Document the change.

(cherry picked from commit 192066d3b92a64a894def9dd9d5bd3040cc257ba)

3 weeks ago* Make native comp use lexbinding for sync compilations (bug#78818)
Andrea Corallo [Mon, 23 Jun 2025 19:56:38 +0000 (21:56 +0200)]
* Make native comp use lexbinding for sync compilations (bug#78818)

* lisp/emacs-lisp/comp.el (comp--final): Use lexical-binding in the temp file.

(cherry picked from commit baf0c8220261a71da4b58806eb41dd014709561e)

3 weeks agoFix Tramp scripts
Michael Albinus [Mon, 23 Jun 2025 16:00:08 +0000 (18:00 +0200)]
Fix Tramp scripts

* lisp/net/tramp-sh.el (tramp-shell-file-name-all-completions)
(tramp-bundle-read-file-names): Fix scripts.

(cherry picked from commit 991d3ad80a37a1cf8951d2607eb5f7544f968e93)

3 weeks agoCC Mode: Remove workarounds for missing "\_<", "\_>" in XEmacs
Alan Mackenzie [Fri, 20 Jun 2025 21:13:45 +0000 (21:13 +0000)]
CC Mode: Remove workarounds for missing "\_<", "\_>" in XEmacs

Also start using `symbols' as the PAREN argument to regexp-opt.

lisp/progmodes/cc-defs.el (c-make-keywords-re): Simplify,
remove the redundant `appendable' value of the ADORN parameter,
use the `symbols' value of the PAREN argument to regexp.
(c-emacs-features): Test that "\_<" and "\_>" work in regexps
before allowing CC Mode to start.

lisp/progmodes/cc-engine.el (c-looking-at-decl-block): When
GOTO-START is set, leave point at the _last_ Java annotation,
if any.  Clarify this in the doc string.
(c-guess-basic-syntax CASE 5G): Replace a not needed t
GOTO-START argument to c-looking-at-decl-block with nil.

lisp/progmodes/cc-langs.el (c-make-mode-syntax-table): Make the
syntax of ?@ in Java Mode symbol for processing annotations.
(c-opt-identifier-concat-key, c-opt-identifier-prefix-key)
(c-opt-after-id-concat-key, c-identifier-key)
(c-cpp-message-directives-re, c-cpp-include-key, c-pack-key)
(c-brace-stack-thing-key, c-brace-stack-no-semi-key): Replace
the `appendable' value of the ADORN argument to
c-make-keywords-re with t.
(c-annotation-re): New lang const and lang var.
(c-keywords-obarray): Replace an explicit (apply 'nconc (mapcar
... )) with c--mapcan, now that the obscure bug with mapcan in
Emacs has been resolved.

lisp/progmodes/cc-align.el (c-lineup-gnu-DEFUN-intro-cont)
(c-lineup-java-throws, c-snug-do-while)
lisp/progmodes/cc-awk.el (c-awk-pre-exp-alphanum-kwd-re)
(c-awk-after-if-for-while-condition-p)
(c-awk-after-function-decl-param-list)
(c-awk-after-continue-token)
(c-awk-after-rbrace-or-statement-semicolon)
(awk-font-lock-keywords)
lisp/progmodes/cc-cmds.el (c-defun-name-1)
lisp/progmodes/cc-engine.el (c-beginning-of-statement-1)
(c-forward-<>-arglist, c-forward-label, c-skip-conditional)
(c-looking-at-c++-lambda-expression, c-add-stmt-syntax)
(c-guess-basic-syntax CASE 11, CASE 12, CASE 13, CASE 15)
(CASE 5C.3, CASE 5D.4, CASE 7D)
lisp/progmodes/cc-fonts.el (c-cpp-matchers)
(c-basic-matchers-before, c-font-lock-declarations)
(c-font-lock-c++-modules, c-simple-decl-matchers)
(c-complex-decl-matchers, c-basic-matchers-after)
lisp/progmodes/cc-langs.el (c-paragraph-start)
(c-stmt-block-only-keywords-regexp)
(c-type-decl-prefix-keywords-key, c-type-decl-prefix-key)
(c-type-decl-suffix-key, c-known-type-key)
(c-enum-clause-introduction-re)
lisp/progmodes/cc-menus.el (cc-imenu-c++-generic-expression)
lisp/progmodes/cc-vars.el (c-make-noise-macro-regexps)
(c-make-macro-with-semi-re): Replace explicit "\<" and "\>"
with "\_<" and "\_>".  Replace explicit specification of
non-'_' character after word end with "\_>".  Replace
concatenation of "\<" and "\>" with regexps with (regexp-opt
... 'symbols).  Use (regexp-opt ... 'symbols) in general.

(cherry picked from commit 1a8e8203a158f6bdc74e38f2cdb3214b6c06b9d8)

3 weeks ago; Skip commit 2b34f38b383533ca659202492870c319fbc7ef41
Eshel Yaron [Wed, 23 Jul 2025 19:01:53 +0000 (21:01 +0200)]
; Skip commit 2b34f38b383533ca659202492870c319fbc7ef41

3 weeks ago; Fix compilation warning in docstring of new function in treesit.el.
Juri Linkov [Mon, 23 Jun 2025 06:54:48 +0000 (09:54 +0300)]
; Fix compilation warning in docstring of new function in treesit.el.

(cherry picked from commit edd18978aaae3ea50478843d0c9ad3441125f82f)

3 weeks agoLink to Tree-sitter parser sources from compatibility report
Peter Oliver [Wed, 11 Jun 2025 17:03:20 +0000 (18:03 +0100)]
Link to Tree-sitter parser sources from compatibility report

* admin/tree-sitter/treesit-admin.el
(treesit-admin--generate-compatibility-report): Add a link to the source
URL (bug#78848).

(cherry picked from commit 438a4cf673b99e43d091bcb02f7ffe5cb71b00b0)

3 weeks agoShow also tagged versions on Tree-sitter compatibility report
Peter Oliver [Wed, 11 Jun 2025 16:34:53 +0000 (17:34 +0100)]
Show also tagged versions on Tree-sitter compatibility report

* admin/tree-sitter/compat-template.html: Accommodate two tables.
* admin/tree-sitter/treesit-admin.el
(treesit-admin--find-latest-compatible-revision): Pass through new arg
REVISION-TYPE.
(treesit-admin--last-compatible-grammar-for-modes): Optionally iterate
over tagged rather than all commits.
(treesit-admin--generate-compatibility-report): Generate a second table,
showing only tagged commits (bug#78848).

(cherry picked from commit 96858b9ced0000e681672369d5507f5890086967)

3 weeks agoNew function treesit--language-git-version-tags
Peter Oliver [Fri, 3 Jan 2025 12:02:50 +0000 (12:02 +0000)]
New function treesit--language-git-version-tags

* lisp/treesit.el (treesit--language-git-version-tags): New function to
  list version tags for a Tree-sitter parser Git repository (bug#78848).

(cherry picked from commit 22db624c0e341035b2be7ecaba0047a2aaf3eff4)

3 weeks ago(smerge-refine-shadow-cursor): New variable and face (bug#78806)
Stefan Monnier [Mon, 16 Jun 2025 11:05:11 +0000 (07:05 -0400)]
(smerge-refine-shadow-cursor): New variable and face (bug#78806)

* lisp/vc/smerge-mode.el (smerge-refine-shadow-cursor): New variable
and face.
(smerge-refine-regions): Add 'cursor-sensor-functions' property
to the covering overlays.
(smerge--refine-at-right-margin-p, smerge--refine-shadow-cursor):
New functions.
(smerge--refine-other-pos): New function, extracted from
smerge-refine-exchange-point'.
(smerge-refine-exchange-point): Use it.
(smerge--refine-highlight-change): Add thin
highlighted space for insertion/deletion positions.

* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect):
Run functions for 'moved' events.  Demote errors.
(cursor-sensor-mode): Adjust docstring accordingly.

* doc/lispref/text.texi (Special Properties) <cursor-sensor-functions>:
Mention the new 'moved' direction.

(cherry picked from commit 08fba517f66794f817c3e6101a80ce3df1798581)

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

3 weeks agoTrim down default completion styles
Eshel Yaron [Wed, 23 Jul 2025 18:29:15 +0000 (20:29 +0200)]
Trim down default completion styles

3 weeks agoDrop soundex.el
Eshel Yaron [Wed, 23 Jul 2025 18:20:49 +0000 (20:20 +0200)]
Drop soundex.el

4 weeks agoFix bootstrap
Eshel Yaron [Sun, 13 Jul 2025 13:11:05 +0000 (15:11 +0200)]
Fix bootstrap

6 weeks agoelisp-mode.el: Fix handling of deleted files
Eshel Yaron [Sun, 29 Jun 2025 08:29:45 +0000 (10:29 +0200)]
elisp-mode.el: Fix handling of deleted files

6 weeks agoDrop printing.el
Eshel Yaron [Sun, 29 Jun 2025 08:29:27 +0000 (10:29 +0200)]
Drop printing.el

6 weeks agoDrop ERC
Eshel Yaron [Fri, 27 Jun 2025 20:46:39 +0000 (22:46 +0200)]
Drop ERC

6 weeks agoUpdate lisp/ldefs-boot.el
Eshel Yaron [Thu, 26 Jun 2025 12:20:01 +0000 (14:20 +0200)]
Update lisp/ldefs-boot.el

6 weeks agoSupport 's' in 'C-h m' help buffers
Eshel Yaron [Thu, 26 Jun 2025 12:17:09 +0000 (14:17 +0200)]
Support 's' in 'C-h m' help buffers

6 weeks agoDrop pcvs-*.el
Eshel Yaron [Wed, 25 Jun 2025 17:44:18 +0000 (19:44 +0200)]
Drop pcvs-*.el

7 weeks agoscope.el: Handle 'autoload'
Eshel Yaron [Wed, 25 Jun 2025 15:45:05 +0000 (17:45 +0200)]
scope.el: Handle 'autoload'

7 weeks agoWhen navigating to anchor targets in EWW, retain 'eww-data' properties
Jim Porter [Sat, 21 Jun 2025 19:10:59 +0000 (12:10 -0700)]
When navigating to anchor targets in EWW, retain 'eww-data' properties

Previously, navigating to an in-page anchor target would clear
'eww-data', removing many important properties like the original source
and the DOM.  Among other things, this prevented enabling/disabling
readable mode.

* lisp/net/eww.el (eww-follow-link): Copy previous 'eww-data'.

(cherry picked from commit e5ad9ae10090ab34a4d71139e6f928c11f0c029c)

7 weeks agoTramp: Cache also `file-executable-p' in `file-name-all-completions'
Michael Albinus [Sun, 22 Jun 2025 15:29:52 +0000 (17:29 +0200)]
Tramp: Cache also `file-executable-p' in `file-name-all-completions'

* lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-regexp):
Fix comment.

* lisp/net/tramp-sh.el (tramp-perl-file-name-all-completions):
Cache also `file-executable-p'.  Suggested by <mail@knazarov.com>.
(tramp-shell-file-name-all-completions): New script.
(tramp-bundle-read-file-names): Fix for special characters.  Cache
also `file-executable-p'.
(tramp-sh-handle-file-name-all-completions): Unify different cases.

* lisp/net/tramp.el (with-tramp-suspended-timers, without-remote-files):
Fix debug spec.

(cherry picked from commit 87fc539a0b4d7f84d1697e8479158b30c09b4e49)

7 weeks agoFix 'c-ts-mode' indentation when the style is defined as a function
Eli Zaretskii [Sun, 22 Jun 2025 08:16:53 +0000 (11:16 +0300)]
Fix 'c-ts-mode' indentation when the style is defined as a function

* lisp/progmodes/c-ts-mode.el (c-ts-mode, c++-ts-mode): Handle the
case where 'c-ts-mode-indent-style' is a function.  (Bug#78814)

(cherry picked from commit 081c1aae992549bc9ef6f0f85c4d4cf6a8fe84cb)

7 weeks ago; Skip commit e66428a0d2d5acf13c659b127bb0ace79122dc1a
Eshel Yaron [Tue, 24 Jun 2025 06:29:07 +0000 (08:29 +0200)]
; Skip commit e66428a0d2d5acf13c659b127bb0ace79122dc1a

7 weeks ago; Skip commit be0b44e4ed972de3b761da16ee571f928579841f
Eshel Yaron [Tue, 24 Jun 2025 06:29:05 +0000 (08:29 +0200)]
; Skip commit be0b44e4ed972de3b761da16ee571f928579841f

7 weeks ago(refactor-apply-edits-dtrt): New function.
Eshel Yaron [Tue, 24 Jun 2025 06:27:46 +0000 (08:27 +0200)]
(refactor-apply-edits-dtrt): New function.

7 weeks agoelisp-mode.el: Support renaming symbol across project.
Eshel Yaron [Mon, 23 Jun 2025 17:42:23 +0000 (19:42 +0200)]
elisp-mode.el: Support renaming symbol across project.

7 weeks ago; * lisp/vc/vc.el (vc-checkin): Fix thinko.
Sean Whitton [Sat, 21 Jun 2025 18:03:54 +0000 (19:03 +0100)]
; * lisp/vc/vc.el (vc-checkin): Fix thinko.

(cherry picked from commit c916f816e0f12f876868f9ffa1be4b070933bb6f)

7 weeks ago* test/infra/gitlab-ci.yml (test-eglot): Fix EMACS_EXTRAOPT.
Michael Albinus [Sat, 21 Jun 2025 14:27:46 +0000 (16:27 +0200)]
* test/infra/gitlab-ci.yml (test-eglot): Fix EMACS_EXTRAOPT.

(cherry picked from commit c98a74cd87652daf30204816d9e602f0965cd91b)

7 weeks ago; * lisp/progmodes/python.el (treesit-thing-settings): Defvar.
Eli Zaretskii [Sat, 21 Jun 2025 10:23:51 +0000 (06:23 -0400)]
; * lisp/progmodes/python.el (treesit-thing-settings): Defvar.

(cherry picked from commit f1696c3c27e92d889e6f8c816b8f15bd308d8c77)

7 weeks agoAvoid rebuilding a static alist inside a loop
Manuel Giraud [Fri, 13 Jun 2025 09:25:15 +0000 (11:25 +0200)]
Avoid rebuilding a static alist inside a loop

* lisp/calendar/diary-lib.el (diary-mark-entries-1): Build
months-alist outside of the loop.  (Bug#78779)

(cherry picked from commit d7e55558759dc7be0c38a8c8d508be1909b20aa4)

7 weeks ago; Skip commit 1406e583fe63c6d0731a731cf67e574be0d8d4d8
Eshel Yaron [Sun, 22 Jun 2025 08:10:58 +0000 (10:10 +0200)]
; Skip commit 1406e583fe63c6d0731a731cf67e574be0d8d4d8

7 weeks ago; Skip commit 60fbeda771639ded68ffd0666df340c7a06cafcf
Eshel Yaron [Sun, 22 Jun 2025 08:10:43 +0000 (10:10 +0200)]
; Skip commit 60fbeda771639ded68ffd0666df340c7a06cafcf

7 weeks agoFix setting custom 'c++-ts-mode' indent style
Eli Zaretskii [Sat, 21 Jun 2025 09:10:54 +0000 (12:10 +0300)]
Fix setting custom 'c++-ts-mode' indent style

* lisp/progmodes/c-ts-mode.el (c-ts-mode-set-style): Fix a typo.
(Bug#78814)

(cherry picked from commit e379f14193982ef500d8806386e26155ff780290)

7 weeks agoAvoid segfault when profiling Lisp programs with threads
Eli Zaretskii [Sat, 21 Jun 2025 08:53:24 +0000 (11:53 +0300)]
Avoid segfault when profiling Lisp programs with threads

* src/eval.c (backtrace_top): Don't segfault if current_thread is
NULL.  (Bug#76970)

(cherry picked from commit dd95447b05eb2e86e0500d953f43213df028c19a)

7 weeks agoFix byte-compilation of defalias with a constant macro cons pair
Zach Shaftel [Sun, 15 Jun 2025 00:57:21 +0000 (20:57 -0400)]
Fix byte-compilation of defalias with a constant macro cons pair

* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defalias):
Quote the function name in '(macro . function-name), since we eval
it later.
* test/lisp/emacs-lisp/bytecomp-tests.el
(test-eager-load-macro-expand-defalias): New test.
(Bug#78792)

(cherry picked from commit 075ebed98fea274b363d4d015b32edb0a12a9a89)

7 weeks agopython-ts-mode: Improve fontification
Jostein Kjønigsen [Thu, 20 Mar 2025 09:39:31 +0000 (10:39 +0100)]
python-ts-mode: Improve fontification

python--treesit-settings: Fontification based on selectors & code-conventions

- Constructor: Fontified as type, not function-call.
- Typed default parameters
- Fontify kwargs in function calls as property-use. Differentiate from
  variable-use (passed in arguments)

(cherry picked from commit 39721a4d79a6056e09f4d0996f1942eee8e34934)

7 weeks agoFix bold or underline of underscores (bug#78839)
Manuel Giraud [Thu, 19 Jun 2025 14:42:57 +0000 (16:42 +0200)]
Fix bold or underline of underscores (bug#78839)

* lisp/man.el (Man-fontify-manpage): Fix the "_\b_" case.

(cherry picked from commit 00b8d11ac8682749f15ac7125f54f357b8825d86)

7 weeks agoFix 'split-string' when TRIM is used
Eli Zaretskii [Sat, 21 Jun 2025 08:08:05 +0000 (11:08 +0300)]
Fix 'split-string' when TRIM is used

* lisp/subr.el (split-string): Support the case where STRING
begins with a match for SEPARATORS, and a match for SEPARATORS
also matches TRIM.  Doc fix.  (Bug#78690)

* test/lisp/subr-tests.el (subr-test-split-string): New test.

(cherry picked from commit 4607d3e426115ded71f0d8c19e7187ed45c19734)

7 weeks ago; * src/xfaces.c (init_xfaces) <face_attr_sym>: Add :family (bug#78813).
Eli Zaretskii [Sat, 21 Jun 2025 06:44:12 +0000 (09:44 +0300)]
; * src/xfaces.c (init_xfaces) <face_attr_sym>: Add :family (bug#78813).

(cherry picked from commit 8201e7e7a765e2c74076cdddb4fdbe854e672438)

7 weeks ago(peg--merge-error) <guard>: Add missing method
Stefan Monnier [Fri, 20 Jun 2025 23:59:54 +0000 (19:59 -0400)]
(peg--merge-error) <guard>: Add missing method

Also clarify that the package requires at least Emacs-25.

* lisp/progmodes/peg.el (peg--merge-error) <guard>: Add missing method.

(cherry picked from commit df86d10316e0e67c4c49161980b54907ed518f32)

7 weeks agoUse keyword :commit with full hashes for treesit-language-source-alist.
Juri Linkov [Fri, 20 Jun 2025 16:56:01 +0000 (19:56 +0300)]
Use keyword :commit with full hashes for treesit-language-source-alist.

* lisp/treesit.el (treesit-language-source-alist):
Document the format that uses keywords.
(treesit--install-language-grammar-1): Remove args
'revision', 'source-dir', 'cc', 'c++', 'commit'.
Use 'args' to process the keywords, and use the remaining
list as the previous list of arguments.
(treesit--install-language-grammar-1): Let-bind
'treesit--install-language-grammar-full-clone' and
'treesit--install-language-grammar-blobless' to t
when 'commit' is non-nil (bug#78542).

* lisp/progmodes/c-ts-mode.el:
* lisp/progmodes/cmake-ts-mode.el:
* lisp/progmodes/csharp-mode.el:
* lisp/progmodes/dockerfile-ts-mode.el:
* lisp/progmodes/elixir-ts-mode.el:
* lisp/progmodes/go-ts-mode.el:
* lisp/progmodes/heex-ts-mode.el:
* lisp/progmodes/java-ts-mode.el:
* lisp/progmodes/js.el:
* lisp/progmodes/json-ts-mode.el:
* lisp/progmodes/php-ts-mode.el:
* lisp/progmodes/python.el:
* lisp/progmodes/ruby-ts-mode.el:
* lisp/progmodes/rust-ts-mode.el:
* lisp/progmodes/sh-script.el:
* lisp/progmodes/typescript-ts-mode.el:
* lisp/textmodes/css-mode.el:
* lisp/textmodes/html-ts-mode.el:
* lisp/textmodes/markdown-ts-mode.el:
* lisp/textmodes/toml-ts-mode.el:
* lisp/textmodes/yaml-ts-mode.el:
Use the keyword :commit with full hashes instead of tags
in 'treesit-language-source-alist'.

* lisp/treesit-x.el (define-treesit-generic-mode):
Simplify the keyword :copy-queries.
(gitattributes-generic-ts-mode, liquid-generic-ts-mode):
Add keywords :commit and :copy-queries to :source.

* admin/tree-sitter/treesit-admin.el
(treesit-admin--unversioned-treesit-language-source-alist):
Handle :revision and :commit as well.
(treesit-admin--find-latest-compatible-revision):
Process the keywords in the recipe.

(cherry picked from commit 1a76b527ac35de179530249f5defc6646c96129e)

7 weeks agoImprove eglot tests on emba
Michael Albinus [Fri, 20 Jun 2025 16:38:27 +0000 (18:38 +0200)]
Improve eglot tests on emba

* test/infra/gitlab-ci.yml (test-eglot): Use packages company and
yasnippet.

* test/lisp/progmodes/eglot-tests.el (eglot--call-with-timeout):
Skip on emba in case of timeout.  (Bug#78730)

(cherry picked from commit e3660a32c78885b9341531cd1b6a8b7e3e163255)

7 weeks agoRevert "Avoid excessively large backtraces in ert-tests (bug#71988)"
Pip Cet [Fri, 20 Jun 2025 14:03:40 +0000 (14:03 +0000)]
Revert "Avoid excessively large backtraces in ert-tests (bug#71988)"

This reverts commit 0264ab11181b1d49d8f07186599396d503f24d1f.

(cherry picked from commit 1bc86b17768231afcf14e9df08629088dbded428)

7 weeks agoMake tls tests use random port
Robert Pluim [Fri, 20 Jun 2025 10:09:14 +0000 (12:09 +0200)]
Make tls tests use random port

* test/lisp/net/network-stream-tests.el (server-process-filter):
Remove 'message' call.
(make-tls-server): Try random ports until we find one that's
unused and use it.  Adjust all callers.

(cherry picked from commit 1560e9bf66597b3bf7f389ed22ad4524ca89d4e2)

7 weeks ago; Improve previous change
Robert Pluim [Fri, 20 Jun 2025 10:01:59 +0000 (12:01 +0200)]
; Improve previous change

* test/lisp/net/network-stream-tests.el
(network-test--resolve-system-name): Resolve addresses once not
twice.

(cherry picked from commit 04a1a53de19e74e06aba5c05f73aa6b1fdccae4f)

7 weeks agoFix echo-server-with-dns for really broken systems
Robert Pluim [Fri, 20 Jun 2025 09:57:41 +0000 (11:57 +0200)]
Fix echo-server-with-dns for really broken systems

*test/lisp/net/network-stream-tests.el
(network-test--resolve-system-name): Check to see if we get any
address result at all (looking at you macOS).

(cherry picked from commit dcead54ed54d14420f5cee10b0e4a24bba244722)

7 weeks agoFix echo-server-with-dns test
Robert Pluim [Fri, 20 Jun 2025 09:43:13 +0000 (11:43 +0200)]
Fix echo-server-with-dns test

This test wasn't being run because the check for DNS was
inverted.

* test/lisp/net/network-stream-tests.el (echo-server-with-dns):
Use 'skip-when' instead of 'ert-skip'.

(cherry picked from commit 1c168e166df90e830dfdd780accc09630653d92f)

7 weeks agoAvoid excessively large backtraces in ert-tests (bug#71988)
Pip Cet [Mon, 8 Jul 2024 19:50:16 +0000 (19:50 +0000)]
Avoid excessively large backtraces in ert-tests (bug#71988)

* test/lisp/emacs-lisp/ert-tests.el (ert-test-run-tests-batch-expensive):
Temporarily make `cl-print-object' not print out vectors while running
the test.

(cherry picked from commit 0264ab11181b1d49d8f07186599396d503f24d1f)