1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-05 13:31:45 -08:00
Commit graph

180498 commits

Author SHA1 Message Date
Sean Whitton
699fb56b4e * lisp/vc/vc.el (vc-diff-internal): Use delay-mode-hooks. 2025-12-14 10:51:08 +00:00
Eli Zaretskii
d481b9efdc Fix a bug in 'kill-visual-line' that caused it signal an error
* lisp/simple.el (kill-visual-line): Don't assume 'posn-at-point'
always returns a non-nil value.  (Bug#80004)
2025-12-14 10:18:34 +02:00
Paul Eggert
1880cd0aa5 Use GCC warning -Wunused-const-variable=2
* configure.ac: Stop suppresssing -Wunused-const-variable=2 when
configured --with-gcc-warnings.  Suppressing no longer seems to be
needed with current GCC and src/lisp.h.
2025-12-13 21:33:01 -08:00
Dmitry Gutov
f8cf01134b project-files: Add the 'else' case to the previous change
* lisp/progmodes/project.el (project-files): Add the 'else' case
to the previous change (for DIRS outside of project root).
2025-12-14 04:34:16 +02:00
Dmitry Gutov
583856c437 Make project--vc-list-files extensible
* lisp/progmodes/project.el (project--vc-list-files):
Call backend function 'project-list-files'.
(project-files): Catch 'vc-not-supported' and default to
'project--files-in-directory' using the current project.
(vc-git-project-list-files, vc-hg-project-list-files):
New functions, extracted from 'project--vc-list-files'.
(https://lists.gnu.org/archive/html/emacs-devel/2025-12/msg00290.html)
2025-12-14 03:50:11 +02:00
Dmitry Gutov
48a4444977 Relax the condition on the values of DIRS in project-files
* lisp/progmodes/project.el (project-files):
Use 'file-in-directory-p' to dispatch to 'project--vc-list-files'
when listing subdirectory files too (bug#79809).
2025-12-14 02:26:36 +02:00
Michael Albinus
223dffabd8 Mention tramp-hlo in Tramp's documentation
* doc/misc/tramp.texi (Frequently Asked Questions)
(New operations): Mention tramp-hlo, again.
2025-12-13 17:58:50 +01:00
Michael Albinus
7089c1fd69 Implement process STDERR file in tramp-smb.el
* lisp/net/tramp-smb.el (tramp-smb-handle-make-process)
(tramp-smb-handle-process-file): Handle STDERR file.
(tramp-smb-call-winexe): Regroup sent commands.

* test/lisp/net/tramp-tests.el (tramp-test28-process-file)
(tramp-test30-make-process): Adapt tests.
2025-12-13 17:58:03 +01:00
Sean Whitton
08bd8fdbb4 vc-diff-internal: Call into backend after setting up the major mode
This means the backend can, for example, enable a minor mode,
without our changing the major mode immediately wiping that out.

* lisp/vc/vc.el (vc-diff-internal): Set up the major mode before
calling into the backend.
2025-12-13 14:26:29 +00:00
Sean Whitton
2d96fdc3b7 vc-git-dir-status-goto-stage: Accept exit 128 from git-add
* lisp/vc/vc-git.el (vc-git-dir-status-goto-stage): Accept an
exit code of 128 from 'git add --refresh' (bug#79999).
2025-12-13 14:13:15 +00:00
Eli Zaretskii
b7f2ccac1e Merge from origin/emacs-30
948c4f7f64 ; * admin/authors.el (authors-aliases): Add Rudolf Adamko...
2025-12-13 05:43:15 -05:00
Daniel Semyonov
242ee957f9 nnatom: Fix parsing of empty articles
* lisp/gnus/nnatom.el (nnatom--read-parts): Fix typo (bug#77539).
2025-12-13 11:58:52 +02:00
Paul Eggert
41ffeaec15 Update from Gnulib by running admin/merge-gnulib 2025-12-12 16:27:11 -08:00
Roi Martin
976143651b
Fix interactive call to 'prepare-user-lisp'
When called interactively with a prefix argument,
'prepare-user-lisp' throws a "Wrong type argument: stringp, (4)"
error.  This happens because the list passed to the interactive
specification is missing one argument and 'current-prefix-arg'
is assigned to AUTOLOAD-FILE instead of FORCE.

* lisp/startup.el (prepare-user-lisp): Fix list passed to
'interactive'.  (Bug#79996)
2025-12-12 21:45:49 +01:00
Stefan Monnier
aa5a9df828 Editorconfig: Merge a few more changes from upstream
* lisp/editorconfig-core.el: Fix up leading comment.
(editorconfig-core-get-properties-hash): Remove unused `confversion` arg.

* lisp/editorconfig-fnmatch.el (editorconfig-fnmatch--cache-hashtable):
Use `defconst`.
(editorconfig-fnmatch--do-translate): Don't escape `,` or `-` in regexps.

* lisp/editorconfig.el (editorconfig-indentation-alist):
Remove redundant entries for `ess-mode` and `terra-mode`.
2025-12-12 15:29:13 -05:00
lolbinarycat
96bb95c8cc editorconfig-fnmatch: fix ** globs (#374)
Cherypick of upstream commit 4af10445fcdf1c9dfa7af4f9e5bec59e8a759d6f
2025-12-12 15:26:30 -05:00
Mattias Engdegård
55b610490b * lisp/cus-start.el: Better unbound variable filter.
Remove (almost) all regexp matching and the need for saving match data.
Signal an error for unbound variables instead of a timid message,
so that it's certain to be noticed.
2025-12-12 18:55:21 +01:00
Mattias Engdegård
8158c4c43a * lisp/cus-start.el: Clean up.
Avoid computing things unless needed.  Use a slightly more modern elisp
style with fewer variable assignments.
2025-12-12 18:50:48 +01:00
Gerd Möllmann
6209771ddb ; Fix xt-mouse-tests
* lisp/xt-mouse.el (turn-on-xterm-mouse-tracking-on-terminal):
Don't use the terminal's top frame in batch mode.
2025-12-12 17:27:52 +01:00
Michael Albinus
74cbef7c45 Fix :type in `antlr-tool-command'
* lisp/progmodes/antlr-mode.el (antlr-tool-command): Give it a
proper :type.
2025-12-12 17:01:31 +01:00
Mattias Engdegård
251c070dfd Warn about uses of the 'any' atom in rx
'any' is a holdover from the ancient 'sregex' package where it meant
'not-newline', but is easily mistaken for 'anychar'.

* lisp/emacs-lisp/rx.el (rx--translate-symbol): Warn about 'any'.
* test/lisp/emacs-lisp/rx-tests.el (rx-atoms): Suppress warning here.
* etc/NEWS: Explain.
2025-12-12 13:55:29 +01:00
Eli Zaretskii
948c4f7f64 ; * admin/authors.el (authors-aliases): Add Rudolf Adamkovič (bug#79987). 2025-12-12 14:15:54 +02:00
Mattias Engdegård
8a58ce0abd Don't use rx 'any' to mean 'not-newline'
* lisp/emacs-lisp/package-vc.el (package-vc--unpack-1):
* lisp/pcmpl-rpm.el (pcomplete/dnf):
* test/lisp/emacs-lisp/package-vc-tests.el (log-incoming):
Use 'anychar' instead of 'any', since that's probably what was meant.
2025-12-12 13:03:45 +01:00
Mattias Engdegård
4bf919a0e6 ; * lisp/progmodes/antlr-mode.el: useless backslashes 2025-12-12 12:51:08 +01:00
Mattias Engdegård
ff2c166897 * doc/lispref/strings.texi (Formatting Strings): Cut obsolete text.
Since we got bignums the output is platform-independent.
2025-12-12 12:43:28 +01:00
Mattias Engdegård
ff85f48c2c * doc/lispref/eval.texi (Backquote): Clarify and simplify.
The previous phrasing could be read as if backquote expansion were
mutable if containing substitions, but that is simply not true;
they should always be treated as non-mutable.
2025-12-12 12:43:28 +01:00
Juri Linkov
5959c96f8b ; * lisp/progmodes/hideshow.el (hs-cycle-filter): Tweak docstring (bug#79970). 2025-12-12 09:31:15 +02:00
Elías Gabriel Pérez
ef73f5c254 ; * lisp/progmodes/hideshow.el (hs-cycle): Fix regression. (Bug#79983)
* test/lisp/progmodes/hideshow-tests.el
(hideshow-cycle-with-delimiters)
(hideshow-cycle-without-delimiters)
(hideshow-check-unbalanced-parens): Add new tests.
2025-12-12 09:23:53 +02:00
Pierre Téchoueyres
cc4f23302c
; Fix 'prepare-user-lisp' that always add directory to 'load-path'
* lisp/startup.el (prepare-user-lisp): Filter out directory matching
any of 'user-lisp-ignored-directories'.  (Bug#79978)
2025-12-11 21:13:40 +01:00
Eli Zaretskii
10d022741c ; * lisp/progmodes/antlr-mode.el (antlr-syntax-propertize): Doc fix. 2025-12-11 11:36:34 +02:00
Philip Kaludercic
665792f697
Handle remaining usages of 'package-vc-install-from-checkout'
* doc/emacs/package.texi (Fetching Package Sources): Remove
mention of `package-vc-install-from-checkout'.
* doc/misc/use-package.texi (Install package): Remove mention of
:vc in combination with :load-path.
* lisp/use-package/use-package-core.el (use-package-vc-install):
Suppress compile-time warning and generate warning during
evaluation instead.
* test/lisp/emacs-lisp/package-vc-tests.el
(package-vc-tests-checkout-from-elpa-install-from-checkout)
(package-vc-tests-checkout-with-git-install-from-checkout):
Suppress obsoletion warning.
2025-12-11 08:32:27 +01:00
Philip Kaludercic
a465c43b29
Simplify 'comint-write-input-ring'
* lisp/comint.el (comint-write-input-ring): Use
'with-temp-buffer', 'decf' and write the buffer contents without
'buffer-string'.  (bug#79954)
2025-12-11 08:32:27 +01:00
Stephen Gildea
b969905a47 ; time-stamp: Prefer 'string-match-p' over 'string-match'
* lisp/time-stamp.el (time-stamp, time-stamp--system-name):
Use 'string-match-p' instead of 'string-match'.
(time-stamp--count-newlines): New function to implement the algorithm.
(time-stamp--system-name-1): New function, a testing seam.
* test/lisp/time-stamp-tests.el (with-time-stamp-system-name):  Use the
new testing seam to expand test coverage.
2025-12-10 13:00:31 -08:00
Eli Zaretskii
fcbb9066be ; * lisp/progmodes/antlr-mode.el (cl-seq): Require. 2025-12-10 20:32:17 +02:00
Stefan Monnier
fc70ead9b5 Merge branch 'antlr-mode' 2025-12-10 13:20:28 -05:00
Stefan Monnier
d243551678 antlr-mode.el: Cosmetics, mostly to silence compiler warnings
* lisp/progmodes/antlr-mode.el: Prefer #' to quote function names.
Fix a few incorrect ' in docstring markup.
(antlr-font-lock-checked-face): Don't use obsolete
`font-lock-warning-face` variable.
(antlr-do-syntax-propertize): Use `emacs-major-version`.
(antlr-set-tool-version-and-mode-line): Don't set
`indent-region-function` to a non-function value.
(antlr-mode): Remove call to obsolete `easy-menu-add`.
(antlr-delphi-indent-action-line, antlr-ruby-indent-action-line):
Avoid obsolete functions `point-at-[be]ol`.
(antlr-python-indent-action-line): Make sure `syntax-ppss-*` vars are
bound dynamically rather than statically.
2025-12-10 13:19:50 -05:00
Juri Linkov
24e5505705 Evaluate result on first call to throttled func in timeout.el
* lisp/emacs-lisp/timeout.el (timeout--throttle-advice)
(timeout-throttled-func): Replace 'prog1' with 'progn'
to return the evaluated value of 'result' (bug#79979).
This will capture the correct return value the first time
a throttled function is called.  Previously, it would return nil
on the very first call.
(timeout-debounce, timeout-throttle, timeout-throttled-func)
(timeout-debounced-func): Add the autoload cookie.
2025-12-10 19:37:33 +02:00
Stefan Monnier
d8870cc102 lisp/emacs-lisp/byte-opt.el (byte-optimize-memq): Beware improper lists 2025-12-10 06:48:17 -05:00
Paul Eggert
b9b0c7ed51 Work even if aclocal is invoked by hand
Problem reported by Ulrich Müller (bug#79974).
* configure.ac (gl_ALIGNASOF): Arrange for it to be defined
even if aclocal is invoked other than via admin/merge-gnulib.
Also, change comments from # to dnl as they don’t make
much sense in the shell script.
2025-12-09 18:04:29 -08:00
Paul Eggert
bc65fb7486 Remove no-longer needed MALLOC_0_IS_NONNULL macro.
* src/conf_post.h (MALLOC_0_IS_NONNULL): Remove.
Gnulib no longer needs this.
2025-12-09 13:27:28 -08:00
Paul Eggert
88bf047d39 Garbage-collect Gnulib sources
Remove Gnulib sources no longer needed or used.
admin/merge-gnulib is typically not smart enough to do that.
* configure.ac: Do not call gl_EEMALLOC, as it is no longer
supplied or needed.
* lib/explicit_bzero.c, lib/malloc/scratch_buffer_dupfree.c:
* lib/xalloc-oversized.h, m4/eealloc.m4, m4/explicit_bzero.m4:
* m4/st_dm_mode.m4, m4/year2038.m4:
Remove.
2025-12-09 13:27:27 -08:00
Sean Whitton
cc05493483 Display done message for async checkins too
* lisp/vc/vc.el (vc-checkin): When an async checkin completes,
display the same "Checking in...done" message.
2025-12-09 19:14:41 +00:00
Sean Whitton
a80f45deb2 Make C-g skip counting outgoing revisions for VC-Dir
* lisp/vc/vc-dir.el (vc-dir--count-outgoing): New function,
factored out.
(vc-dir-headers): Use it.
2025-12-09 18:49:17 +00:00
Paul Eggert
47073fa12d Port back to GTK2
Problem reported by Sven Joachim in:
https://lists.gnu.org/r/emacs-devel/2025-12/msg00225.html
* src/xterm.c (xi_frame_selected_for):
Also define if !(defined USE_GTK && defined HAVE_GTK3).
2025-12-09 09:11:27 -08:00
Paul Eggert
05c1f34036 ; Fix confusing comment in xmenu.c. 2025-12-09 09:11:26 -08:00
Sean Whitton
6d818a7409 prepare-user-lisp: Fix adding to load-path
* lisp/startup.el (prepare-user-lisp): Use directory-file-name
when adding to load-path, as documented for the latter.
2025-12-09 15:43:40 +00:00
Rudolf Adamkovič
bd6961d3ee ; etc/NEWS: Fix unbalanced parentheses
* etc/NEWS: Fix unbalanced parentheses that break `submit-emacs-patch'
when Paredit is active.  This happens because `lm-maintainers', which is
used by `submit-emacs-patch', enables `emacs-lisp-mode' on the `NEWS'
file.
2025-12-09 16:31:56 +01:00
Przemysław Kryger
244dc6f15e Update email and rename packages and buffers in package-vc-tests
* test/lisp/emacs-lisp/package-vc-tests.el
(package-vc-tests-packages): Rename test packages to avoid
suffix being treated as a version number by
`package--description-file'.
(package-vc-tests-add): Ensure suffix capitalisation remains as
original when calling `replace-regexp-in-string'.
(package-vc-tests-create-repository): Fix typo in temporary
email and use a reserved TLD.
(package-vc-tests-environment-tear-down): Rename preserved
buffers to avoid conflicts between tests.
2025-12-09 16:10:20 +01:00
Przemysław Kryger
5731343ffe Update email in vc-tests and vc-git-tests
* test/lisp/vc/vc-git-tests.el (vc-git-test--with-repo): Use
example.com, domain following RFC 2606.
* test/lisp/vc/vc-tests/vc-tests.el
(vc-test--with-author-identity): Use example.com, domain
following RFC 2606.
2025-12-09 16:09:18 +01:00
Eli Zaretskii
0f3947b379 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2025-12-09 14:32:03 +02:00