1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-06 14:02:07 -08:00
Commit graph

176101 commits

Author SHA1 Message Date
Yuan Fu
87f83f1c17
Fix tsx-ts-mode syntax propertize function (bug#73978)
* lisp/progmodes/typescript-ts-mode.el:
(tsx-ts--syntax-propertize-captures): Apply punctuation syntax
on balanced pairs, instead of using string syntax.
2025-01-04 11:53:39 -08:00
Juri Linkov
d9a0e78197 * lisp/treesit.el (treesit-transpose-sexps): Improve (bug#60655).
Use 'treesit-thing-next' and 'treesit-thing-prev' with
'treesit-node-named' to transpose named siblings that leaves the right
punctuation in anonymous nodes between named siblings.  Fall back
to 'transpose-sexps-default-function' inside strings and comments.
(treesit-node-named): New helper function.
2025-01-04 20:30:07 +02:00
Eli Zaretskii
6814ab06f2 Merge from origin/emacs-30
6468c3f7a7 Update doc string of 'insert'
6d8c3c0cbe Use `keymap*-set' over `global-set-key'/`define-key' in e...
4b2bb63b7a Fix documentation and prompt in 'package-isolate'
55f43f5b22 ; Fix typo in treesit-explore-mode
921f454f50 Update fontification for attribute values in heex-ts-mode
ae2589ea7a Add expression handling to heex-ts-mode
0cacf80639 ; * etc/NEWS: Document change of 'make-cursor-line-fully-...
f47a29da5c * lisp/man.el (Man-mode): Improve docstring.

# Conflicts:
#	etc/NEWS
2025-01-04 09:59:55 -05:00
Eli Zaretskii
a1b687568f ; Merge from origin/emacs-30
The following commits were skipped:

cd6e2a0828 Fix copyright years by hand
7fa975adbc Update copyright year to 2025
2025-01-04 09:59:53 -05:00
Eli Zaretskii
d63767995e Merge from origin/emacs-30
afe776051e [project-vc]: Make project-buffers more consistent with p...
a720458fdd (elisp-flymake-byte-compile): Improve UX with `debug-on-e...
7acfea1935 ; * doc/lispref/modes.texi (Customizing Keywords): Fix ty...
d47a7d6f0f ; Add missing parameters in keymap doc
07e9f27c3e ; * doc/misc/calc.texi: Fix makeinfo warnings (bug#75166).
43a8f0de5e Always match underscore variables for elixir-ts-mode
2025-01-04 09:59:52 -05:00
Ulrich Müller
6468c3f7a7 Update doc string of 'insert'
* src/editfns.c (Finsert): Mention 'decode-coding-string' instead
of the obsolete 'string-as-multibyte' in doc string.  (Bug#75345)
2025-01-04 15:31:24 +02:00
Jared Finder
ba6429081a Don't always enable xterm-mouse-mode (bug#74833)
Many terminals set the environment variable TERM to "xterm" even when they
don't support all functionality in xterm.  This means that enabling
xterm-mouse-mode can break critical editing workflows like copy/paste.  This
adds checks for the specific terminal Emacs is run in and only enables
xterm-mouse-mode on terminals knows to support all critical editing workflows.

* etc/NEWS: Update announcement
* lisp/term/xterm.el (xterm--auto-xt-mouse-allowed-names)
(xterm--auto-xt-mouse-allowed-types): New variables to control
what terminals automatically enable xterm-mouse-mode.
(xterm--report-background-handler, xterm--version-handler): Use
xterm--read-string.
(xterm--read-string, xterm--query-name-and-version): New
function.
(xterm--init): Check what terminal is running and if
xterm-mouse-mode was manually called.
* lisp/xt-mouse.el (xterm-mouse-mode-called): New variable.
(xterm-mouse-mode): Set xterm-mouse-mode-called.  Mention
automatic call by xterm--init.  Delete outdated comment text.
2025-01-04 15:14:36 +02:00
Eli Zaretskii
b63ba892f9 Update eln-cache when --init-directory is used
* lisp/startup.el (normal-top-level): Update eln-cache after
'user-emacs-directory' is set by --init-directory.  Patch by
Jordan Isaacs <jordan@snowytrees.dev>.  (Bug#75022)
2025-01-04 14:44:10 +02:00
Lin Sun
5fe7f86367 * lisp/vc/ediff-util.el: Loop the ediff-session-registry instead of buffers
This avoids aborting the loop if an error happens in some buffer.
(Bug#74881)
2025-01-04 14:37:42 +02:00
Hong Xu
6d8c3c0cbe Use keymap*-set' over global-set-key'/`define-key' in elisp intro
* doc/lispintro/emacs-lisp-intro.texi (Key Bindings): Since
`global-set-key' and `define-key' are considered legacy, we encourage
`keymap-global-set' and `keymap-set' now.  (Bug#74999)
2025-01-04 14:33:10 +02:00
Eli Zaretskii
4b2bb63b7a Fix documentation and prompt in 'package-isolate'
* lisp/emacs-lisp/package.el (package-isolate): Fix doc string and
the prompt.  (Bug#75163)
2025-01-04 14:18:54 +02:00
Eli Zaretskii
742b792175 Fix mouse clicks on characters with parenthesis syntax
* lisp/mouse.el (context-menu-region, mouse-skip-word)
(mouse-start-end): Use 'syntax-after' instead of 'char-syntax', to
pay attention to 'syntax-table' text properties.  (Bug#74415)
2025-01-04 12:51:40 +02:00
Filippo Argiolas
752ba27425
Improve doxygen font-lock rules in c-ts-mode (bug#75012)
And also c++-ts-mode.

* lisp/progmodes/c-ts-common.el:
(c-ts-mode-doxygen-comment-font-lock-settings): Add rules for type,
storageclass and note/warning/error tags.

Copyright-paperwork-exempt: yes
2025-01-03 23:38:32 -08:00
Yuan Fu
a9c1620809
; Minor change in treesit-admin--generate-compatibility-report
* admin/tree-sitter/treesit-admin.el:
(treesit-admin--generate-compatibility-report): Use th for
languages.
2025-01-03 23:38:32 -08:00
Yuan Fu
d32f3eed99
; Minor rephrasing in treesit-admin--verify-major-mode-queries
* admin/tree-sitter/treesit-admin.el:
(treesit-admin--verify-major-mode-queries): Minor rephrase.
2025-01-03 23:38:32 -08:00
Yuan Fu
55f43f5b22
; Fix typo in treesit-explore-mode
* lisp/treesit.el (treesit-explore-mode): We added the hook to
kill-buffer-hook, so make sure to remove it from
kill-buffer-hook, not post-command-hook.
2025-01-03 21:40:42 -08:00
Daniel Colascione
b828d36ded Automatically redraw frames for filtered faces
Automatically redraw frames when we detect that a window
parameter used in a face filter is changed.  (Bug#75291)

* src/window.c (Fset_window_parameter): redraw window, actually
whole frame in this implementation, on face-relevant parameter
change
(syms_of_window): add window_auto_redraw_on_parameter_change
* src/xfaces.c (evaluate_face_filter): record properties
2025-01-03 23:48:41 -05:00
Stefan Kangas
8e9317a1de Extract new function man--maybe-fontify-manpage
* lisp/man.el (man--maybe-fontify-manpage): Extract function from...
(Man-getpage-in-background, Man-update-manpage)
(Man-bgproc-filter): ...here.
2025-01-03 22:10:51 +01:00
Stefan Kangas
e825502ded ; Fix indentation 2025-01-03 21:32:16 +01:00
Jonas Bernoulli
58df9e272b
Update to Transient v0.8.3-2-gf0478b29 2025-01-03 19:51:08 +01:00
Stefan Monnier
3740d9c838 (mpc-cmd-find): Try and fix bug#41493
* lisp/mpc.el (mpc--proc-alist-to-alists): Don't presume that we
have either `directory` or `file` entries, instead allow both at
the same time.
(mpc-cmd-find) <Directory>: Don't presume that `directory`
entries have no associated data, so throw them away only after
having parsed them with `mpc--proc-alist-to-alists`.
2025-01-03 13:24:26 -05:00
Stefan Kangas
e0b4e9ece9 Add more text-based browser alternatives
* lisp/net/browse-url.el (browse-url-text-browser): Add more
alternatives.
2025-01-03 17:32:58 +01:00
Wilhelm Kirschbaum
921f454f50 Update fontification for attribute values in heex-ts-mode
Attribute values are strings as with html-ts-mode.

* lisp/progmodes/heex-ts-mode.el (heex-ts--font-lock-settings):
Change to attribute value to @font-lock-string-face.  (Bug#75192)
2025-01-03 16:13:37 +01:00
Wilhelm Kirschbaum
ae2589ea7a Add expression handling to heex-ts-mode
On the latest update of the grammar expressions were added and won't be
seen as directives anymore.

* lisp/progmodes/heex-ts-mode.el
(heex-ts--sexp-regexp): Match on expression as well.
(heex-ts--indent-rules): Indent on expression end.  (Bug#75191)
* test/lisp/progmodes/heex-ts-mode-resources/indent.erts: Add expression
indent test.
2025-01-03 09:41:15 +01:00
Eli Zaretskii
0cacf80639 ; * etc/NEWS: Document change of 'make-cursor-line-fully-visible'.
Bug#65214, bug#74430.
2025-01-03 10:27:46 +02:00
Stefan Kangas
279a7d950f Improve temporary file handling in browse-url
* lisp/net/browse-url.el (browse-url-delete-temp-file): Don't add
to kill-buffer-hook on top level.
(browse-url--temp-file-setup): New macro to set 'kill-buffer-hook'
buffer-locally to above function when creating a temporary file.  Use
stricter permissions to protect user privacy on multi-user systems.
(browse-url-of-file, browse-url-of-buffer): Use above new macro.

(browse-url-delete-temp-file): Simplify calling convention by removing
unused argument.
2025-01-03 07:51:21 +01:00
Po Lu
b683280f87 ; * exec/configure.ac (config-mips.m4): Fix typo. 2025-01-03 13:04:34 +08:00
Stefan Kangas
597161fe1e Remove gnudoit support from browse-url.el
* lisp/net/browse-url.el (browse-url-gnudoit-program)
(browse-url-gnudoit-args, browse-url-w3-gnudoit): Remove support
for gnudoit, obsolete since Emacs 25.1.
2025-01-03 04:08:44 +01:00
Stefan Kangas
f47a29da5c * lisp/man.el (Man-mode): Improve docstring. 2025-01-03 03:36:38 +01:00
Stefan Kangas
004a48b3d4 Re-enable caching for 'M-x man' completion on macOS
On macOS, getting the completion results when you type 'M-x man RET' can
take up to several seconds, even on a reasonably modern MacBook Pro,
probably due to the lack of man-db and the need to process the output.

Caching of "man -k ^" completion results was added in 2009 due to
perceived slowness on some systems, but was unfortunately effectively
disabled again in 2013.  Let's re-enable it on macOS.

* lisp/man.el (Man-cache-completion-results-flag): New variable
set to t by default on macOS, and nil elsewhere.
(man): Cache completion results when above new variable is t.
2025-01-03 03:12:37 +01:00
Stefan Kangas
58c95e9bab New defgroup man-faces
* lisp/man.el: Delete redundant option :group specifiers.
(man-imenu-title): New defgroup.
(Man-overstrike, Man-underline, Man-reverse): Add faces to above
new defgroup.
2025-01-02 22:00:16 +01:00
Stefan Kangas
ca79916179 Respect 'manual-program' variable
* lisp/man.el (Man-man-k-flags): Respect 'manual-program'
variable.
2025-01-02 21:24:48 +01:00
Stefan Monnier
8f81c2b02f (describe-variable): Fix bug#73872
* lisp/help-fns.el (describe-variable): Put a `syntax-table` property
on the printed value for better navigation.  Remove `set-syntax-table`
since `lisp-data-mode` already did it.
(describe-variable): Remove `set-syntax-table`, not needed any more.

* lisp/help-mode.el (help-mode-syntax-table): `;` shouldn't start a comment.
(help-make-xrefs): Use `with-syntax-table`.
2025-01-02 14:58:10 -05:00
Paul Eggert
f65520cad4 admin/merge-gnulib now warns if module lists change
From suggestions by Eli Zaretski and Stefan Kangas in:
https://lists.gnu.org/r/emacs-devel/2025-01/msg00036.html
https://lists.gnu.org/r/emacs-devel/2025-01/msg00037.html
* admin/merge-gnulib: For style consistency,
prefer ‘[ EXPR ]’ to ‘test EXPR’ and prefer -e to -f.
Fix bug that forgot to clean lib directory if it’s ./lib.
Check for lib/gnulib.mk.in, which we used directly, not ‘configure’.
(LC_ALL): Set to C.
(autogen): New function, to make it clearer to user when
commands are operating in some other directory.
(get_module_list): New function.
(old_modules, new_modules): New vars.
If they differ, issue a warning.
2025-01-02 11:30:33 -08:00
Stefan Monnier
fba3c7ff3f Prefer %S format over %s for non strings
* lisp/reveal.el (reveal-open-new-overlays, reveal-close-old-overlays):
* lisp/gnus/nnimap.el (nnimap-header-parameters)
(nnimap-make-process-buffer):
* lisp/gnus/nntp.el (nntp-make-process-buffer):
* lisp/progmodes/flymake.el (flymake--disable-backend):
* lisp/simple.el (next-error-internal):
Prefer `%S` format over `%s` for non strings.
2025-01-02 14:29:49 -05:00
Stefan Kangas
cd6e2a0828 Fix copyright years by hand
These are dates that admin/update-copyright did not update.
2025-01-02 18:44:48 +01:00
Stefan Kangas
7fa975adbc Update copyright year to 2025
Run "TZ=UTC0 admin/update-copyright".
2025-01-02 18:39:42 +01:00
Dmitry Gutov
afe776051e [project-vc]: Make project-buffers more consistent with project-files
* lisp/progmodes/project.el (project-buffers):
Catch 'file-missing' error to continue anyway if .git does not
exist (bug#74826).
2025-01-02 18:58:40 +02:00
Stefan Monnier
a720458fdd (elisp-flymake-byte-compile): Improve UX with debug-on-error
* lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Don't jump
into the debugger just because the content is not trusted.
2025-01-02 10:51:38 -05:00
Roland Winkler
2a5725b99a Fix NEWS entries for BibTeX mode. 2025-01-02 09:11:04 -06:00
Po Lu
1bc8412ecb ; Fix the MS-DOS build
* msdos/sedlibmk.inp: Adapt to new GNulib module names.
2025-01-02 20:29:12 +08:00
Po Lu
be9577d4a1 Fix volatile Android build
* exec/Makefile.in (config-mips.m4): Call config.status in
builddir.
2025-01-02 20:26:56 +08:00
Eli Zaretskii
d0b9d35fbf Adjust nt/gnulib-cfg.mk to recent Gnulib import
* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_dirent-h)
(OMIT_GNULIB_MODULE_inttypes-h-incomplete)
(OMIT_GNULIB_MODULE_stdio-h, OMIT_GNULIB_MODULE_stdlib-h)
(OMIT_GNULIB_MODULE_sys_select-h, OMIT_GNULIB_MODULE_sys_stat-h)
(OMIT_GNULIB_MODULE_sys_time-h, OMIT_GNULIB_MODULE_sys_types-h)
(OMIT_GNULIB_MODULE_unistd-h): Rename to follow Gnulib renaming
the modules from "FOO" to "FOO-h".
2025-01-02 09:44:44 +02:00
Eli Zaretskii
b082a8d951 ; Fix recent changes in bibtex.el documentation
* lisp/textmodes/bibtex.el (bibtex-BibTeX-entry-alist)
(bibtex-BibTeX-field-alist): Doc fixes.

* etc/NEWS: Fix format of a new bibtex entry.
2025-01-02 09:44:09 +02:00
Roland Winkler
b26418694e Provide more flexibility for definition of BibTeX entries.
* lisp/textmodes/bibtex.el (bibtex-aux-opt-alist): Rename from
bibtex-user-optional-fields.
(bibtex-BibTeX-entry-alist, bibtex-biblatex-entry-alist): Permit
aliases that inherit their definition from another entry.
(bibtex-BibTeX-aux-entry-alist, bibtex-biblatex-aux-entry-alist)
(bibtex-BibTeX-aux-opt-alist, bibtex-biblatex-aux-opt-alist): New
user variables.
(bibtex-entry-alist): Honor these new variables.
(bibtex-field-alist): New function.
(bibtex-include-OPTkey): Default changed to nil, declared
obsolete.  Use bibtex-aux-opt-alist instead.
(bibtex-set-dialect): Use cl-flet and bibtex-field-alist.
(bibtex-dialect-select-map): New variable.
(bibtex-init-dialect): New function.
(bibtex-field-list): Simplify.
(bibtex-print-help-message): Bug fix.
2025-01-01 23:09:58 -06:00
Stefan Kangas
fec6078f62 * lisp/progmodes/grep.el (grep-mode-map): Improve docstring. 2025-01-02 02:49:51 +01:00
Stefan Kangas
885f6993b7 Prefer defvar-keymap in grep.el
* lisp/progmodes/grep.el (grep-mode-map, grep-edit-mode-map):
Prefer defvar-keymap.
2025-01-02 02:49:51 +01:00
Stefan Kangas
21c7c594e8 ; Update missed copyright year 2025-01-02 02:41:55 +01:00
Paul Eggert
3adf3f546e Update from Gnulib by running admin/merge-gnulib 2025-01-01 15:19:02 -08:00
Paul Eggert
bdb13a0e5c Adjust to Gnulib’s recent module renaming
* admin/merge-gnulib (GNULIB_MODULES, AVOIDED_MODULES):
Change to match Gnulib’s current module names.
2025-01-01 15:19:02 -08:00