Commit graph

183429 commits

Author SHA1 Message Date
Andreas Schwab d73c7a442b gnus-icalendar: handle absent DTEND in event
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event-from-ical):
Handle absent DTEND.
2026-09-04 18:11:27 +02:00
Michael Albinus 5ebed5219d Adapt eglot tests on emba
* test/infra/Dockerfile.emba (emacs-eglot): Install rust-src.

* test/infra/gitlab-ci.yml (test-eglot): Extend EMACS_EXTRAOPT.

* test/lisp/progmodes/eglot-tests.el
(eglot-test-rust-completion-exit-function): Don't skip on emba.
2026-09-04 17:50:44 +02:00
Sean Whitton a834ad2ede newcomers-presets: Set some more user options
* etc/themes/newcomers-presets-theme.el (newcomers-presets): Set
set-mark-command-repeat-pop, kill-do-not-save-duplicates,
help-window-select and window-combination-resize.
2026-09-04 16:39:34 +01:00
Juri Linkov 3278d1b0ce * lisp/vc/log-view.el (log-view-file): Add dark background (bug#81740). 2026-09-04 18:36:45 +03:00
Sean Whitton 49c6767723 ; newcomers-presets: Mention using copy-theme-options. 2026-09-04 16:11:26 +01:00
Protesilaos 5d0939c7a1 Use dedicated face for log-view-mode marked entries
* lisp/vc/log-view.el (log-view-marked): New face.
(log-view--mark-entry): Use it (bug#81740).
2026-09-04 14:40:01 +01:00
Sean Whitton c709b66dcb flymake-show-buffer-diagnostics: Fix interactive form
* lisp/progmodes/flymake.el (flymake-show-buffer-diagnostics):
Return just one diagnostic when last-command-event was not a
mouse event (bug#81786).
2026-09-04 14:26:20 +01:00
Sean Whitton 2d5657b9dc Fix closing *Completions* on sole completion of file name
* lisp/minibuffer.el (minibuffer-completion-help): Remove the
completion base from the minibuffer contents before comparing to
a sole completion (bug#81641).
2026-09-04 13:48:41 +01:00
Eli Zaretskii ec581f0da3 ; * doc/lispref/text.texi (Undo): Fix last change. 2026-09-04 14:15:59 +03:00
Helmut Eller 4281de8bcd Document the new undo-list entry kind
* src/buffer.c (buffer-undo-list): Update the docstring.
* doc/lispref/text.texi (buffer-undo-list): Describe the new entry kind.
2026-09-04 09:38:02 +02:00
Helmut Eller cc0f94f357 Less generic error message
* lisp/subr.el (undo--wrap-and-run-primitive-undo): Use "Unexpected
change of region length" instead of "Not yet implemented".
2026-09-04 09:38:01 +02:00
Helmut Eller 1d07d02a75 Improve undo-in-region support for combine-change-calls
* lisp/subr.el (combine-change-calls-1): Use the new 'apply entry
variant for the buffer-undo-list.
(undo--wrap-and-run-primitive-undo): Adjust the undo entries if the
region has moved.
* test/src/undo-tests.el (undo-test-combine-change-calls-4): New test.
2026-09-04 09:38:01 +02:00
Helmut Eller 15aa8dd49f Improve undo-in-region support for diff-unified->context
* lisp/vc/diff-mode.el (diff-unified->context, diff-context->unified):
Use the new 'apply variant for buffer-undo-list entries.
2026-09-04 09:25:24 +02:00
Helmut Eller cb1be3124c Improve undo-in-region for 'apply entries
This patch adds a new variant of 'apply entries for the undo list of the
form: (apply DELTA (BEG . END) FUN-NAME . ARGS).

This similar to the existing (apply DELTA BEG END FUN-NAME . ARGS)
variant.  The difference for the new variant is that FUN-NAME is applied
to the adjusted BEG and END arguments together with ARGS.  This allows
functions to compute positions relative to the adjusted region.

The existing 'apply entry variants remain supported for backward
compatibilty.

* lisp/simple.el (primitive-undo): Call the function for the new 'apply
variant with START and END.
(undo-elt-in-region, undo-adjust-elt, undo-delta): Add support for the
new 'apply entries.
* test/src/undo-tests.el (undo-tests-selective-apply-1)
(undo-tests-selective-apply-2): New tests.
(undo-tests--mark-region, undo-tests--selective-apply)
(undo-tests--undo-delete, undo-tests--undo-insert)
(undo-tests--adjust-markers): New helpers.
2026-09-04 09:24:49 +02:00
Dmitry Gutov 9c003435ca xref.el: Rewrite the introduction text in Commentary
* lisp/progmodes/xref.el:
Rewrite the introduction text in Commentary (bug#81624).
2026-09-04 03:33:43 +03:00
Sean Whitton ab1d6868ed Improve presentation of query-replace-show-preview
* doc/emacs/search.texi (Replace):
* etc/NEWS:
* lisp/replace.el (query-replace-show-preview): Docs
improvements.
(replace-preview-only-replacement): Rename ...
(replace-preview-only-replacement): ... to this.  All uses
changed.
2026-09-03 11:42:04 +01:00
Sean Whitton 507d93ad48 Fix flymake-diagnostics-buffer-mode-map for Emacs 30
* lisp/progmodes/flymake.el
(flymake-diagnostics-buffer-mode-map): Don't bind
'previous-error-this-buffer-no-select' if it's not defined, to
fix Emacs 30 compat (bug#81775).  Bump version to 1.4.7.
2026-09-03 10:50:26 +01:00
Sean Whitton 1d64554f99 Merge from origin/emacs-31
6f230503c8 ; * admin/make-tarball.txt: Don't use a batch process for...
5fdb5e3485 Relax formatting requirements on NEWS when converting to ...
fe4b9df4f4 Adjust generating HTML for historic NEWS
30b2265a01 ; * admin/make-tarball.txt: Publish HTML formatted NEWS.
99f8ed8d46 make-news-html-file: Don’t assume NEWS has local variables
5c5362a3e8 Escape [[ in NEWS when generating HTML via Org
9794fa0d5d elisp-scope.el: Avoid excessive 'trusted-content-p' calls
956875f822 ; * test/lisp/emacs-lisp/crm-tests.el: Fix copyright years.
e8b46219ca Fix choose-completion in CRM with boundaries
e420d0d978 ; Further explain WHEN argument to marking functions obso...
c4d50ea097 Skip all package-vc tests if git is not installed
2026-09-03 10:31:58 +01:00
Sean Whitton 4b239389a0 ; Merge from origin/emacs-31
The following commit was skipped:

d6381e5df9 Show the file name of theme when warning about lexical-bi...
2026-09-03 10:31:58 +01:00
Sean Whitton 322bcba895 Merge from origin/emacs-31
b115e349e3 Avoid assertion violations in 'char-syntax'
2026-09-03 10:31:57 +01:00
Sean Whitton 6f230503c8 ; * admin/make-tarball.txt: Don't use a batch process for HTML gen. 2026-09-03 10:30:26 +01:00
Peter Oliver 5fdb5e3485 Relax formatting requirements on NEWS when converting to HTML
* admin/admin.el (make-news-html-file): Accurately detect blocks
even when not separated by blank lines.

Copyright-paperwork-exempt: yes
2026-09-03 10:28:03 +01:00
Peter Oliver fe4b9df4f4 Adjust generating HTML for historic NEWS
* admin/admin.el (make-news-html-file): If the major version
given has it's own NEWS file, use that.  Understand
non-continuous copyright years.

Copyright-paperwork-exempt: yes
2026-09-03 10:26:19 +01:00
Peter Oliver 30b2265a01 ; * admin/make-tarball.txt: Publish HTML formatted NEWS.
Copyright-paperwork-exempt: yes
2026-09-03 10:03:33 +01:00
Peter Oliver 99f8ed8d46 make-news-html-file: Don’t assume NEWS has local variables
* admin/admin.el (make-news-html-file): Don't error if no "Local
variables" section is found.

Copyright-paperwork-exempt: yes
2026-09-03 10:03:23 +01:00
Peter Oliver 5c5362a3e8 Escape [[ in NEWS when generating HTML via Org
* admin/admin.el (make-news-html-file): Escape [[ with zero
width space.

Copyright-paperwork-exempt: yes
2026-09-03 10:02:56 +01:00
Eli Zaretskii 81f2d9c2d6 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2026-09-03 11:29:01 +03:00
Eli Zaretskii 656980c384 ; * lisp/outline.el (outline-xref): Doc fix. 2026-09-03 11:27:21 +03:00
Roi Martin 23a007cf38 ; * lisp/outline.el (outline-xref): Improve doc string. (Bug#81592) 2026-09-03 11:24:42 +03:00
Michael Albinus 05af306d27 ; Another attempt to fix filenotify-tests.el
* test/lisp/filenotify-tests.el (file-notify-test12-symlinks): Adapt test.
2026-09-03 08:15:04 +02:00
Eli Zaretskii a55e9ccc60 ; * etc/NEWS: Fix wording of a recently-added entry. 2026-09-03 07:32:18 +03:00
Roi Martin 85e8054a09 Implement xref-location-line' for xref-buffer-location'
* lisp/progmodes/xref.el (xref-location-line): New method (bug#81592).
2026-09-03 01:09:27 +03:00
Rahul Martim Juliato 3b721dd39a Let 'query-replace-show-preview' be a function (bug#81583)
Suggested by Juri Linkov <juri@linkov.net>.

* lisp/replace.el (query-replace-show-preview): Drop the values
t and 'both' in favor of the two functions that implement them.
(query-replace-preview-match): Doc fix.
(replace-preview-propertize): Rename from
'replace-preview--propertize' and make it public, so that the
preview functions can be copied and adapted.
(replace-preview-only-replacement, replace-preview-both): New
functions.
(replace-preview--format): Call the value of
'query-replace-show-preview'.
(replace-preview-setup): Preview only if the value is a
function.
* etc/NEWS: Update the entry.
* doc/emacs/search.texi (Replace): Document the new values.
* test/lisp/replace-tests.el (replace-tests--preview)
(replace-tests-preview-cleanup, replace-tests-preview-disabled)
(replace-tests-preview-invisible-match): Use the new functions.
(replace-tests-preview-both, replace-tests-preview-function):
New tests.
2026-09-02 22:01:58 +03:00
Eshel Yaron 9794fa0d5d
elisp-scope.el: Avoid excessive 'trusted-content-p' calls
Cache the return value of 'trusted-content-p' for the
duration of the analysis of a single form, instead of
calling 'trusted-content-p' repeatedly for (potentially)
every analyzed macro call (bug#81723).

* lisp/emacs-lisp/elisp-scope.el (elisp-scope--trust-cache):
New variable.
(elisp-scope-analyze-form): Let-bind it.
(elisp-scope--trusted-p): New helper function.
(elisp-scope-safe-macro-p): Use it.
2026-09-02 20:52:56 +02:00
Jonas Bernoulli 1d11314e7c
Update to Transient v0.13.8-13-gfb7ae78 2026-09-02 20:25:04 +02:00
Spencer Baugh 9f5285398b Repeated TAB scrolls Completions only if it doesn't complete
* lisp/minibuffer.el (completion--attempt-state): Add.
(completion--in-region-1): Don't scroll if the minibuffer has
changed since the last TAB. (bug#81578)
* test/lisp/minibuffer-tests.el
(completion-tab-with-completions-visible-bug81578): New test.
2026-09-02 20:47:09 +03:00
Michael Albinus 9b85f1e6bd ; Fix last change
* test/lisp/filenotify-tests.el (file-notify-test12-symlinks): Adapt test.
2026-09-02 18:54:37 +02:00
Michael Albinus 397fcd24d2 ; * test/infra/gitlab-ci.yml (test-eglot): Fix EMACS_EXTRAOPT. 2026-09-02 18:03:03 +02:00
Sean Whitton e630bc4fd7 ; Fix some recently added docs. 2026-09-02 11:23:02 +01:00
Michael Albinus bc965039cd ; * etc/NEWS: Presentational fixes and improvements. 2026-09-02 12:19:22 +02:00
Michael Albinus 6117772c77 ; * test/infra/gitlab-ci.yml (test-eglot): Fix EMACS_EXTRAOPT. 2026-09-02 12:18:58 +02:00
Antonio Romano a03ddc00b0
Mark 'elisp-fontify-semantically' and 'elisp-add-help-echo' as :safe
* lisp/progmodes/elisp-mode.el (elisp-fontify-semantically)
(elisp-add-help-echo): Mark as safe file-local variables
(bug#81723).

Copyright-paperwork-exempt: yes
2026-09-02 06:54:51 +02:00
Dmitry Gutov 8e23cbb85f Make log-edit-headers-separator inherit from separator-line
* lisp/vc/log-edit.el (log-edit-headers-separator):
Make it inherit from the face separator-line (bug#81753).

* etc/NEWS: Mention it.
2026-09-02 07:05:04 +03:00
Dmitry Gutov 624d69a98a Make log-edit header separator line intangible
* lisp/vc/log-edit.el (log-edit-font-lock-keywords):
Add 'front-sticky' and 'cursor-intangible' to the headers
separator rule (bug#81764).
(log-edit-mode): Enable cursor-intangible-mode and add
'cursor-intangible' to font-lock-extra-managed-props.
2026-09-02 06:55:23 +03:00
Dmitry Gutov 890f8cb0fe ; xref-backend-identifier-completion-predicate: Fix cl-defgeneric kind 2026-09-02 06:34:30 +03:00
Dmitry Gutov 9e05c0360c Merge branch 'xref-find-by-kind' 2026-09-02 06:25:40 +03:00
Dmitry Gutov 3918f20ee1 Revert "; Mention 'M-s .' in search.texi"
This reverts commit a7a09f58ed.
2026-09-01 20:31:54 +03:00
Philipp Stephani e0a5fcbac6 * lisp/files.el (make-empty-file): Simplify interactive spec 2026-09-01 19:09:26 +02:00
Dmitry Gutov a1bb496e24 (vc-test-vc-dir-next/previous): Fix the test
* test/lisp/vc/vc-tests/vc-test-misc.el
(vc-test-vc-dir-next/previous): Fix the test.
2026-09-01 20:07:03 +03:00
Sean Whitton 956875f822 ; * test/lisp/emacs-lisp/crm-tests.el: Fix copyright years. 2026-09-01 17:14:03 +01:00