1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-21 13:31:37 -07:00
Commit graph

178150 commits

Author SHA1 Message Date
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
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
Jens Schmidt
d74cbf0519 Detect more types of split zip archives
* lisp/arc-mode.el (archive-find-type): Detect more types of
split zip archives.
* test/lisp/arc-mode-tests.el (arc-mode-test-make-file)
(arc-mode-test-make-archive): Factor out functions from ...
(arc-mode-test-zip-ensure-ext): ... this test.
(define-arc-mode-test-on-type): Add macro to test function
`archive-find-type' and use the macro to test detection of
various archive types.  (Bug 77898)
2025-04-24 16:05:03 +03:00
Eli Zaretskii
eb6531ba94 Allow to disable 'lexical-binding'
* lisp/progmodes/elisp-mode.el (elisp-enable-lexical-binding):
Optionally, allow to disable 'lexical-binding'.
2025-04-24 15:56:23 +03:00
Sean Whitton
d824b66c24 ; * doc/emacs/search.texi (Isearch Yank): Improve flow. 2025-04-24 20:38:51 +08:00
Sean Whitton
3a95e1ede8 ; * etc/NEWS: Document deletion of block comment variables. 2025-04-24 20:19:32 +08:00
Sean Whitton
62b284f915 ; * etc/DEBUG: Say that debugging code compiled w/ -Og can be hard. 2025-04-24 20:15:50 +08:00
Eli Zaretskii
ccfb40a13d ; Improve documentation of last change
* etc/NEWS: Add entry about 'Custom-dirlocals-mode'.

* lisp/cus-edit.el (Custom-dirlocals-mode): Doc fix.  (Bug#77228)
2025-04-24 15:07:34 +03:00
Elías Gabriel Pérez
6414ed0d11 Create major mode for customize-dirlocals (bug#77228)
* lisp/cus-edit.el (Custom-dirlocals-mode): New major mode.
(custom-dirlocals-with-buffer): Move settings to
`Custom-dirlocals-mode'.
2025-04-24 15:02:15 +03:00
Eli Zaretskii
49ea1f64c7 ; Improve documentation of 'modifier-bar-mode'
* doc/emacs/custom.texi (Modifier Keys):
* doc/emacs/frames.texi (Tool Bars):
* lisp/tool-bar.el (modifier-bar-mode): Improve documentation of
'modifier-bar-mode'.
2025-04-24 12:32:02 +03:00
Eli Zaretskii
a975232c0f ; * doc/emacs/programs.texi (Matching): Fix wording (bug#78021). 2025-04-24 12:07:56 +03:00
Po Lu
4b7816fc80 ; * src/w32dwrite.c: Minor coding style adjustments. 2025-04-24 09:04:33 +08:00
Juri Linkov
261a965ff1 Add the keyword ':copy-queries' to 'treesit-language-source-alist'.
* lisp/treesit-x.el (define-treesit-generic-mode): Add keyword
':copy-queries t' to the end of 'source'.

* lisp/treesit.el (treesit-language-source-alist):
Document the keyword ':copy-queries'.
(treesit--install-language-grammar-1): Add &rest args.
Process the keyword args.  Call 'treesit--copy-queries'
when :copy-queries is non-nil.
(treesit--copy-queries): Add arg 'source-dir'.  Copy queries
from source-dir as well.  Copy only the file "highlights.scm".
2025-04-23 20:17:46 +03:00
Eli Zaretskii
d3f1f4923f ; * src/w32dwrite.c (text_extents_internal): Fix typos in comments. 2025-04-23 17:29:20 +03:00
Cecilio Pardo
0548059289 w32: change the way text is measured when using DirectWrite
Now the glyph outline is inspected directly to get its real size,
as the direct measuring functions give generic values for some
fonts.
* src/w32dwrite.c (data structures): Added data structures from
header files that are not present in the 32bit MinGW build
environment.
(text_extents_internal): Call GetGlyphRunOutline to get exact
glyph vertical bounds.  Add new parameter to make this optional
if case that information is not required.
(w32_dwrite_text_extents, w32_initialize_direct_write)
(w32_dwrite_draw): New parameter for 'text_extents_internal'.
(Bug#77171)
2025-04-23 17:22:14 +03:00