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

95579 commits

Author SHA1 Message Date
Eli Zaretskii
01bcc6961a ; Improve doc strings of Speedbar
* lisp/speedbar.el (speedbar-extension-list-to-regex)
(speedbar-query-confirmation-method)
(speedbar-show-unknown-files, speedbar-use-imenu-flag)
(speedbar-track-mouse-flag, speedbar-default-position)
(speedbar-sort-tags, speedbar-directory-button-trim-method)
(speedbar-smart-directory-expand-flag)
(speedbar-hide-button-brackets-flag, speedbar-vc-do-check)
(speedbar-vc-indicator, speedbar-obj-do-check)
(speedbar-frame-mode, speedbar-handle-delete-frame)
(speedbar-show-info-under-mouse, speedbar-item-info)
(speedbar-item-rename, speedbar-item-delete)
(speedbar-initial-keymap, speedbar-insert-files-at-point)
(speedbar-generic-list-positioned-group-p)
(speedbar-generic-list-tag-p, speedbar-check-read-only)
(speedbar-tag-file, speedbar-tag-expand)
(speedbar-find-file-in-frame, speedbar-parse-tex-string)
(speedbar-buffer-click): Doc fixes.
2025-03-07 10:45:50 +02:00
Eli Zaretskii
bd9c76ab17 Avoid warnings about 'image-scaling-factor' in builds --without-x
* lisp/cus-start.el (standard): Exclude 'image-*' options if Emacs
was built without GUI support.  (Bug#76716)
2025-03-06 15:49:27 +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
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
Eli Zaretskii
59fcb2aa1b ; * lisp/register.el (register-use-preview): Doc fix (bug#76739). 2025-03-04 17:23:16 +02:00
Eli Zaretskii
0383937a70 ; Improve documentation of 'shortdoc'
* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Fix doc
string and wording of prompt.  (Bug#76723)
2025-03-04 16:01:32 +02:00
Vitaliy Chepelev
d6288eeb42 image-dired: Don't croak on file names with regexp characters
* lisp/image/image-dired-dired.el (image-dired-mark-tagged-files):
* lisp/image/image-dired-tags.el (image-dired-get-comment)
(image-dired-write-comments, image-dired-list-tags)
(image-dired-remove-tag, image-dired-write-tags): Quote file name
for search-forward-regexp.  (Bug#73445)

Copyright-paperwork-exempt: yes
(cherry picked from commit 7930fe2f44)
2025-03-04 10:58:41 +01:00
Eshel Yaron
365a91622e
; (completion-preview--try-table): Propagate extra properties.
* lisp/completion-preview.el
(completion-preview--try-table): Let-bind
'completion-extra-properties' to completion properties
that the completion backend (capf) provides, so that these
properties take effect when querying the completion table.
* test/lisp/completion-preview-tests.el
(completion-preview-propagates-properties): Add test.
2025-03-02 08:14:35 +01:00
Dmitry Gutov
625ed68aea Fix the use of xref-window-local-history together with Xref buffer
* lisp/progmodes/xref.el (xref--push-markers): Temporarily
restore the selected window as well, using the value from the
new argument (bug#76565).  Update both callers.
2025-03-02 05:22:56 +02:00
Dmitry Gutov
8091772767 completing-read-multiple: Fix support for ":" as separator
* lisp/emacs-lisp/crm.el (completing-read-multiple):
Do not search for separators inside the prompt (bug#76461).
2025-03-02 05:13:59 +02:00
Stefan Kangas
38cc36a375 ; Improve docstring of cl-check-type
* lisp/emacs-lisp/cl-macs.el (cl-check-type): Improve docstring.
2025-03-02 04:11:55 +01:00
Eli Zaretskii
0460177451 ; * lisp/progmodes/java-ts-mode.el (treesit-node-end): Declare. 2025-03-01 16:42:50 +02:00
Eli Zaretskii
8481170eb2 Fix 'M-q' in 'makefile-mode'
* lisp/progmodes/make-mode.el (makefile-mode-map): Bind 'M-q' to
'fill-paragraph', as 'prog-mode's default binding is not
appropriate for Makefile's syntax.  (Bug#76641)
2025-03-01 16:04:52 +02:00
Eli Zaretskii
44a770b871 ; Improve documentation of 'rmail-movemail-program'
* lisp/mail/rmail.el (rmail-movemail-program):
* doc/emacs/rmail.texi (Movemail): Document how to change the
value of 'rmail-movemail-program' safely.  (Bug#76595)
2025-03-01 15:45:57 +02:00
john muhl
3998dea566 ; Cleanup sexp things in 'lua-ts-mode'
* lisp/progmodes/lua-ts-mode.el (lua-ts-mode): Remove some
nonsensical entries from 'treesit-thing-settings'.
* test/lisp/progmodes/lua-ts-mode-resources/movement.erts:
Add missing tests for 'backward-sexp'.  (Bug#76534)
2025-03-01 14:59:56 +02:00
Randy Taylor
b531bbf73e Fix go-ts-mode const_spec highlighting (Bug#76330)
* lisp/progmodes/go-ts-mode.el (go-ts-mode--font-lock-settings):
Handle multiple const_spec identifiers.
* test/lisp/progmodes/go-ts-mode-resources/font-lock.go:
Add test case.
2025-03-01 14:12:30 +02:00
Stefan Kangas
8b80401127 Improve process-get/process-put docstrings
* lisp/subr.el (process-get, process-put): Explain the purpose of these
functions in the docstring.
2025-03-01 06:36:43 +01:00
Michael Albinus
0af5c57499 Fix recent change in diff-no-select
* lisp/vc/diff.el (diff-no-select): Keep initial default directory
in *Diff* buffer.
2025-02-28 18:03:54 +01:00
Michael Albinus
5247da2e3c * lisp/proced.el (proced-<): Check, that NUM1 and NUM2 are numbers.
(Bug#76549)
2025-02-28 15:32:35 +01:00
Tomas Nordin
1352b184f3 Improve docstring of add-hook and remove-hook
* lisp/subr.el (add-hook, remove-hook): Remove detail about setting to
nil and talk about functions instead of hooks.  (Bug#72915)
2025-02-27 23:13:35 +01:00
Jared Finder
dbae1fc69f * lisp/subr.el (read-key): Add 'tab-line' (bug#76408).
Backport:
(cherry picked from commit 0c8abe8bb5)
2025-02-27 21:01:14 +02:00
Eshel Yaron
840c682458
; (completion-preview-complete): Fix bug#76606
* lisp/completion-preview.el (completion-preview-complete):
Dismiss completion preview before calling ':exit-function'.
This eliminates potential flicker with slow exit functions
and avoids the broken preview update reported in bug#76606.
2025-02-27 15:34:24 +01:00
Stefan Kangas
7ff806da49 ; Fix my last commit 2025-02-26 18:32:31 +01:00
Stefan Kangas
a90da89903 ; Fix up emacs-lisp-mode docstring
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode, lisp-interaction-mode):
Fix up docstring slightly by removing redundant and misplaced word
"Commands", and prefix list with dashes.
2025-02-26 03:34:14 +01:00
Basil L. Contovounesios
58c7acb555 ; Fix completion-fail-discreetly docstring typo. 2025-02-25 11:26:11 +01:00
Basil L. Contovounesios
02c830ba22 Fix ert-font-lock macro signatures
* doc/misc/ert.texi (Syntax Highlighting Tests):
* test/lisp/emacs-lisp/ert-font-lock-tests.el
(test-line-comment-p--emacs-lisp, test-line-comment-p--shell-script)
(test-line-comment-p--javascript, test-line-comment-p--python)
(test-line-comment-p--c, test-macro-test--correct-highlighting)
(test-macro-test--docstring, test-macro-test--failing)
(test-macro-test--file, test-macro-test--file-no-asserts)
(test-macro-test--file-failing): Reindent macro calls.
(with-temp-buffer-str-mode): Evaluate macro arguments left-to-right.
(ert-font-lock--wrap-begin-end): Use rx for more robust composition.
(test-line-comment-p--php): Require that php-mode is callable, not
already loaded.

* lisp/emacs-lisp/ert-font-lock.el (ert-font-lock-deftest)
(ert-font-lock-deftest-file): NAME is not followed by an empty list
like in ert-deftest, so the optional DOCSTRING is actually the
second argument.  Adapt calling convention in docstring, and debug,
doc-string, and indent properties accordingly (bug#76372).  Fix
docstring grammar, document MAJOR-MODE, and avoid referring to a
file name as a path.
2025-02-25 11:02:55 +01:00
Stefan Kangas
63adf9dcf5 ; Reflow some cl-lib docstrings
* lisp/emacs-lisp/cl-macs.el (cl-flet, cl-labels): Reflow docstrings.
2025-02-24 03:48:50 +01:00
Joseph Turner
d63b27a416 Upgrade out-of-date VC package dependencies
* lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies): Pass
the specified package version when checking if a package is installed.

(Bug#73781)

(cherry picked from commit 71a4670a9f)
2025-02-23 20:48:15 +01:00
Vincenzo Pupillo
563b6f9451 Constant highlighting no longer captures Java annotations
* lisp/progmodes/java-ts-mode.el
(java-ts-mode--fontify-constant): New function.
(java-ts-mode--font-lock-settings): Use it.
2025-02-23 20:48:13 +01:00
Stefan Kangas
e15dcb2db5 Improve wording of lsh docstring
* lisp/subr.el (lsh): Improve wording of docstring.
2025-02-23 20:47:34 +01:00
Michael Albinus
7744119025 Use a persistent directory as default directory in diff
* lisp/vc/diff.el (diff-no-select): Use `temporary-file-directory'
as default directory.  Set default file permissions temporarily to
#o600.  (Bug#69606)

(cherry picked from commit ae439cc1b9)
2025-02-23 20:47:34 +01:00
Stefan Kangas
92e96a1175 ; Delete troff markers from ChangeLog files 2025-02-20 02:46:43 +01:00
Stefan Kangas
5e9c027e20 ; * Update 'ldefs-boot.el' (do not merge) 2025-02-20 02:36:41 +01:00
Stefan Kangas
be7625cae7 ; Fix typos 2025-02-18 05:42:12 +01:00
Michael Albinus
48f9d6aafe * lisp/man.el (Man-shell-file-name): Ensure a Bourne shell. (Bug#75308) 2025-02-16 11:00:46 +01:00
Stefan Kangas
3cfbeb3fca ; Fix >72 character long lines in docstring 2025-02-13 08:45:42 +01:00
Yuan Fu
1931425748
Use c-ts-common's comment setup in go-ts-mode (bug#75978)
c-ts-common-comment-setup sets up fill-paragraph-function, which
enables filling for comments.

* lisp/progmodes/go-ts-mode.el (go-ts-mode):
(go-mod-ts-mode): Use c-ts-common-comment-setup.
2025-02-11 20:39:33 -08:00
Robert Brown
316893ca38 Add java-language-server to eglot-server-programs
* lisp/progmodes/eglot.el (eglot-server-programs): Add support for Java
server <https://github.com/georgewfraser/java-language-server>.
(Bug#59138)

Copyright-paperwork-exempt: yes
2025-02-12 04:20:51 +01:00
João Távora
13608ad64d Eglot: mention ocaml-ts-mode in eglot-server-programs
* lisp/progmodes/eglot.el (eglot-server-programs): Mention
ocaml-ts-mode.

(cherry picked from commit 96dc5deddc)
2025-02-11 16:48:23 +01:00
Dmitry Gutov
88bc748f52 Fix minibuffer-next-completion in completing-read-multiple
* lisp/emacs-lisp/crm.el (completing-read-multiple):
Adapt to the previous removal of completion-base-affixes
(bug#48356, bug#48356).
2025-02-11 17:47:21 +02:00
Stefan Kangas
37f2551460 ; * lisp/gnus/nnweb.el (nnweb-type): Doc fix. 2025-02-11 07:51:50 +01:00
Stefan Monnier
411db55432 lisp/help.el (help-function-arglist): Fix out-of-bounds access (bug#76179) 2025-02-10 15:35:20 -05:00
Mauro Aranda
be4cf26c16 Fix gnus-score-find-score-files-function :type
* lisp/gnus/gnus-score.el (gnus-score-find-score-files-function): Delete
extra quotes.  (Bug#76118)
2025-02-07 22:04:51 +01:00
Stefan Kangas
73a45ce720 ; Update link to picons database
* lisp/gnus/gnus-art.el (gnus-picon-databases): Fix broken link.
2025-02-03 23:53:19 +01:00
Stefan Monnier
1c3a8bc9b5 * lisp/emacs-lisp/track-changes.el (track-changes-fetch): Fix bug#75906 2025-02-03 15:50:36 -05:00
Robert Pluim
a7f34a532c Fix padding when using which-key-setup-side-window-right
* lisp/which-key.el (which-key--pad-column): Insert zero padding
spaces when the description string is longer than the column
width.  (Bug#75765)
2025-02-03 09:41:01 +01:00
Eli Zaretskii
6d7e7899d8 Improve documentation of 'display-monitor-attributes-
* doc/lispref/frames.texi (Multiple Terminals):
* lisp/frame.el (display-monitor-attributes-list): Better
documentation of what the 'source' key means on X.  (Bug#75936)
2025-02-02 15:58:18 +02:00
Eli Zaretskii
fdc6842a44 Remove bookmark fringe marks when deleting all bookmarks
* lisp/bookmark.el (bookmark-delete-all): Remove fringe marks for
all the bookmarks.  (Bug#75953)
2025-02-01 11:33:34 +02:00
Damien Cassou
87be3aa149 eglot: Allow omnisharp binary to be capitalized "OmniSharp"
Some distributors (e.g. nixpkgs) provide a binary "OmniSharp" instead of
"omnisharp", which breaks on case-sensitive file-systems.

* lisp/progmodes/eglot.el (eglot-server-programs): Add "OmniSharp" as a
valid binary name to search for.  (Bug#75954)
2025-02-01 03:28:11 +01:00
Stefan Kangas
5485ea6aef Do not set trusted-content in major modes
* lisp/progmodes/elisp-mode.el (lisp-interaction-mode):
* lisp/ielm.el (inferior-emacs-lisp-mode): Do not set `trusted-content.
* lisp/ielm.el (ielm):
* lisp/simple.el (get-scratch-buffer-create): Set `trusted-content` here
instead.
* lisp/files.el (trusted-content): Doc fix; warn against setting this
option to :all in a major or mode mode.
Problem reported by Max Nikulin <manikulin@gmail.com>.
2025-01-31 01:50:22 +01:00