1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00
Commit graph

180098 commits

Author SHA1 Message Date
Elías Gabriel Pérez
9fc46f1fd9 hideshow: Rework previous changes
* lisp/progmodes/hideshow.el (hs-grok-mode-type): Improve 'hs--set-variable'.
* lisp/progmodes/python.el (python-base-mode, python-ts-mode):
Provide backward-compatibility for older versions.
2025-11-09 09:20:05 +02:00
Eli Zaretskii
f11349ea1a Fix a crash in 'merge_face_ref'
* src/xfaces.c (get_lface_attributes): Avoid crashes if F is NULL.
This happens when 'face_inheritance_cycle' is for some reason
called for the default attributes of a face (which are applicable
to future frames).  We avoid the crashes by not consulting face
remapping in that case, since face remapping is buffer-local, and
therefore cannot possibly affect face defaults.  (Bug#79790)
2025-11-09 08:58:15 +02:00
Wilson Snyder
266335374e verilog-mode: Make recent change backward-compatible and update from package upstream.
* lisp/progmodes/verilog-mode.el (verilog-mode): Support Emacs 31.1
'hs-forward-sexp-func in backward-compatible way.
(verilog-submit-bug-report) Remove key binding.
2025-11-08 18:33:58 -05:00
Elías Gabriel Pérez
ef2584585b hideshow: Rework previous changes
* lisp/progmodes/hideshow.el: Set default values of buffer-local variables.
(hs-inside-comment-p): Restore.
(hs--set-variable): Rename from 'hs--get-mode-value'.
(hs-grok-mode-type): Rework.
* lisp/nxml/nxml-mode.el:
* lisp/progmodes/f90.el:
* lisp/progmodes/fortran.el:
* lisp/progmodes/icon.el:
* lisp/progmodes/lua-mode.el:
* lisp/progmodes/python.el:
* lisp/progmodes/verilog-mode.el:
* lisp/progmodes/vhdl-mode.el:
* lisp/textmodes/mhtml-mode.el:
* lisp/textmodes/sgml-mode.el:
* lisp/treesit.el (treesit-major-mode-setup): Rename
'hs-forward-sexp-func' to 'hs-forward-sexp-function',
'hs-adjust-block-beginning' to 'hs-adjust-block-beginning-function',
'hs-find-block-beginning-func' to 'hs-find-block-beginning-function',
'hs-find-next-block-func' to 'hs-find-next-block-function',
'hs-looking-at-block-start-p-func' to 'hs-looking-at-block-start-predicate',
'hs-inside-comment-p-func' to 'hs-inside-comment-predicate'.
2025-11-08 20:04:30 +02:00
Steven Allen
5d11ee9f54 Lookup cached basic-auth credentials with the correct key
Credentials cached in 'url-basic-auth-storage' are keyed by
"server:port", but were being looked up by just "server" in
'url-basic-auth'.
* lisp/url/url-auth.el (url-basic-auth): Lookup cached basic auth
credentials by "server:port".  (Bug#79486)

* test/lisp/url/url-auth-tests.el (url-auth-test-auth-retrieve-cache):
Check the digest auth test-cases cache retrieval test cases against the
basic auth logic.
2025-11-08 19:21:10 +02:00
Alexander Kuleshov
19ee128845 * lisp/progmodes/ld-script.el: Add 'PT_TLS' to 'ld-script-keywords'. 2025-11-08 19:17:56 +02:00
David Fussner
69092236f4
Fix package-vc to install multiple info manuals
* lisp/emacs-lisp/package-vc.el (package-vc--build-documentation):
  Take the name of the .info file from the name of the source file,
  instead of from the name of the package.
2025-11-08 14:40:25 +01:00
Philip Kaludercic
60a13d85fe
Fix error messages when building docs for VC packages
* lisp/emacs-lisp/package-vc.el (package-vc--build-documentation):
Use the buffer name of the output buffer instead of the buffer
name of the current buffer.
2025-11-08 14:40:25 +01:00
Philip Kaludercic
c35e5a23fe
; * etc/NEWS: Merge diff sections 2025-11-08 14:40:25 +01:00
Philip Kaludercic
211f0520fc
Allow 'package-upgrade-all' to upgrade built-in packages
* lisp/emacs-lisp/package.el (package-upgrade-all): Respect
'package-install-upgrade-built-in'.  (Bug#79718)
2025-11-08 14:40:25 +01:00
Eli Zaretskii
00524e6e02 Merge from origin/emacs-30
a71ba898db ; Update the MinGW URLs in w32 FAQ and nt/INSTALL
e0ffcc655e No more color emoji issue on OpenBSD 7.8 and later (bug#7...
2025-11-08 07:04:52 -05:00
Eli Zaretskii
64fea996f3 Adapt vc-test-misc to MS-Windows
* test/lisp/vc/vc-tests/vc-test-misc.el (vc-test-exec-after-1)
(vc-test-exec-after-2, vc-test-exec-after-3)
(vc-test-exec-after-4, vc-test-exec-after-5): Fix shell commands
for MS-Windows: use "&" instead of ";" and don't use fractional
times for 'sleep', as some Windows ports of 'sleep' don't support
that.
2025-11-08 14:02:44 +02:00
Eli Zaretskii
2aff4fed69 ; Fix doc strings of the various 'insert-*' functions
* src/editfns.c (Finsert_before_markers)
(Finsert_and_inherit_before_markers, Finsert_char, Finsert_byte)
(Finsert_buffer_substring): Clarify the effect on markers.
(Bug#79692)
2025-11-08 13:09:36 +02:00
Lester Longley
cc4de67bd2 Fix 'bind*' in 'cond*'
* lisp/emacs-lisp/cond-star.el (cond*-non-exit-clause-substance):
Fix 'bind*' to match the documentation.  (Bug#79247)

Copyright-paperwork-exempt: yes
2025-11-08 12:43:52 +02:00
Eli Zaretskii
a71ba898db ; Update the MinGW URLs in w32 FAQ and nt/INSTALL
* nt/INSTALL: Update MinGW URLs.

* doc/misc/efaq-w32.texi (MinGW): Update the URL's and the text to
reflect the fact that mingw.org's MinGW is no longer developed and
can be found only on the WWW Archive.
(Compiling): Add a cross-reference to "MinGW".
2025-11-08 12:09:04 +02:00
Eli Zaretskii
ef9860588a ; * etc/NEWS (hs-hide-block-behavior): Explain the replacements. 2025-11-08 11:40:33 +02:00
Eli Zaretskii
d967cf5117 ; * etc/TODO: Add an item about @math images in Info buffers. 2025-11-08 09:04:32 +02:00
Eli Zaretskii
3cc34865e8 ; * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Fix typo. 2025-11-07 18:44:49 +02:00
Stefan Monnier
f356dca70b lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Fix bug#79694 2025-11-07 11:34:32 -05:00
Stefan Monnier
5c18d23d66 (diff-refine-threshold): New custom var (bug#79546)
Avoid getting stuck waiting for `diff` to refine big hunks.

* lisp/vc/diff-mode.el (diff-refine-threshold): New custom var.
(diff--refine-hunk): Add arg `skip-if-large` and use that new var if
the arg says so.
(diff-refine-hunk): Add arg `skip-if-large`.
(diff-auto-refine-mode, diff-next/prevhunk, diff--font-lock-refined):
Use it.
2025-11-07 11:13:27 -05:00
Sean Whitton
7557dcbabf New tests for vc-exec-after
* test/lisp/vc/vc-tests/vc-test-misc.el
(vc-test--exec-after-wait): New macro.
(vc-test-exec-after-1, vc-test-exec-after-2)
(vc-test-exec-after-3, vc-test-exec-after-4)
(vc-test-exec-after-5): New tests.
2025-11-07 15:40:25 +00:00
Sean Whitton
4eb36ad44d vc-exec-after: Pass zero timeout to accept-process-output
* lisp/vc/vc-dispatcher.el (vc-exec-after): Pass zero timeout to
accept-process-output.
Fix due to Spencer Baugh <sbaugh@janestreet.com>.
2025-11-07 15:40:25 +00:00
Sean Whitton
4fbc6088f2 Replace recursive calls of vc-exec-after
* lisp/vc/vc-dispatcher.el (vc-exec-after): Refactor so as to no
longer repeatedly add and remove the sentinel.  Don't have two
different ways to set mode-line-process.  Don't call
accept-process-output from the sentinel, because Emacs always
reads all available process output before calling sentinels.
2025-11-07 15:40:25 +00:00
Sean Whitton
bdaf49fd0c Merge vc--process-sentinel into vc-exec-after
* lisp/vc/vc-dispatcher.el (vc--process-sentinel, vc-exec-after):
Merge vc--process-sentinel into vc-exec-after.  Tidy up.  This
should not involve any functional changes; those are to follow.
2025-11-07 15:40:25 +00:00
Sean Whitton
645e8ca311 server-eval-at: End request in trailing space
This is for consistency with how emacsclient behaves.

* lisp/server.el (server--process-filter-1): Improve assertion.
(server-eval-at): End request with trailing space.
2025-11-07 15:33:04 +00:00
Dominik Schrempf
99a787a451 ; Fix description of use-package :custom keyword
Copyright-paperwork-exempt: yes
2025-11-07 15:21:39 +00:00
Jacob S. Gordon
c1e8fc3069 ; Add missing defcustom types in eshell and eww (bug#79607)
* lisp/eshell/esh-mode.el (eshell-scroll-to-bottom-on-input)
(eshell-scroll-to-bottom-on-output): Add t as a choice.
* lisp/net/eww.el (eww-restore-desktop): Add 'auto' as a choice.
2025-11-07 15:10:57 +00:00
Sean Whitton
816830d921 vc-start-logentry: Disable log-edit-hook when finishing immediately
* lisp/vc/vc-dispatcher.el (log-edit-hook): Declare.
(vc-start-logentry): Bind log-edit-hook to nil when finishing
the log edit immediately with a caller-supplied message.
2025-11-07 12:46:55 +00:00
Sean Whitton
68e337e630 Don't discard empty string arguments from emacsclient
* lisp/server.el (server--process-filter-1): Don't discard empty
string arguments from emacsclient.
(server-eval-args-left):
* doc/emacs/misc.texi (emacsclient Options):
* etc/NEWS: Document the change.
2025-11-07 12:33:21 +00:00
Protesilaos Stavrou
be527b5704
Update modus-themes to version 5.1.0
* doc/misc/modus-themes.org (Build on top of the Modus themes):
Bump the version number.
(Acknowledgements): Include more names in the Acknowledgements
section.
* etc/themes/modus-themes.el (modus-themes--activate)
(modus-themes-get-all-known-themes, modus-themes-known-p)
(modus-themes--list-enabled-themes)
(modus-themes-get-current-theme)
(modus-themes--get-theme-palette-subr)
(modus-themes-get-theme-palette, modus-themes-faces)
(modus-themes-theme)
(modus-themes--with-colors-resolve-palette-sort)
(modus-themes-with-colors-subr, modus-themes-with-colors):
Ensure that the modus-themes-with-colors macro works the way it
did before, namely, 'let' binding the current theme's palette.
2025-11-07 08:00:39 +02:00
Po Lu
aba7974607 * configure.ac Remove patch for bugs in nproc that have been remediated. 2025-11-07 09:36:08 +08:00
Paul Eggert
eb69aca760 Update from Gnulib by running admin/merge-gnulib 2025-11-06 14:35:21 -08:00
Paul Eggert
50a1929f6c Update from Gnulib by running admin/merge-gnulib 2025-11-06 12:12:24 -08:00
Paul Eggert
7654ec5e95 Update from Gnulib by running admin/merge-gnulib
* admin/merge-gnulib (GNULIB_MODULES): Add stdio-windows.
Also, sort and remove duplicates.
2025-11-06 12:02:53 -08:00
Mattias Engdegård
0c694624c3 * test/src/comp-tests.el (setcarcdr): Don't mutate literals. 2025-11-06 16:22:13 +01:00
Sean Whitton
bd4ac3b23b Fixes to echo area messages when creating Log Edit mode buffers
* lisp/vc/log-edit.el (log-edit): Don't emit a message when
MODE.
* lisp/vc/vc-dispatcher.el (vc-start-logentry): Use '\\<>' to
simplify the code slightly.
2025-11-06 14:34:24 +00:00
Robert Pluim
3035e44b9a Improve error message for invalid key syntax
* lisp/keymap.el: (keymap--compile-check, define-keymap--compile):
Mention 'key-valid-p' rather than 'kbd'.
2025-11-06 14:27:36 +01:00
Sean Whitton
8b241f93b7 project-compile: Ignore compile-command from vc-compilation-mode
* lisp/progmodes/project.el (project-compile): Ignore
compile-command from vc-compilation-mode (bug#79658).
* lisp/vc/vc-dispatcher.el (vc-compilation-mode-hook): New
variable.
(vc-compilation-mode): Promote to its own derived mode.  Don't
use define-derived-mode in order to preserve the BACKEND
argument to this function.  Don't give it its own major mode
map, et cetera, for now.
2025-11-06 12:57:35 +00:00
Sean Whitton
fba8b3dfb0 ; * lisp/subr.el: Fix comment level. 2025-11-06 12:56:50 +00:00
Manuel Giraud
e0ffcc655e No more color emoji issue on OpenBSD 7.8 and later (bug#79768)
Since version OpenBSD 7.8, its FreeType library supports color
emoji out of the box.  See
https://cvsweb.openbsd.org/xenocara/lib/freetype/include/freetype/config/ftoption.h?rev=1.32&content-type=text/x-cvsweb-markup.
2025-11-06 12:46:03 +02:00
Andrea Corallo
55d41f5d2b * Fix native compiler for circular objects (bug#75135)
* lisp/emacs-lisp/comp.el (comp--ssa-rename-insn): Fix circular objects.
2025-11-06 09:41:36 +01:00
Elías Gabriel Pérez
cc589d7003 hideshow: Rework previous changes
* doc/emacs/programs.texi (Hideshow):
* etc/NEWS: Fix doc.
* lisp/progmodes/hideshow.el: Update Commentary Header.
(hs-modes-alist): Remove.
(hs--get-mode-value, hs-grok-mode-type): Rework.
* lisp/treesit.el (treesit-major-mode-setup):
* lisp/emacs-lisp/lisp-mode.el:
* lisp/nxml/nxml-mode.el:
* lisp/progmodes/cc-mode.el:
* lisp/progmodes/f90.el:
* lisp/progmodes/fortran.el:
* lisp/progmodes/hideshow.el:
* lisp/progmodes/icon.el:
* lisp/progmodes/js.el:
* lisp/progmodes/lua-mode.el:
* lisp/progmodes/python.el:
* lisp/progmodes/verilog-mode.el:
* lisp/progmodes/vhdl-mode.el:
* lisp/textmodes/bibtex.el:
* lisp/textmodes/mhtml-mode.el:
* lisp/textmodes/sgml-mode.el:
* lisp/treesit.el: Fix and rework previous changes.
2025-11-06 09:41:12 +02:00
Juri Linkov
2c41bfabbc Don't move point when clicking on hideshow fringe/margin indicator
* lisp/progmodes/hideshow.el (hs-indicator-mouse-toggle-hidding):
Enclose in 'hs-life-goes-on' (bug#79585).
Suggested by Elijah Gabe Pérez <eg642616@gmail.com>.
2025-11-06 09:31:06 +02:00
Eli Zaretskii
d6402072f2 A better fix for recent changes in Gnulib's acl_entries.c
See https://lists.gnu.org/archive/html/emacs-devel/2025-11/msg00145.html
for the related discussions.
* nt/mingw-cfg.site (ac_cv_func_acl_entries): Set to "yes" to
disable compilation of lib/acl_entries.c on MinGW.

* lib/acl_entries.c (acl_entries): Revert last change, as it is no
longer needed.
2025-11-06 08:36:50 +02:00
Eli Zaretskii
58a2c2494d ; * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Doc fix. 2025-11-06 08:01:32 +02:00
Stefan Monnier
34ab8abdd2 (loaddefs-generate--emacs-batch): Chdir to lisp-directory
Chdir once and for all at the beginning to simplify the code.
Eliminate some redundant `expand-file-name`s and fix a broken use
of `expand-file-name` where we passed a list as second arg.

* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Rename DIR to
DIRS, to clarify that it can be a list.  Use `ensure-list`.
Don't pass DIR(S) directly to `expand-file-name`.
Remove redundant `expand-file-name`.
(loaddefs-generate--excluded-files): Add sanity checks.
Return relative file names since `loaddefs-generate` will make them
absolute anyway.  Simplify.
(loaddefs-generate--emacs-batch): Chdir to `lisp-directory` and
simplify the rest accordingly.
2025-11-05 15:14:45 -05:00
Stefan Monnier
02253b35af (load-history, lisp-directory): Don't file-truename
This fixes problems in some cases of out-f-tree builds
(bug#79694, bug#62099, bug#64806).

The use of true names in `load-history` dates back to to commits
33d74677e7 and 6bb6da3ec1 by Alan Mackenzie <acm@muc.de> in
May 24 2006, but that was reverted by Paul Eggert's commit
dff4f9c759 on Sep 18 2019.

* lisp/startup.el (command-line): Don't `file-truename` `lisp-directory`.
* src/lread.c (syms_of_lread) <load-history>: Adjust docstring,
to reflect the fact that the files there aren't "true names".

* doc/lispref/loading.texi (Hooks for Loading): Adjust accordingly.
Also massage the text to reflect the fact that nowadays features are
more common than file names as arguments to `with-eval-after-load`.
2025-11-05 15:12:50 -05:00
Juri Linkov
b34040302f * lisp/image.el (image-supported-file-p): Fix autoload cookie (bug#79764).
* lisp/emacs-lisp/icons.el (icons--create):
* lisp/mail/rmailmm.el (rmail-mime-set-bulk-data):
Remove unnecessary '(fboundp 'image-supported-file-p)'.
2025-11-05 19:54:56 +02:00
Eli Zaretskii
9e905357bb Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2025-11-05 18:57:27 +02:00
Eli Zaretskii
eb81318526 ; * doc/emacs/help.texi (Misc Help): Improve and extend wording. 2025-11-05 18:56:41 +02:00