1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-22 14:01:47 -07:00
Commit graph

177368 commits

Author SHA1 Message Date
Stefan Kangas
1efcd32cda Expand word list in admin/notes/jargon
* admin/notes/jargon: Add some more acronyms, remove some rare ones,
add section headers "Acronyms" and "Glossary", add entries under
"Glossary", sort, fix formatting, realign.
2025-03-08 03:06:09 +01:00
Stefan Kangas
ce43d6732b Support :maintainers in plural in <foo>-pkg.el
For some reason, MELPA emits the keyword :maintainers, despite it
being unsupported and thus leads to the "Maintainer" field being empty
in all released Emacs versions.  That said, it seems like a good idea
to support the plural form, to be consistent with :authors.

* lisp/emacs-lisp/package.el (describe-package-1): Support
:maintainers in plural, in addition to :maintainer, to be consistent
with :authors.
2025-03-08 02:29:54 +01:00
Daniel Colascione
062c6ab3dd Stop term-erase-in-line disturbing markers
* lisp/term.el (term-erase-in-line): do nothing if there's nothing to
do; insert new newlines before deleting old ones.
2025-03-07 16:27:37 -08:00
dimagid
a48659e57c Add admin/notes/jargon used in emacs-devel
* admin/notes/jargon: New file.
Ref: https://lists.gnu.org/r/emacs-devel/2025-02/msg00950.html
2025-03-07 23:00:39 +01:00
Stefan Kangas
ebb94d712e ; Add Maintainer header to checkdoc.el
* lisp/emacs-lisp/checkdoc.el: Add Maintainer header.
2025-03-07 23:00:39 +01:00
Gerd Möllmann
9277b03793 Fix tty underline capability check (bug#75024)
* src/dispextern.h (TTY_CAP_UNDERLINE_STYLED): Fix. Also make this an
enum.
2025-03-07 21:30:11 +01:00
Daniel Colascione
ae4671a7ab Revert "Stop moving markers during erase-in-line"
This reverts commit 6f19715937.
2025-03-07 12:17:54 -08:00
Daniel Colascione
6f19715937 Stop moving markers during erase-in-line
We shouldn't move a line marker just because we cleared a line next to
it.  clear-in-line is defined not to affect line structure.

* lisp/term.el (term-erase-in-line): use insert-before-markers
2025-03-07 11:24:21 -08:00
Daniel Colascione
4ea07cc4b4 Make erase-in-line conform to ANSI spec in term
When handling \e[<N>K escape sequences, we're supposed to erase both to
the left _and_ to the right of the cursor when N is two.

* lisp/term.el (term-erase-in-line): make condition check more correct
2025-03-07 11:24:21 -08:00
Stefan Kangas
af828499c6 Add type check to package-upgrade
* lisp/emacs-lisp/package.el (package-upgrade): Add type check.
2025-03-07 17:44:27 +01:00
Basil L. Contovounesios
e62e7aa899 Clean up ert-font-lock error messages
* lisp/emacs-lisp/ert-font-lock.el: Remove redundant requires.
(ert-font-lock--parse-macro-args): First return value 'doc' being
nil already indicates omission of a docstring, so remove redundant
second return value doc-p.  All users updated.  Fix error
messages (bug#76372).
(ert-font-lock--check-faces): Simplify with ensure-list.
2025-03-07 15:58:08 +01:00
Tomas Nordin
e35435daf3 view-search: Start search from beginning or end of line
* lisp/view.el (view-search): Go to beginning-of-line or end-of-line
instead of previous or next line before the search.  (Bug#76167)
2025-03-07 09:41:57 +01:00
Stefan Kangas
c6fe5b7795 Fix using log-edit-mode with git-commit-mode
* lisp/vc/log-edit.el (log-edit-font-lock-keywords): Avoid incorrect
fontification when used with the third-party git-commit-mode (part of
Magit).
2025-03-07 09:39:13 +01:00
Stefan Kangas
646b3f8c5c ; Fix file headers in tty-tip.el
* lisp/tty-tip.el: Fix file headers.
2025-03-07 09:29:31 +01:00
Stefan Kangas
53b84f7fdd Use substitute-command-keys in gnus-score-insert-help
* lisp/gnus/gnus-score.el (gnus-score-insert-help): Use
substitute-command-keys.  Clean up the code a bit.
2025-03-07 09:04:52 +01:00
Stefan Monnier
2dea3a0d34 (python-base-mode-map): Use it!
Rather than use `copy-keymap` between `python-mode-map` and
`python-ts-mode-map`, move the shared bindings to `python-base-mode-map`.

* lisp/progmodes/python.el (python-base-mode-map): Define it explicitly.
Move all the bindings of `python-mode-map` to it.
(python-mode-map, python-ts-mode-map): Inherit from it.
2025-03-06 23:23:08 -05:00
Stefan Monnier
06af71fbde * src/eval.c (signal_or_quit): Reduce scope of debugger_called 2025-03-06 23:18:31 -05:00
Stefan Monnier
fb33e3b4c7 (debug--early): Avoid re-entering the debugger for the same error
Fixes bug#76787.

* lisp/emacs-lisp/debug.el (debugger--last-error): Move ...
* lisp/emacs-lisp/debug-early.el (debugger--last-error): ... here.
(debug--early): Use it.
2025-03-06 15:23:03 -05:00
Philip Kaludercic
4719df9f42
Prepare cond-start for addition to GNU ELPA 2025-03-06 19:58:16 +01:00
shipmints
efd483cf0e mouse-face properties on tab-bar tab captions (bug#76394)
* etc/NEWS: Announce 'tab-bar' 'mouse-face' support.

* src/xdisp.c (note_tab_bar_highlight): Handle mouse-face property.

* lisp/tab-bar.el
(tab-bar-tab-highlight): New face.
(tab-bar-tab-name-format-mouse-face): New function adds the 'mouse-face'
'tab-bar-tab-highlight' to the tab name.
(tab-bar-tab-name-format-functions): Add
'tab-bar-tab-name-format-mouse-face'.
2025-03-06 20:37:44 +02:00
Juri Linkov
63cc542b94 Improve treesit settings for js/typescript/ruby-ts-mode (bug#73404)
* lisp/progmodes/js.el (js--treesit-list-nodes):
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--list-nodes):
Replace leaf "string" with "template_string" and "template_substitution"
that can contain more nodes.

* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode):
Add the 'sentence' thing to treesit-thing-settings.
2025-03-06 20:22:50 +02:00
Stefan Monnier
82affcaeff (debug): Don't kill-emacs upon exit when in batch mode
AFAICT this is a left over code from many years ago before
the `debug` special case was added to `condition-case` and
at a time where exiting from `debug` did not proceed to handle
remaining handlers.

In the usual case where we indeed want to kill Emacs,
`signal_or_quit` does it for us.

* lisp/emacs-lisp/debug.el (debug): Don't `kill-emacs` upon exit
when in batch mode (bug#76786)
2025-03-06 13:02:37 -05:00
Stefan Monnier
1133c081d6 (replace_range): Delete argument markers
* src/lisp.h (replace_range):
* src/insdel.c (replace_range): Delete argument `markers`, always true.
* src/editfns.c (Ftranslate_region_internal):
* src/cmds.c (internal_self_insert):
* src/search.c (Freplace_match): Adjust callers accordingly.
2025-03-06 11:21:42 -05:00
Eli Zaretskii
cd051ef78e Fix images on the mode line under 'mode-line-compact'
* src/xdisp.c (display_mode_line): When 'mode-line-compact'
is in effect, don't remove spaces that have a 'display'
property on them.  (Bug#76761)
2025-03-06 16:27:00 +02:00
Kazuhiro Ito
64b3ad5c76 Avoid defining unneeded variables on Cygw32
lisp/term/w32-win.el contained definitions of variables which
were not used on Cygw32.  It is now to split into two files,
common part and Windows native build specific part. The latter
is a new file, lisp/term/w32-nt.el.
* src/image.c (Qlibpng_version, Qlibgif_version)
(Qlibjpeg_version): Don't define on Cygw32 build.
* src/treesit.c (Qtree_sitter__library_abi): Ditto.

* lisp/term/w32-win.el (dynamic-library-alist, libpng-version)
(libgif-version, libjpeg-version, libgnutls-version)
(tree-sitter--library-abi, gui-backend-set-selection)
(gui-backend-get-selection, gui-backend-selection-owner-p)
(gui-selection-exists-p): Moved to lisp/term/w32-nt.el.
* lisp/term/w32-nt.el: New file, separated Windows native build
specific part from lisp/term/w32-win.el.
* lisp/loadup.el: Load term/w32-nt.el on Windows native build.
(Bug#75926)
2025-03-06 16:04:51 +02:00
Po Lu
e856e031b7 ; Merge from savannah/emacs-30
The following commit was skipped:

c3c27e50a5 ; * java/AndroidManifest.xml.in (Version-code): Update fo...
2025-03-06 21:55:41 +08:00
Po Lu
2250dafff9 Merge from savannah/emacs-30
9065423e70 ; Improve documentation of 2 symbol-related functions
2025-03-06 21:55:41 +08:00
Po Lu
b130c57275 ; Merge from savannah/emacs-30
The following commit was skipped:

41fd823d95 Fix etags tests broken by updating Copyright years
2025-03-06 21:55:41 +08:00
Po Lu
bd9ea1c7db Merge from savannah/emacs-30
93ac2cb742 Fix some widgets in customize-dirlocals
42a4c847e2 Fix register-use-preview behavior with never value
2025-03-06 21:55:41 +08:00
Po Lu
c3c27e50a5 ; * java/AndroidManifest.xml.in (Version-code): Update for Emacs 30.0.50. 2025-03-06 21:41:10 +08:00
Eli Zaretskii
3b59b8fa97 Fix etags tests due to Copyright years update
* test/manual/etags/CTAGS.good
* test/manual/etags/CTAGS.good_crlf
* test/manual/etags/CTAGS.good_update
* test/manual/etags/ETAGS.good_1
* test/manual/etags/ETAGS.good_2
* test/manual/etags/ETAGS.good_3
* test/manual/etags/ETAGS.good_4
* test/manual/etags/ETAGS.good_5
* test/manual/etags/ETAGS.good_6
* test/manual/etags/ETAGS.good_7: Update.  (Bug#76744)
2025-03-06 15:36:12 +02:00
Michael Albinus
d707688f33 ; Fix last commit
* doc/emacs/misc.texi (Shell Bookmarks): Adapt reference.

* lisp/bookmark.el (bookmark-insert): Adapt docstring.

* lisp/shell.el (shell-bookmark-name-function)
(shell-bookmark-name-from-default-directory)
(shell-bookmark-name-from-buffer-name): Adapt docstring.
(shell-bookmark-make-record, shell-bookmark-jump): Don't explain
Tramp details in the docstring, refer to the Tramp manual.
2025-03-06 12:52:51 +01:00
shipmints
c1ddf612d5 Add shell-mode bookmark support for local and remote shells (bug#65039)
* doc/emacs/misc.texi (Shell): Add "Shell Bookmarks" menu item.
(Shell Mode): Fix typo.
(Shell Bookmarks): New node.

* etc/NEWS: Announce shell-mode bookmark capability.

* lisp/bookmark.el:
(bookmark-insert): Refuse to insert bookmarks whose handlers have the
property 'bookmark-inhibit eq 'insert.

* lisp/shell.el
(shell-mode): Set bookmark-make-record-function.
(shell-bookmark-name-function): New defcustom.
(shell-bookmark-name-from-default-directory): New defun.
(shell-bookmark-name-from-buffer-name): New defun.
(shell-bookmark-defaults-function): New defvar.
(shell-bookmark-defaults): New defun.
(shell-bookmark-make-record): New defun.
(shell-bookmark-jump-non-essential): New defvar.
(shell-bookmark-jump): New defun with properties: 'bookmark-handler-type
"Shell", 'bookmark-inhibit 'insert.
2025-03-06 12:04:57 +01:00
Eli Zaretskii
9065423e70 ; Improve documentation of 2 symbol-related functions
* src/data.c (Fremove_pos_from_symbol, Fbare_symbol): Doc fixes.
(Bug#75290)
2025-03-06 12:52:05 +02:00
Eli Zaretskii
41fd823d95 Fix etags tests broken by updating Copyright years
* test/manual/etags/ETAGS.good_1:
* test/manual/etags/ETAGS.good_2:
* test/manual/etags/ETAGS.good_3:
* test/manual/etags/ETAGS.good_4:
* test/manual/etags/ETAGS.good_5:
* test/manual/etags/ETAGS.good_6:
* test/manual/etags/CTAGS.good:
* test/manual/etags/CTAGS.good_crlf:
* test/manual/etags/CTAGS.good_update: Update.  (Bug#76744)
2025-03-06 05:08:00 -05:00
Eli Zaretskii
bf027eb6ff Fix redisplay of tab bar when its text properties change
* src/xdisp.c (update_tab_bar): Use 'equal-including-properties'
to compare previous with the current tab-bar items.  (Bug#76760)
2025-03-06 10:51:45 +02:00
Mauro Aranda
93ac2cb742 Fix some widgets in customize-dirlocals
* lisp/cus-edit.el (custom-dynamic-cons-value-create): Make sure
to eval the keymap property.  (Bug#76756)
2025-03-06 05:45:50 -03:00
Eli Zaretskii
2a8cf3ca5f ; * doc/emacs/maintaining.texi (Managing Projects): Fix wording. 2025-03-06 09:43:11 +02:00
Visuwesh
6aa60038ee Add new user option to exclude projects from being remembered
* lisp/progmodes/project.el (project-list-exclude): Add new user
option to exclude projects from being remembered.
(project-remember-project): Consider the user option above.
(project-switch-project): Use 'project-remember-project' instead.
* doc/emacs/maintaining.texi (Managing Projects): Mention the new user option.
* etc/NEWS: Announce the change.  (Bug#76587)
2025-03-06 04:49:33 +02:00
Stefan Kangas
4b5cc0bfc6 Rewrite cl--parsing-keywords using backtick
* lisp/emacs-lisp/cl-seq.el (cl--parsing-keywords): Rewrite using
backtick.
2025-03-06 00:47:24 +01:00
Stefan Kangas
af44c7630c Remove more redundant 'cl-' prefixes
* lisp/emacs-lisp/cl-seq.el (cl-substitute-if, cl-substitute-if-not)
(cl-count, cl-sort): Remove more redundant 'cl-' prefixes from
arguments and let-bound variables.
2025-03-06 00:47:24 +01:00
Stefan Kangas
679966b5a0 New user option checkdoc-arguments-missing-flag
* lisp/emacs-lisp/checkdoc.el
(checkdoc-arguments-missing-flag): New user option.
(checkdoc-this-string-valid-engine): Use above new option.
(checkdoc--argument-missing-flag): Make into obsolete variable alias for
above new option.
2025-03-06 00:47:24 +01:00
Stefan Kangas
fac9097b16 Add more tests for cl-seq.el
* test/lisp/emacs-lisp/cl-seq-tests.el (cl--oddp-safe)
(cl-subst-if-test, cl-subst-if-not-test, cl-nsubst-test)
(cl-nsubst-if-test, cl-nsubst-if-not-test, cl-sublis-test)
(cl-nsublis-test, cl-tree-equal-test): New tests.
2025-03-06 00:47:24 +01:00
Stefan Monnier
25de262bd9 (pp-fill): Fix bug#76715
* lisp/emacs-lisp/pp.el (pp-fill): Don't break before `.` within symbols.
* test/lisp/emacs-lisp/pp-tests.el (pp-tests--bug76715): New test.
2025-03-05 18:35:35 -05:00
Juri Linkov
70d0da3fe0 Improve treesit settings for java-ts-mode (bug#73404, bug#76493)
* lisp/progmodes/java-ts-mode.el (java-ts-mode):
Add the 'list' thing to 'treesit-thing-settings'.
Set 'treesit-outline-predicate'.
2025-03-05 19:47:31 +02:00
Juri Linkov
68def672e6 Improve treesit settings for typescript/tsx-ts-mode (bug#73404)
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings): Add @font-lock-type-face
for 'internal_module' with 'identifier'.
(typescript-ts-mode--defun-type-regexp): New variable with
"internal_module" and "interface_declaration".
(typescript-ts-mode--defun-name): New function that uses
'js--treesit-defun-name' and adds "internal_module" and
"interface_declaration".
(typescript-ts-mode--simple-imenu-settings): New variable
like in 'js-ts-mode' with "Namespace" and "Interface" sections.
(typescript-ts-mode--outline-predicate): New variable.
(typescript-ts-base-mode): Set treesit-defun-type-regexp to
typescript-ts-mode--defun-type-regexp, treesit-defun-name-function
to typescript-ts-mode--defun-name, treesit-simple-imenu-settings
to typescript-ts-mode--simple-imenu-settings,
treesit-outline-predicate to typescript-ts-mode--outline-predicate.
Use js--regexp-opt-symbol for treesit-thing-settings.
(tsx-ts-mode): For 'sentence' thing use the same nodes as
js--treesit-sentence-nodes.  Use js--regexp-opt-symbol for
treesit-thing-settings.

* lisp/progmodes/js.el (js--treesit-sentence-nodes): Add
"jsx_opening_element" and "jsx_closing_element" like in html.

* lisp/progmodes/c-ts-mode.el (c-ts-mode--outline-predicate): Add
outline headings for C++ "namespace_definition" and "class_specifier".
2025-03-05 19:44:44 +02:00
Thierry Volpiatto
42a4c847e2
Fix register-use-preview behavior with never value
Allow popping up preview when pressing C-h.

Don't exit the minibuffer when the call to
register-read-with-preview-fancy is triggered by C-h.

* lisp/register.el (register-read-with-preview-fancy): Do it.
2025-03-05 14:34:43 +01:00
Po Lu
98ca8b46e6 ; * java/AndroidManifest.xml.in (Version-code): Update for Emacs 31. 2025-03-05 15:00:58 +08:00
Po Lu
b06d605bc0 Merge from savannah/emacs-30
121371a706 Move java/incrementing-version-code to AndroidManifest.xm...
8099dc6e3a Provide an Android version code derived from the Emacs ve...
59fcb2aa1b ; * lisp/register.el (register-use-preview): Doc fix (bug...
0383937a70 ; Improve documentation of 'shortdoc'
2025-03-05 15:00:22 +08:00
Po Lu
f5730e0251 ; Merge from savannah/emacs-30
The following commit was skipped:

d6288eeb42 image-dired: Don't croak on file names with regexp charac...
2025-03-05 15:00:22 +08:00