Commit Graph

178163 Commits

Author SHA1 Message Date
Po Lu
74e3755eb6 Merge from savannah/emacs-30
aa1b55d521 Fix the Android build
2025-04-27 21:09:29 +08:00
Po Lu
5478e3bb20 ; Merge from savannah/emacs-30
The following commit was skipped:

d394cd73d1 Avoid infinite recursion under 'rectangle-mark-mode'
2025-04-27 21:09:29 +08:00
Po Lu
d87cde3177 Merge from savannah/emacs-30
b5967dda32 ; * doc/misc/ert.texi (Introduction): Be more Lisp-specific.
be4819bd57 Include additional version metadata during Windows install
2025-04-27 21:09:29 +08:00
Po Lu
aa1b55d521 Fix the Android build
* java/README.res: Move from java/res/README, as the AAPT does
not permit non-resource files in resource directories.
2025-04-27 21:08:48 +08:00
João Távora
0262e3e158 Flymake: Experimental 'fancy' flymake-show-diagnostics-at-end-of-line
* doc/misc/flymake.texi (Customizable variables): Describe new
flymake-show-diagnostics-at-end-of-line.

* etc/NEWS: Mention 'flymake-show-diagnostics-at-end-of-line'.

* lisp/progmodes/flymake.el
(flymake-show-diagnostics-at-end-of-line): Update docstring.

