1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-09 21:20:45 -08:00
Commit graph

175108 commits

Author SHA1 Message Date
Manuel Giraud
1adcbdb21c Add a shortcut to go up in the menu hierarchy.
* lisp/tmm.el (tmm-prompt): Add a shortcut to go up in the menu
hierarchy (bug#73498).
(tmm-completion-prompt): Document it in help message.
(tmm-define-keys): Add the shortcut in the keymap.
* etc/NEWS: Document the change.
2024-10-06 20:29:05 +03:00
Juri Linkov
9102f1eaaf * lisp/vc/diff-mode.el (diff-apply-buffer): Add more failures.
Add 'failures' as an argument to the 'message' call.
2024-10-06 20:16:21 +03:00
Dmitry Gutov
61c91389a4 help-setup-xref: Simplify further
* lisp/help-mode.el (help-setup-xref): Simplify, given that the
vars are marked 'permanent-local' already (bug#73637).
2024-10-06 16:31:42 +03:00
Daniel Colascione
500f5da5fb Simplify xref regular expression with rx
* lisp/progmodes/xref.el (xref--regexp-to-extended): switch to rx
regular expression for legibility
2024-10-05 22:40:23 -04:00
Dmitry Gutov
e776df2a3e help-setup-xref: Keep the local values only of some variables
* lisp/help-mode.el (help-setup-xref): Kill all local variables,
saving ones that are known to need to be preserved (bug#73637).
2024-10-06 04:32:00 +03:00
Alan Mackenzie
4c7a6dc1a0 CC Mode: Remove search limit to fontify first decl in xdisp.c
An unneeded 10,000 character search limit prevents the full
fontification of the first declaration of xdisp.c, since the
introductory commentary is longer than that.

* lisp/progmodes/cc-engine (c-find-decl-spots): Remove the
10,000 char limit.
2024-10-05 17:28:28 +00:00
Stefan Kangas
24fe762503 Remove redundant face specs in manoj-dark theme
* etc/themes/manoj-dark-theme.el (manoj-dark): Remove redundant face
specs.  ':bold t' duplicates ':weight bold', and ':italic t' duplicates
':slant italic'.
2024-10-05 18:31:50 +02:00
Eli Zaretskii
d54e7f1392 ; Fix warnings in register.el
* lisp/register.el (dired-current-directory): Declare.
(file-to-register): Doc fix.
2024-10-05 15:07:24 +03:00
Eli Zaretskii
7949452350 Merge from origin/emacs-30
b68b9f291c ; * lisp/progmodes/csharp-mode.el (treesit-query-compile)...
688201ef18 ; * lisp/window.el (switch-to-prev-buffer-skip-regexp): D...
ba44fc9a44 Restore comment/string check for 'electric-layout-mode'
5a462948e1 Update Arni Magnusson's email address
6b1271b169 Fix python-ts-mode-map docstring
aaaafddc94 Normalize "Commentary" section in eudc.el
d656be9794 Expand email abbrevs in X-Debbugs-Cc header.
e9dcf0c57d Fix 'list-tags' when invoked from a non-file buffer
51ef05f684 count-windows: Fix reference to walk-windows
5eaf0c784b * lisp/info-look.el (mapc): Add use-package manual's index.
705a5a1a9e ; * ChangeLog.4: Fix attribution of one change.
bf26ff0dc8 Update csharp-ts-mode font-lock (bug#73369)
4c866abab9 ; * doc/lispref/variables.texi (Creating Buffer-Local): F...
d42d7d474f ; * lisp/doc-view.el (doc-view-svg-face): Copy-edit docst...
f46f476bb8 ; * admin/MAINTAINERS: Take VC subsystem, add note about ...
d68e6d2689 ; rcirc-update-activity-string: Justify some existing beh...
e6a37869c8 Fix inconsistency in value of rcirc-activity-string
108b3179bd Revert "; Minor clarification in variables.texi"
44156c2140 ; Minor clarification in variables.texi
63058e1153 Tag interactive commands in 'lua-ts-mode'
84bea20eba ; * lisp/info-look.el: Add two more links.
96b87ad536 Mention LSP acronym in eglot defgroup docstring
9c904e8cea Change :group of 'eglot' defgroup to 'tools'
fd1a1b0780 Remove out-of-date documentation from python.el
11e3e0cadd Fix executing commands in Eshell using "env" with no loca...
c0ef8a9a1b Fix a typo in the calendar manual
36ff7138fe ; Fix a thinko in sieve-manage.el
7abecbcd63 ; * nt/INSTALL: Update MinGW notes URL.  (Bug#73528)

# Conflicts:
#	admin/MAINTAINERS
2024-10-05 07:41:22 -04:00
Eli Zaretskii
b68b9f291c ; * lisp/progmodes/csharp-mode.el (treesit-query-compile): Declare. 2024-10-05 14:38:48 +03:00
Eli Zaretskii
688201ef18 ; * lisp/window.el (switch-to-prev-buffer-skip-regexp): Doc fix (bug#73545). 2024-10-05 13:30:30 +03:00
Morgan Willcock
ba44fc9a44 Restore comment/string check for 'electric-layout-mode'
This reverts an accidental change which allowed
'electric-layout-mode' to insert newlines inside strings and
comments.  The new behavior can be obtained by setting the
new variable 'electric-layout-allow-in-comment-or-string' to a
non-nil value.
* lisp/electric.el (electric-layout-allow-in-comment-or-string):
New variable to determine whether inserting newlines is
permitted within comments or strings.
(electric-layout-post-self-insert-function-1): Restore the
previous default behavior of not inserting newlines within
comments or strings.
2024-10-05 13:11:04 +03:00
Eli Zaretskii
b2ebba1d3c ; * etc/NEWS: Fix formatting. 2024-10-05 13:07:25 +03:00
Barra Ó Catháin
048e72a403 Add file/buffer-to-register (Bug#73308)
* doc/emacs/regs.texi (File and Buffer Registers): Update
documentation to refer to 'file-to-register' and
'buffer-to-register'.
* etc/NEWS: Announce the new commands.
* lisp/bindings.el (ctl-x-r-map): Map new commands into the
register keymap.
* lisp/register.el (register-command-info): Register new commands.
(jump-to-register): Remove docstring line referring to using
set-register instead of new commands.
(file-to-register): Add function for storing files in registers.
(buffer-to-register): Add function for storing buffers in
registers.
(register-buffer-to-file-query): Add function for converting
buffer registers to file-query registers on killing a buffer.
2024-10-05 13:06:49 +03:00
Stefan Kangas
364801fcd6 Prefer defvar-keymap in python.el
It's okay to use defvar-keymap here since the 'compat' package backports
it for all versions of Emacs that we support (24.4 or later).

* lisp/progmodes/python.el (python-mode-map): Prefer defvar-keymap.
(python-menu): Move to toplevel.
2024-10-05 11:50:34 +02:00
Stefan Kangas
84c66625e5 ; Minor cleanup of python-interpreter variable
* lisp/progmodes/python.el (python-interpreter)
(python-shell-interpreter): Simplify definition.
2024-10-05 11:48:36 +02:00
Sean Whitton
50e5221236 ; Tweak line breaks in last change 2024-10-05 17:23:26 +08:00
Sean Whitton
a96954b982 icomplete-completions: Revise computation of prospects-len
* lisp/icomplete.el (icomplete-completions): Revise computation of
prospects-len (i) to avoid calling string-width on the entire
buffer-string, which could be slow; and (ii) to better handle minibuffer
prompts with embedded newlines (bug#72826).
2024-10-05 15:42:49 +08:00
Eshel Yaron
9f54f24e94
; Fix clean up of local variables in Help buffers
* lisp/help-mode.el (help-setup-xref): Kill local values of
'xref-backend-functions' and
'semantic-symref-filepattern-alist' regardless of
'outline-minor-mode'.
2024-10-05 08:55:26 +02:00
Sean Whitton
069ecc9c4c work-buffer--release: Bind inhibit-read-only
* lisp/emacs-lisp/subr-x.el (work-buffer--release): Bind
inhibit-read-only while erasing the buffer.
2024-10-05 09:15:46 +08:00
Stefan Kangas
5a462948e1 Update Arni Magnusson's email address
* .mailmap:
* doc/lispref/ChangeLog.1:
* doc/misc/ChangeLog.1:
* lisp/ChangeLog.16:
* lisp/ChangeLog.17:
* lisp/progmodes/bat-mode.el: Update email address of
Arni Magnusson.  (Bug#73631)
2024-10-05 02:30:41 +02:00
Stefan Kangas
6b1271b169 Fix python-ts-mode-map docstring
* lisp/progmodes/python.el (python-ts-mode-map): Fix docstring.
2024-10-05 01:58:50 +02:00
Stefan Kangas
6e8fc4f6ea Use python-mode for SCons build files
SCons is a build system whose associated files are Python scripts.
Ref: https://www.scons.org/doc/0.96/HTML/scons-user/x325.html

* lisp/progmodes/python.el (python--auto-mode-alist-regexp):
Use 'python-mode' for SCons build files.
2024-10-05 01:08:14 +02:00
Stefan Kangas
aaaafddc94 Normalize "Commentary" section in eudc.el
* lisp/net/eudc.el: Normalize "Commentary" section to make
'M-x describe-package RET eudc RET' more useful.
2024-10-05 00:45:54 +02:00
Stefan Kangas
e2b8e9d940 Also use "Python Module Index" for info lookup
* lisp/info-look.el (:mode): Also search Python module index.
2024-10-05 00:43:06 +02:00
Stefan Kangas
0cca6146dc Future-proof searching for Python info manual
* lisp/info-look.el (:mode): Python is released annually (PEP 602), so
search for minor version based on the current year.
2024-10-05 00:21:42 +02:00
Stefan Kangas
776ca54e8d ; * etc/NEWS: Document Python electric-layout-mode support. 2024-10-04 23:39:22 +02:00
Stefan Kangas
ee6e737fdf python: Better support := in electric-layout-mode
* lisp/progmodes/python.el (python-base-mode): Use heuristic to better
support the Python walrus operator := in electric-layout-rules.
2024-10-04 23:39:22 +02:00
Stefan Kangas
e9727982cf * lisp/info-look.el (:mode): Support IELM. 2024-10-04 23:36:12 +02:00
Stefan Kangas
ecac8ca62e Shorten info-lookup-mode docstring
* lisp/info-look.el (info-lookup-mode): Shorten variable docstring by
removing information that is auto-generated by 'describe-variable'.
2024-10-04 23:35:33 +02:00
Stefan Kangas
9ba20e8f39 Expose lambdas in info-look.el to byte-compiler
* lisp/info-look.el (:mode): Expose lambdas to byte-compiler.
2024-10-04 19:06:41 +02:00
Eli Zaretskii
d656be9794 Expand email abbrevs in X-Debbugs-Cc header.
* lisp/mail/mailabbrev.el (mail-abbrev-mode-regexp):
* lisp/mail/mailalias.el (mail-address-field-regexp)
(mail-complete-alist): Add "X-Debbugs-Cc" to headers where email
aliases should be expanded, for compatibility with emacsbug.el.
2024-10-04 16:32:13 +03:00
Sean Whitton
1094c3f914 find-function-mode: Define keys at a low precedence level
* lisp/emacs-lisp/find-func.el (find-function-mode-map): Delete.
(find-function-mode): Define keys at the precedence level of
the global map for compatibility with the historical behavior of
find-function-setup-keys.
2024-10-04 20:46:00 +08:00
Eli Zaretskii
e9dcf0c57d Fix 'list-tags' when invoked from a non-file buffer
This use case was broken by the improvement that attempts to
offer the current buffer's file name as the default file whose
tags to list.
* lisp/progmodes/etags.el
(tags--get-current-buffer-name-in-tags-file): Doc fix.  Return nil
if no file is associated with the current buffer, and avoid
signaling an error if 'buffer-file-name' returns nil.  (Bug#37611)
(list-tags): Doc fix.  Signal an error if the user specifies no
file name at the prompt.

* doc/emacs/maintaining.texi (List Identifiers): Fix wording of
the documentation of 'list-tags'.
2024-10-04 14:39:50 +03:00
Mattias Engdegård
ea7be865ac * lisp/net/sieve-mode.el (sieve-tagged-arguments): Face name typo. 2024-10-04 13:38:58 +02:00
Sean Whitton
51ef05f684 count-windows: Fix reference to walk-windows
* lisp/window.el (count-windows): Refer to walk-windows for the
precise meaning of both the MINIBUF and ALL-FRAMES arguments,
not just the ALL-FRAMES argument.  In both functions, these
arguments are both passed through to window-list-1.
2024-10-04 17:28:59 +08:00
Mattias Engdegård
336e977f18 ; * lisp/doc-view.el (doc-view-djvused-program): allow nil in type 2024-10-04 10:19:26 +02:00
Eli Zaretskii
598f15bcaf ; * lisp/files.el (save-some-buffers-action-alist): Fix comment. 2024-10-04 08:43:54 +03:00
Eli Zaretskii
f3f57c1198 ; * doc/emacs/misc.texi (DocView Navigation): Fix wording. 2024-10-04 08:40:39 +03:00
Visuwesh
d6dd71cd56 Add imenu index function for DjVu files in doc-view
* lisp/doc-view.el (doc-view-pdfdraw-program): Prefer mutool
over other names.
(doc-view-imenu-enabled): Tweak the default value to check for
'djvused', and make it obsolete.
(doc-view--djvu-outline, doc-view--parse-djvu-outline): Add new
functions to return imenu index for a Djvu file.
(doc-view--outline): Add new function to create the imenu index
depending on the file type.
(doc-view--outline): Document new possible variable value.
(doc-view-imenu-index): Use the above function instead.
(doc-view-imenu-setup): Try to create the imenu index
unconditionally.
* doc/emacs/misc.texi (DocView Navigation): Mention index
creation using 'djvused' too.
* etc/NEWS: Announce the change.  (Bug#73530)
2024-10-04 07:27:13 +02:00
Daniel Colascione
5e0935d991 Fix term.el tests; refine previous change
Fix the term.el tests by making them match the new expected output.

* test/lisp/term-tests.el: defvar - defconst
(ansi-test-strings): remove unwanted text properties from
expectations

* lisp/term.el:
(term--handle-colors-list): further shrink common-case face list
2024-10-04 00:56:37 -04:00
Sean Whitton
d9e76c87a1 ; diff-delete-other-hunks manual entry: Expand explanation 2024-10-04 09:40:59 +08:00
Sean Whitton
eeeb13bed4 ; Fix word order in a recently-added comment 2024-10-04 09:25:08 +08:00
Sean Whitton
c3e989ca9d New minor mode find-function-mode replaces find-function-setup-keys
* lisp/emacs-lisp/find-func.el (find-function-mode-map):
(find-function-mode): New minor mode.
(find-function-setup-keys): Replace with stub function that just
enables the new minor mode.  Mark as obsolete.
* etc/NEWS: Announce the change.
2024-10-04 08:28:21 +08:00
Theodor Thornhill
c9e30e8c77 Add sentence and sexp movement to python-ts-mode
* lisp/progmodes/python.el (python-ts-mode): Add relevant node
types.  (Bug#60856)
2024-10-04 01:51:44 +02:00
Stefan Kangas
59dcd11433 Fix two warnings in smerge.el
* lisp/vc/smerge-mode.el (smerge-upper, smerge-lower): Fix warnings.
2024-10-04 01:38:11 +02:00
Stefan Kangas
e20ce5fcc5 Prefer defcustom :local specifier
* lisp/dirtrack.el (dirtrack-list):
* lisp/emacs-lisp/lisp.el (defun-prompt-regexp):
* lisp/emulation/viper-init.el
(viper-related-files-and-buffers-ring):
* lisp/emulation/viper-util.el (viper-syntax-preference):
* lisp/erc/erc.el (erc-ignore-list):
* lisp/files.el (buffer-offer-save, backup-by-copying-when-mismatch):
* lisp/find-file.el (ff-pre-find-hook, ff-pre-load-hook)
(ff-post-load-hook, ff-not-found-hook, ff-file-created-hook)
(ff-case-fold-search, ff-always-in-other-window)
(ff-ignore-include, ff-quiet-mode, ff-other-file-alist)
(ff-search-directories):
* lisp/mh-e/mh-e.el (mh-scan-prog):
* lisp/newcomment.el (comment-column):
* lisp/obsolete/rlogin.el (rlogin-directory-tracking-mode):
* lisp/play/decipher.el (decipher-ignore-spaces):
* lisp/plstore.el (plstore-encrypt-to):
* lisp/proced.el (proced-format, proced-filter, proced-sort)
(proced-descend, proced-auto-update-flag, proced-tree-flag):
* lisp/progmodes/fortran.el (fortran-line-length):
* lisp/shell.el (shell-history-file-name):
* lisp/simple.el (goal-column, fill-prefix):
* lisp/vc/ediff-init.el (ediff-use-faces)
(ediff-highlight-all-diffs, ediff-autostore-merges):
* lisp/vc/ediff-merg.el (ediff-show-clashes-only)
(ediff-skip-merge-regions-that-differ-from-default): Prefer defcustom
:local specifier to using 'make-variable-buffer-local' directly.
2024-10-04 01:38:11 +02:00
Stefan Kangas
5eaf0c784b * lisp/info-look.el (mapc): Add use-package manual's index. 2024-10-03 23:53:10 +02:00
Dmitry Gutov
bde00266db help-setup-xref: Clean up xref backend before non-Lisp uses
* lisp/help-mode.el (help-setup-xref): Kill more local variables,
previously set in help-fns--setup-xref-backend (bug#69462).
2024-10-03 22:19:56 +03:00
Dmitry Gutov
4d43fbe3f5 ; Update a comment accordingly 2024-10-03 22:07:58 +03:00