1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-26 08:41:47 -07:00
Commit graph

181588 commits

Author SHA1 Message Date
Eli Zaretskii
696a4e03bf Fix backward motion in Info manuals under 'scroll-conservatively'
* lisp/info.el (Info-find-node-2): Don't skip the header or
breadcrumbs line when 'scroll-conservatively' is set to a value
that could leave the beginning of the node outside of the window.
(Bug#80553)
2026-03-14 13:11:11 +02:00
Eli Zaretskii
17aa3a7e13 ; Fix last change
* lisp/textmodes/flyspell.el (flyspell-generic-progmode-verify):
Fix capitalization and whitespace of last change.
2026-03-14 12:46:19 +02:00
Timon Reinold
87d13146b2 Fix auto-correct previous word with 'flyspell-prog-mode'
* lisp/textmodes/flyspell.el (flyspell-generic-progmode-verify):
Take into account the word 'flyspell-auto-correct-previous-word'
moved to (i.e., the word starting at point, not the character
before point), when checking whether it should be checked/corrected
by flyspell-prog-mode.  (Bug#80289)

Copyright-paperwork-exempt: yes
2026-03-14 12:43:35 +02:00
Eli Zaretskii
44fa418987 ; * etc/NEWS: Improve one entry. 2026-03-14 09:29:58 +02:00
Stefan Monnier
3ed7ac4e66 (smerge--refine-prepare-regions): Reduce number of args and retvals
* lisp/vc/smerge-mode.el (smerge--refine-set-overlay-props):
New function, extracted from `smerge--refine-prepare-regions`.
(smerge--refine-prepare-regions): Take overlays rather than beg/end
arguments and remove all overlay property manipulation.
(smerge-refine-regions): Create the overlays and pass them to those
two functions.
2026-03-14 02:14:13 -04:00
Dmitry Gutov
949f035544 etags-regen: Don't try to generate tags during completion, by default
* etc/NEWS: Describe the change.

* lisp/progmodes/etags-regen.el
(etags-regen-create-on-completion): New option.
(etags-regen-create-on-completion--set): New function.
(etags-regen-mode): Use it.  Discussed in
https://lists.gnu.org/archive/html/emacs-devel/2026-03/msg00405.html
2026-03-14 04:28:32 +02:00
Philip Kaludercic
9dbcb01153
Simplify 'xref-mouse-mode-map'
See https://mail.gnu.org/archive/html/emacs-devel/2026-03/msg00386.html.

* lisp/progmodes/xref.el (xref-mouse-mode-map): Prevent
C-<down-mouse-1> from triggering 'mouse-buffer-menu' and drop
C-<drag-mouse-1> binding.
2026-03-14 00:03:02 +01:00
Philip Kaludercic
ac39b7c451
* etc/NEWS: Announce 'package-vc-install-from-checkout' obsoletion
(Bug#80604)
2026-03-13 23:50:05 +01:00
Philip Kaludercic
c7d4056539
Give an example of how to use use-package+:vc without :rev
* doc/misc/use-package.texi (Install package): Add an example
block that doesn't use :rev, and instead shows that you can just
pass a URL as a string to :vc.
2026-03-13 23:50:05 +01:00
Paul Eggert
10979aa458 Ignore Emacs developer’s global core.whitespace
* build-aux/git-hooks/pre-commit: Use EMACS_GIT_CORE_WHITESPACE,
not the global core.whitespace, for whitespace checks when committing.
This defaults to empty, which means to use the Git default, and
this should fix Bug#80428 “C indentation in .gitattributes, macros
in .dir-locals.el”.  The environment variable is a better way to
temporarily override the default.
2026-03-13 10:27:49 -07:00
Helmut Eller
0efb47d474 * lisp/loadup.el: No longer GC after loading each file
With the portable dumper it's no longer needed as discussed in
bug#79021.  Originally this was done for the unexec based dumping (see
bug#4287 and commit 0e328d3779).
2026-03-13 15:35:05 +01:00
Eli Zaretskii
4a81c87a7c Avoid assertion violations in 'display_menu_bar'
* src/xdisp.c (display_menu_bar): Return immediately if the
menu-bar items were not yet computed.  This avoids assertion
violations when this function is called as part of creating a new
frame.  (Bug#80603)
2026-03-13 15:57:05 +02:00
Basil L. Contovounesios
5c2cb4ced4 ; * etc/NEWS.27: Remove duplicate entry.
This was already announced in etc/NEWS.26.
2026-03-13 09:45:23 +01:00
Basil L. Contovounesios
a525a7f2af Fix project-recompile directory
* lisp/progmodes/project.el: Remove stale compilation-read-command
declarations.  Autoload recompile for Emacs versions prior to 31, to
allow calling project-recompile before project-compile (bug#74631).
(project-recompile): Set compilation-directory to avoid recompile
using a value unrelated to the current project (bug#68570).
2026-03-13 08:33:01 +01:00
Basil L. Contovounesios
d1079cced2 Replace remaining uses of Qwrong_type_argument
For discussion, see:
https://lists.gnu.org/r/emacs-devel/2026-03/msg00306.html

* src/comp.c (helper_GET_SYMBOL_WITH_POSITION): Use
symbol-with-pos-p, not wrong-type-argument, in the
wrong-type-argument error predicate slot.
* src/data.c (Fbare_symbol):
* src/print.c (print_bind_overrides):
* src/treesit.c (Ftreesit_parser_create, treesit_resolve_node):
Prefer wrong_type_argument over xsignal2.
2026-03-12 16:41:18 -04:00
Basil L. Contovounesios
10bac4d9e5 Fix window-height of project-kill-buffers
An alternative to setting window-height and preserve-size is to rely
on display-buffer--maybe-at-bottom's support for
temp-buffer-resize-mode.

* lisp/progmodes/project.el (project-kill-buffers): Set
window-height to a function, not a form/cons (bug#52148).
2026-03-12 14:59:14 +01:00
Julian Scheid
f15ad18a14 Fix 'comp--func-unique-in-cu-p' to match docstring
* lisp/emacs-lisp/comp.el (comp--func-unique-in-cu-p): Check
only the callee name instead of requiring global uniqueness.
* test/src/comp-resources/comp-test-direct-call.el: New file.
* test/src/comp-resources/comp-test-direct-call-dup.el: New file.
* test/src/comp-tests.el (comp-tests-has-direct-call-p)
(comp-tests-direct-call-with-lambdas)
(comp-tests-direct-call-with-duplicate-names): New tests.
2026-03-12 09:08:08 +01:00
Philip Kaludercic
d019b5ec71
Add 'xref-mouse-mode' minor mode
* doc/emacs/maintaining.texi (Looking Up Identifiers): Document
it.
* etc/NEWS (bindings): Mention it.
* etc/themes/newcomers-presets-theme.el (newcomers-presets): Add
it.
* lisp/progmodes/xref.el (xref-mouse-mode-map, xref-mouse-mode)
(global-xref-mouse-mode): Implement it.
2026-03-12 09:01:08 +01:00
Philip Kaludercic
dad9864340
; Load missing features to run package-vc tests 2026-03-12 08:59:25 +01:00
Philip Kaludercic
8bf0981452
; Fix bug in 'package-maintainers'
* lisp/emacs-lisp/package.el (package-maintainers): Detect if
:maintainers contains on a single cons-cell, denoting a single
maintainer, in which case we wrap it in a singleton list.
2026-03-12 08:56:45 +01:00
Tassilo Horn
7fba3c23df Don't strip face properties in blink-paren-open-paren-line-string
With bug#59527 we ensured that the open paren line string was fontified
which was broken again with bug#63089 because there, the opening paren
was fontified with a new face.

With this change, the returned string is fontified again.  Only if
`blink-matching-paren-highlight-offscreen' is non-nil, the opening paren
is unfontified and then fontified again with the
`blink-matching-paren-offscreen' face.

* lisp/simple.el (blink-paren-open-paren-line-string): Keep returned
line string fontified with slight exception if
`blink-matching-paren-highlight-offscreen' is non-nil.
2026-03-12 08:50:33 +01:00
Eli Zaretskii
e2f445dfae ; * etc/NEWS: Rearrange sections. 2026-03-12 08:59:21 +02:00
Philip Kaludercic
d12ecf8aa6
; Fix broken syntax in newcomers-presets-theme 2026-03-11 22:44:10 +01:00
Philip Kaludercic
1882138975
Add ecomplete support for more header types
* lisp/gnus/message.el (message-put-addresses-in-ecomplete):
Handle "BCC" and "X-Debbugs-CC" headers.
2026-03-11 22:32:12 +01:00
Philip Kaludercic
7c22a7d312
Do not initialize Info during package activation
* lisp/emacs-lisp/package-activate.el (package--add-info-node):
Use 'Info-default-directory-list' if Info has not been
initialized, otherwise fall back to 'Info-directory-list'
without calling 'info-initialize' beforehand, since the function
initializes 'Info-directory-list'.  (Bug#80495)
2026-03-11 22:12:55 +01:00
Philip Kaludercic
6f337499e6
; Add missing documentation for new 'cus-edit' bindings
* doc/emacs/custom.texi (Changing a Variable):
* etc/NEWS: Mention them.
2026-03-11 22:12:55 +01:00
Philip Kaludercic
4d398ae00c
Adjust structure of 'newcomers-presets-mode-enabled-local-modes'
* etc/themes/newcomers-presets-theme.el
(newcomers-presets-mode-enabled-local-modes): Interpret the
variable as a proper alist without duplicate keys.
(newcomers-presets-mode): Handle new structure.
2026-03-11 22:12:55 +01:00
Stefan Monnier
dc4f7e6809 (elisp--shorthand-aware-(f)boundp): Don't allocate
* lisp/progmodes/elisp-mode.el (elisp--read-symbol-shorthands):
New function, extracted from `elisp--completion-local-symbols`.
Remember the longhand symbol in `elisp--longhand` property.
(elisp--completion-local-symbols): Use it.
(elisp--shorthand-aware-fboundp, elisp--shorthand-aware-boundp):
Use the new `elisp--longhand` property.
2026-03-11 16:54:00 -04:00
Philip Kaludercic
cfe9d94524
; Use "example.com" in package-vc-tests
* test/lisp/emacs-lisp/package-vc-resources/test-package-SUFFIX-v0.1.el.in:
* test/lisp/emacs-lisp/package-vc-resources/test-package-SUFFIX-v0.2.el.in:
Update headers.
* test/lisp/emacs-lisp/package-vc-tests.el (prepare-patch)
(package-vc-with-tests-environment): Adjust expected values.
2026-03-11 21:33:08 +01:00
Philip Kaludercic
fb729157d3
; Relax "prepare-patch" test for package-vc
This change is partially necessary due to the changes to
'package-maintainers' in 4b253c39b1.

* test/lisp/emacs-lisp/package-vc-tests.el (prepare-patch): Do
not match exact order of headers, and do not match exact syntax
of email address.
2026-03-11 21:33:08 +01:00
Stefan Monnier
eb8962758f etc/NEWS.26 (Changes in Emacs 26.1): List new names (for C-h f) 2026-03-11 13:46:43 -04:00
Stefan Monnier
771ab21367 lisp/vc/smerge-mode.el (smerge--refine-apply-diff): Typo 2026-03-11 12:16:10 -04:00
Andrea Corallo
40f4fc1d8c Fix negated equality assumptions (bug#80327)
* lisp/emacs-lisp/comp.el (comp--add-cond-cstrs): Skip
negated equality assumptions only for relational non-immediate
operands. Keep immediate false-branch constraints.
* test/src/comp-resources/comp-test-funcs.el
(comp-test-80327-hash, comp-test-80327-f): Add reproducer.
* test/src/comp-tests.el (comp-tests-bug-80327): Add regression
test.
2026-03-11 17:09:57 +01:00
Michael Albinus
d3adff8c8f Improve tramp-tests.el
* test/lisp/net/tramp-tests.el (ert-temp-file-prefix)
(ert-temp-file-suffix, ert--with-temp-file-generate-suffix)
(ert-with-temp-file, ert-with-temp-directory): Add them if they
don't exist.
(tramp--test-make-temp-name, tramp--test-kubernetes-p)
(tramp--test-supports-set-file-times-p): New defuns.
(tramp--test-make-temp-name): Use `tramp--test-make-temp-prefix'.
(tramp-test03-file-error, tramp-test20-file-modes)
(tramp-test22-file-times, tramp-test26-file-name-completion):
Adapt tests.
2026-03-11 16:26:35 +01:00
Stefan Monnier
adafe4f72b lisp/subr.el (run-hook-query-error-with-timeout): Avoid %s for lists 2026-03-11 11:09:12 -04:00
Basil L. Contovounesios
dfd460879b ; Fix quit-window-kill-buffer condition. 2026-03-11 15:53:39 +01:00
Phil Sainty
d1c052b80a Handle compressed filenames in `native--compile-async-skip-p' (bug#57627)
* lisp/emacs-lisp/comp-run.el (native--compile-async-skip-p):
Process *.el.gz filenames as if they were *.el filenames.
2026-03-11 21:59:27 +13:00
Michael Albinus
652df742c3 ; * etc/NEWS: Presentational fixes and improvements. 2026-03-11 09:01:26 +01:00
Stefan Monnier
66bd2ce8e6 (smerge-refine-regions): Refactor a bit and work between buffers
* lisp/vc/smerge-mode.el (smerge--refine-chopup-region):
Replace `beg..end` arg with an overlay.
(smerge-refine-regions): Replace `beg` arg with an overlay.
(smerge--refine-prepare-regions, smerge--refine-apply-diff-1):
New functions, extracted from `smerge-refine-regions`.
(smerge--refine-apply-diff): New function.
(smerge-refine-regions): Use them.  Also delete temp files right after
running `diff` rather than after applying diff's output.
2026-03-10 15:52:35 -04:00
Sean Whitton
a61d25d411 unfill-paragraph: Use most-positive-fixnum
* lisp/textmodes/fill.el (unfill-paragraph): Use
most-positive-fixnum.
2026-03-10 11:57:49 +00:00
Stefan Monnier
ea5f15d096 Fix signal calls where the data argument is not a list
* test/src/thread-tests.el (threads-join-error):
* test/src/emacs-module-resources/mod-test.c (Fmod_test_signal):
* src/print.c (print_bind_overrides):
* lisp/url/url-future.el (url-future-finish, url-future-errored)
(url-future-call, url-future-cancel): Make sure signal's data is a list.

* test/src/emacs-module-tests.el (mod-test-non-local-exit-signal-test):
Adjust accordingly.
2026-03-10 00:13:31 -04:00
Stefan Monnier
3118a8c8b1 Error handling clarifications found during error-API
* lisp/simple.el (next-line, previous-line): Remove useless
`condition-case` handler, and hence the whole `condition-case`, and
then simplify.

* lisp/emacs-lisp/comp.el (comp--error-add-context): New function.
(comp--native-compile): Use it.

* lisp/gnus/nnrss.el (nnrss-insert): Use `with-demoted-errors`.
2026-03-10 00:10:36 -04:00
Sean Whitton
a9432736f7 newcomers-presets: Drop after-save-hook entry
* etc/themes/newcomers-presets-theme.el
(newcomers-presets-mode-enabled-local-modes): Remove
executable-make-buffer-file-executable-if-script-p.
2026-03-09 20:27:10 +00:00
Dmitry Gutov
ab47eadb60 ; Bump flymake's version again, to 1.4.5 2026-03-09 21:09:13 +02:00
Eli Zaretskii
c108a28203 Fix 'emacs-news-find-heading'
* lisp/textmodes/emacs-news-mode.el (emacs-news-find-heading):
HEADING must be a complete line, otherwise we have false positives
and false negatives.  (Bug#80569)
2026-03-09 19:14:51 +02:00
Stephen Gildea
82b5656276 * lisp/time-stamp.el (time-stamp-warn-inactive): Doc string. 2026-03-09 09:20:12 -07:00
Sean Whitton
a129354933 newcomers-presets: Always show the tab bar
* etc/themes/newcomers-presets-theme.el (newcomers-presets): Set
tab-bar-show to 0.
2026-03-09 11:41:22 +00:00
Sean Whitton
89dbc92137 Restore use of cl-member-if and cl-plusp to flymake.el
* lisp/progmodes/flymake.el (flymake-goto-next-error): Use
cl-member-if not member-if and cl-plusp not plusp because this
is a `:core' ELPA package (bug#79930).
2026-03-09 11:37:24 +00:00
Yuan Fu
320e33a85f
Ensure c-ts-mode tests are never stuck (bug#80565)
* test/lisp/progmodes/c-ts-mode-tests.el: Don't prompt for
installing cpp grammar when they're not installed.
2026-03-08 22:53:48 -07:00
Dmitry Gutov
cc5ec44118 Fix Non-existent commands in flymake-diagnostics-buffer-mode-map
* lisp/progmodes/flymake.el (flymake-diagnostics-buffer-mode-map):
Only bind 'n' and 'p' when 'next-error-this-buffer-no-select' is
defined.  For releasing on ELPA (bug#79930).
Bump the package version to 1.4.4.
2026-03-09 04:35:04 +02:00