* lisp/progmodes/flymake.el (flymake--eol-overlay-summary):
Rework.  Move to separate section.
(flymake--update-eol-overlays): Rework.  Use 'display'.  Move to
separate section.
(flymake--eol-draw-fancy-1, flymake--eol-draw-fancy): New helpers.
(flymake-end-of-line-diagnostics-face): Remove box.
2025-04-27 13:03:19 +01:00
Michael Shields
ebcde0f90f Fix use-package :custom-face to set face-defface-spec (bug#77928)
By default, `face-set-spec' sets the override face spec, so face
attributes are combined with defaults rather than replacing them.
This was a behavior change that was an apparently unintended
consequence of commit 6b344a9.

Also set the `face-modified' property, which causes Customize to
flag the face as changed outside Customize.

* doc/misc/use-package.texi (Faces): Document the behavior.
* lisp/use-package/use-package-core.el (use-package-handler/:custom-face):
(use-package): Improve docstring to reflect implementation.
* test/lisp/use-package/use-package-tests.el
(use-package-test/:custom-face-1): (use-package-test/:custom-face-2):
(use-package-test/:custom-face-3): (use-package-test/:custom-face-4):
Add tests.
2025-04-27 10:48:55 +03:00
Eli Zaretskii
d394cd73d1 Avoid infinite recursion under 'rectangle-mark-mode'
* lisp/rect.el (rectangle--region-beginning)
(rectangle--region-end): Avoid infinite recursion.  Patch by Alcor
<alcor@tilde.club>.  Do not merge to master.  (Bug#77973)
2025-04-27 10:08:38 +03:00
Adam Sjøgren
0c55cd0e17 Improve documentation of 'insert-kbd-macro'
* lisp/macros.el (insert-kbd-macro): Update documentation
of what happens when no macro name is supplied.

* doc/emacs/kmacro.texi (Save Keyboard Macro): Document
saving 'last-kbd-macro'.  (Bug#77317)
2025-04-27 09:52:25 +03:00
Sean Whitton
925ac2ef70 Mark vc-dav.el as obsolete (bug#77626)
* lisp/vc/vc-dav.el: Move from here ...
* lisp/obsolete/vc-dav.el: ... to here (bug#77626).
Add Obsolete-since header.
* etc/NEWS: Announce the obsoletion.
2025-04-27 12:30:41 +08:00
Sean Whitton
b5967dda32 ; * doc/misc/ert.texi (Introduction): Be more Lisp-specific. 2025-04-27 11:59:17 +08:00
Sean Whitton
07c2b169ed Improve syncing VC buffers before generating diffs
* lisp/vc/vc.el (vc-maybe-buffer-sync): Delete.  Correct
handling of indirect buffers is now implicitly achieved by
vc-buffer-sync-fileset.
(vc-buffer-sync-fileset): Make NOT-ESSENTIAL argument optional,
new MISSING-IN-DIRS optional argument.  Rewrite to handle
directories named in the fileset, not only files.
(vc-ediff): Replace call to vc-maybe-buffer-sync with a call to
vc-buffer-sync-fileset.
(vc-root-diff): Similarly replace call to vc-maybe-buffer-sync.
This means the user is prompted to save additional buffers, that
they likely want to save before generating the diffs.
* test/lisp/vc/vc-misc-tests.el: New file.
2025-04-27 11:52:53 +08:00
Sean Whitton
d047a89e76 vc-diff: Delete redundant call to vc-maybe-buffer-sync
This call is redundant with the subsequent call to
vc-buffer-sync-fileset.  I believe this call to
vc-maybe-buffer-sync was reintroduced by accident -- the
changeset adding the call to vc-buffer-sync-fileset deleted a
call to vc-sync-fileset in the same place.

* lisp/vc/vc.el (vc-diff): Delete redundant call to
vc-maybe-buffer-sync.
* lisp/files.el (find-buffer-visiting): Note in docstring that
this function only ever returns base buffers.
2025-04-27 11:52:53 +08:00
Sean Whitton
6b204c2d16 Rename vc-buffer-sync's argument to NOT-ESSENTIAL
* lisp/vc/vc-dispatcher.el (vc-buffer-sync):
* lisp/vc/vc.el (vc-maybe-buffer-sync, vc-diff)
(vc-buffer-sync-fileset, vc-ediff, vc-root-diff):
Rename argument from NOT-URGENT to NOT-ESSENTIAL.
2025-04-27 11:52:53 +08:00
Sean Bright
be4819bd57 Include additional version metadata during Windows install
* admin/nt/dist-build/emacs.nsi: Add DisplayIcon, DisplayVersion, and
  Publisher values to the Uninstall registry key.

Copyright-paperwork-exempt: yes
2025-04-26 14:21:21 -05:00
Eli Zaretskii
191b4cd9a7 ; Fix compilation warning in string-edit.el
* lisp/textmodes/string-edit.el (string-edit): Avoid shadowing the
global 'major-mode'.
2025-04-26 18:01:42 +03:00
Eli Zaretskii
86211172e3 Merge from origin/emacs-30
1f520db97b * doc/emacs/files.texi (Time Stamp Customization): Typo.
d824b66c24 ; * doc/emacs/search.texi (Isearch Yank): Improve flow.
62b284f915 ; * etc/DEBUG: Say that debugging code compiled w/ -Og ca...
49ea1f64c7 ; Improve documentation of 'modifier-bar-mode'
a975232c0f ; * doc/emacs/programs.texi (Matching): Fix wording (bug#...
29142dab31 ; * doc/misc/efaq-w32.texi (MinGW-w64): Fix punctuation (...
4cd4a801d8 ; * java/res/README: Note origin of emacs_wrench.png.
2025-04-26 10:57:33 -04:00
Eli Zaretskii
09f4818eba ; Merge from origin/emacs-30
The following commit was skipped:

cc52c1e1d0 Backport: fix flymake margin indicator fallback logic
2025-04-26 10:53:24 -04:00
Eli Zaretskii
1c7fe501fe Fix 'kill-ring-deindent-mode'
* lisp/indent-aux.el
(kill-ring-deindent-buffer-substring-function): Fix deindenting
for modes which set 'indent-tab-mode' to nil.  (Bug#77981)
2025-04-26 17:30:20 +03:00
Eli Zaretskii
f7aad714d2 Avoid signaling errors in 'cursor-face-highlight-mode'
* lisp/simple.el (redisplay--update-cursor-face-highlight): Don't
go beyond the accessible portion of the buffer.  (Bug#77747)
2025-04-26 17:20:01 +03:00
Jens Schmidt
ec8075219d ; Fix previous arc-mode-test commit
* test/lisp/arc-mode-tests.el (define-arc-mode-test-on-type): Doc fix.
("7z"): Use archiver executable "7z" on all ports.
2025-04-26 17:09:00 +03:00
Manuel Giraud
af22c9292d Reuse calendar temporary faces
* lisp/calendar/calendar.el (calendar-make-temp-face): Reuse
temporary face produced by calendar.  (Bug#78036)
2025-04-26 17:05:16 +03:00
Eli Zaretskii
98776ebd39 Fix thai-pattachote input method
* lisp/leim/quail/thai.el (thai-pattachote): Add missing
characters instead of duplicate ones.  Suggested by Robert
Nikander <robert.nikander@icloud.com>.  (Bug#77998)
2025-04-26 16:46:34 +03:00
Jostein Kjønigsen
67e8351bdb csharp-mode.el: Improve fontification of string-interpolation exprs
* lisp/progmodes/csharp-mode.el
(csharp-ts-mode--font-lock-settings): Remove too wide selector,
causing non-string content to be fonitified as strings.  Add
additional eselectors to highlight variables inside
interpolation-expressions too.  (Bug#78008)
2025-04-26 16:25:11 +03:00
Paul Nelson
f808f637f5 Add "forward history" support for some debuggers
* lisp/progmodes/gud.el (gud-query-cmdline): Add an optional
default-list parameter to allow passing a list of "forward
history" suggestions to the minibuffer.
(perldb, pdb, guiler): Use buffer file name to suggest a default
debugging command via "forward history".

* doc/emacs/building.texi (Starting GUD): Document the new
feature.

(Bug#77989)
2025-04-26 16:21:21 +03:00
Paul Nelson
dd3429526a Don't consider "Grep finished" lines as matches for file names
* lisp/progmodes/grep.el
(grep-compilation-transform-finished-rules): New variable
containing rules to prevent "Grep finished" lines from being
misinterpreted as matches for file names.
(grep-mode): Add these rules to
'compilation-transform-file-match-alist' (bug#77732).
2025-04-26 15:34:54 +03:00
Eli Zaretskii
406f30c985 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2025-04-26 15:32:16 +03:00
Sean Whitton
19b6c94566 log-edit-insert-message-template: Reorder headers
* lisp/vc/log-edit.el (log-edit-insert-message-template): Put
Author before Summary when both are to be inserted.
2025-04-26 20:28:23 +08:00
Sean Whitton
30b7318a8f ; comment-indent: Leave point where we used to. 2025-04-26 20:04:43 +08:00
Liu Hui
46776cae05 Fix filename completion in Python shell (bug#77853)
'comint-filename-completion' may complete the filename at
wrong locations.  Users who want proper filename completion
should use specialized completion backends (e.g. Jedi).
* lisp/progmodes/python.el (inferior-python-mode): Remove
'comint-filename-completion' in 'comint-dynamic-complete-functions'.
2025-04-26 14:59:48 +03:00
Spencer Baugh
8f58f55551 Improve help-fns-edit-variable for Lisp editing
Before d50c82f3e9 ("Simplify
'help-enable-variable-value-editing' using 'string-edit'"),
'help-fns-edit-variable' would open a buffer in 'emacs-lisp-mode'
and would not allow exiting that buffer with an invalid Lisp
expression.  Restore that functionality by enhancing 'string-edit'
to allow choosing a major mode and allow passing a function to
validate the buffer contents before returning.
* lisp/help-fns.el (help-fns-edit-variable): Call 'string-edit',
passing 'emacs-lisp-mode' and 'read'.
* lisp/textmodes/string-edit.el (string-edit--read): Add.
(string-edit): Add :major-mode and :read arguments and avoid
passive voice.
(read-string-from-buffer): Avoid passive voice in docs.
(string-edit-mode-map, string-edit-minor-mode-map)
(string-edit-mode, string-edit-minor-mode): Move 'string-edit'
keybindings to a minor mode.
(string-edit-done): Call 'string-edit--read' before exiting.
(Bug#77834)
2025-04-26 14:53:18 +03:00
Sean Whitton
5b635d8bd6 ; mode-line-collapse-minor-modes: Tweak wording. 2025-04-26 19:48:49 +08:00
Pengji Zhang
643ebbcac9 Make lighter for collapsed minor modes customizable (bug#77361)
* lisp/bindings.el (mode-line-collapse-minor-modes-to): New
option for the collapsed lighter of minor modes.
(mode-line-collapse-minor-modes): Mention that the collapsed
lighter can be customized.
(mode-line--minor-modes): Use the new option.
2025-04-26 19:47:33 +08:00
Daniel Semyonov
0e2fd0e441 nnfeed: Pass through list request failure reports
* lisp/gnus/nnfeed.el (nnfeed-request-list): Report the same
message reported by the inheriting backend on failure.
(Bug#74857)
2025-04-26 14:41:27 +03:00
Randy Taylor
417ee3a7f7 Fix 'yaml-ts-mode' filling of comments (Bug#77095)
* lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode--fill-paragraph):
Handle comment filling differently than block_scalars.
(yaml-ts-mode): Set 'comment-start-skip'.
2025-04-26 14:37:02 +03:00
kobarity
9ae82726d8 Add cache to Python block navigation functions
* lisp/progmodes/python.el (python-nav-cache)
(python-nav-cache-tick): New variables.
(python-nav-cache-get, python-nav-cache-set)
(python-nav-with-cache): New functions.
(python-nav-beginning-of-block, python-nav-end-of-block): New
wrapper functions.
(python-nav--beginning-of-block): Renamed from
'python-nav-beginning-of-block'.
(python-nav--end-of-block): Renamed from
'python-nav-end-of-block'.  (Bug#77620)
2025-04-26 14:20:31 +03:00
kobarity
d753c88494 Performance optimization of 'python-info-statement-ends-block-p'
* lisp/progmodes/python.el (python-info-statement-ends-block-p):
Add a comparison of the indentation of the next statement with
the indentation of the current statement.  (Bug#77620)
2025-04-26 14:19:17 +03:00
kobarity
55cf15e163 Fix Python block end predicates (bug#77941)
* lisp/progmodes/python.el (python-info-statement-ends-block-p)
(python-info-end-of-block-p): Add consideration of comments.
* test/lisp/progmodes/python-tests.el
(python-info-statement-ends-block-p-3)
(python-info-end-of-block-p-3): New tests.
2025-04-26 14:17:31 +03:00
Jonas Bernoulli
7bb648eb80 mode-line-modes-delimiters: New option 2025-04-26 10:22:00 +02:00
Michael Albinus
a4bff57551 * etc/NEWS: Presentational fixes and improvements. 2025-04-26 09:46:16 +02:00
Eli Zaretskii
52b68f6054 ; * etc/NEWS: Fix a typo (bug#78068). 2025-04-26 09:55:39 +03:00
Sean Whitton
bacde21fde ; typescript-ts-mode-multivar-indent-style: Add missing group. 2025-04-26 11:47:23 +08:00
Sean Whitton
94d8f5b94f ; typescript-ts-mode-multivar-indent-style: Use different example.
This prevents it becoming a hyperlink in *Help* buffers.
2025-04-26 11:46:18 +08:00
Sean Whitton
5a043bf3df ; typescript-ts-mode-multivar-indent-style: Fix use of apostrophes. 2025-04-26 11:43:49 +08:00
Stephen Gildea
1f520db97b * doc/emacs/files.texi (Time Stamp Customization): Typo. 2025-04-25 18:37:39 -07:00
Yuan Fu
3393644b71 Add multivar indent style in typescript-ts-mode (bug#77803)
* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-mode-multivar-indent-style): New option.
(typescript-ts-mode--indent-rules): Support both styles.
2025-04-25 17:39:55 -07:00
Roi Martin
3098d34bfd * Fix missing lexical-binding cookie warning on async compilation (bug#77918)
* lisp/emacs-lisp/comp-run.el (comp--run-async-workers): Fix missing
lexical-binding cookie warning on async compilation.
2025-04-25 22:36:06 +02:00
Stefan Monnier
48940a5d48 lisp/auth-source.el (authinfo--keywords): Avoid obsolete font-lock face vars 2025-04-25 16:35:04 -04:00
Sean Whitton
648453c04d ; Change let* to just let in last change. 2025-04-25 09:27:00 +08:00
Sean Whitton
a6829a0c35 comment-indent: Handle BOL already within a multiline comment
* lisp/newcomment.el (comment-indent): Newly handle the case
that BOL is already within a multiline comment (bug#78003).
Thanks to Stefan Monnier for review and reworking the control
flow.
2025-04-25 09:12:57 +08:00
Eli Zaretskii
e38401e71b ; * test/lisp/arc-mode-tests.el ("7z"): Fix 7z entry. 2025-04-24 16:22:13 +03:00