1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

176779 commits

Author SHA1 Message Date
Stefan Kangas
cdf9f3ae19 ; Fix indentation to appease git hooks
* lisp/emacs-lisp/package-x.el (package-upload-buffer-internal):
Fix indentation.
2025-02-12 17:41:36 +01:00
Ship Mints
2bb38cc46d Make reading project--list safer
* lisp/progmodes/project.el (project--read-project-list):
Ensure that each directory has a trailing '/' (bug#75983).
2025-02-12 18:03:54 +02:00
Martin Rudalics
8eef890739 Handle negative frame position values in xterm.c (Bug#76190)
* src/xterm.c (x_calc_absolute_position): Always handle negative
positions when XNegative or YNegative were set (Bug#76190).
2025-02-12 10:54:28 +01:00
Tassilo Horn
b5404a205c Allow URL-FORMAT as string and function in bug-reference-setup-from-vc-alist
That's a slight simplification resulting from bug#72735.

* lisp/progmodes/bug-reference.el (bug-reference-setup-from-vc-alist):
Rename URL-FORMAT-FN to URL-FORMAT and mention it may be string or
function.
* (bug-reference-maybe-setup-from-vc): Handle the new case where
bug-url-fmt is just a string rather than a function.
2025-02-12 10:41:54 +01:00
Stefan Kangas
2254f71598 ; Fix up last commit
* lisp/emulation/cua-base.el (cua--copy-or-cut-handler): Extract
function from...
(cua-cut-handler, cua-copy-handler): ...here.
(cua-cut-to-global-mark, cua-copy-to-global-mark): Declare.
2025-02-12 09:25:45 +01:00
Siyuan Chen
1fdfcad924 Fix 'C-x C-c' with cua-prefix-override-inhibit-delay nil
* lisp/emulation/cua-base.el (cua-cut-handler, cua-copy-handler): New
functions to fix cut and paste when 'cua-prefix-override-inhibit-delay'
is nil.  (Bug#71230)

Copyright-paperwork-exempt: yes
2025-02-12 09:25:45 +01:00
Po Lu
fa4260594f X11 drag-and-drop corrections
* lisp/x-dnd.el (x-dnd-handle-drag-n-drop-event): Take cdddr of
client-message, skipping the selection information.
(x-dnd-do-direct-save): Do not erase the local copy of a remote
file if it was not in fact copied on behalf of the recipient.
(x-dnd-handle-xds-drop): Return proper action.

* src/xterm.c (x_term_init): Remove unused variable on non-GTK
builds.
2025-02-12 15:51:39 +08:00
Gabriel Santos
aade1b707c Add go-work-ts-mode for Go workspace files
* lisp/progmodes/eglot.el (eglot-server-programs): Add go-work-ts-mode.
* lisp/progmodes/go-ts-mode.el
(Commentary): Add the repositories for the grammars.
(go-work-ts-mode--indent-rules, go-work-ts-mode--keywords)
(go-work-ts-mode--font-lock-settings): New variables.
(go-work-ts-mode--directive-matcher, go-work-ts-mode): New functions.
(go-mod-ts-mode--directive-matcher): Rename from
go-mod-ts-mode--in-directive-p.  Be more specific on the directive
location (modules).  Replace mention of nil with function.  Use member
instead of pcase to check node types.

* admin/notes/tree-sitter/build-module/batch.sh
* admin/notes/tree-sitter/build-module/build.sh: Add go-work support.

* test/lisp/progmodes/go-ts-mode-resources/font-lock-package.go:
* test/lisp/progmodes/go-ts-mode-resources/indent-mod.erts:
* test/lisp/progmodes/go-ts-mode-resources/indent-work.erts:
New files for testing indentation and font-locking for Go
module and workspace files.
* test/lisp/progmodes/go-ts-mode-tests.el: Add tests for Go module and
workspace files.  (Bug#74461)

* etc/NEWS: Announce go-work-ts-mode.
2025-02-12 06:46:58 +01:00
Gabriel Santos
7aa4291728 image-dired: Add extra keybinds for navigation
* lisp/image/image-dired.el (image-dired-thumbnail-mode-map):
Bind previously unused keys for alternative navigation.  (Bug#75410)
2025-02-12 06:33:28 +01:00
Basil L. Contovounesios
dcc4cec04a Print bare symbols for EMACS_GENERATE_DYNVARS
* lisp/emacs-lisp/bytecomp.el (byte-compile--load-dynvars): Remove
redundant goto-char.
(byte-compile-file): Bind print-symbols-bare around .dynvars file
generation.  (Bug#66628)
2025-02-12 05:11:19 +01:00
Lin Jian
a73a1e0052 Substitute all emacsclient occurrences in emacsclient.desktop
After commit "From .desktop files, reuse a frame or start a new
Emacs as required" on 2021-06-30, there are two emacsclient
occurrences for the Exec key of etc/emacsclient.desktop.
Before this change, only the first occurrence is substituted.

* Makefile.in (install-etc): Substitute all emacsclient
occurrences in emacsclient.desktop.  (Bug#68803)

Copyright-paperwork-exempt: yes
2025-02-12 04:52:13 +01:00
Lin Jian
9e3359475f Remove an unneeded sed command for emacs.service
After commit e5348f125f on
2020-12-14, there is no ExecStop in etc/emacs.service.
* Makefile.in (install-etc): Remove an unneeded sed command for
etc/emacs.service.

Copyright-paperwork-exempt: yes
2025-02-12 04:44:02 +01:00
Po Lu
02485d2982 Merge remote-tracking branch 'savannah/master' into master-android-1 2025-02-12 11:16:54 +08:00
Po Lu
82384aaef0 Merge from savannah/emacs-30
ea3a937176 ; Add a utility script for retrieving Android port depend...
2025-02-12 11:16:20 +08:00
Po Lu
288339e62e ; Merge from savannah/emacs-30
The following commit was skipped:

13608ad64d Eglot: mention ocaml-ts-mode in eglot-server-programs
2025-02-12 11:16:20 +08:00
Po Lu
fb4daf4aa0 Merge from savannah/emacs-30
19791839cf ; Don't document a complicated default
88bc748f52 Fix minibuffer-next-completion in completing-read-multiple
737f249aa2 ; Document 'completing-read-multiple' in the ELisp manual
37f2551460 ; * lisp/gnus/nnweb.el (nnweb-type): Doc fix.
2025-02-12 11:16:20 +08:00
Thuna
32700f38fd Highlight multiple symbols in single quotes in CL strings
* lisp/emacs-lisp/lisp-mode.el (lisp-cl-font-lock-keywords-2): When
multiple space-delimited symbols are single quoted together (e.g "`foo
bar'"), highlight them.  (Bug#59360)
2025-02-12 04:15:07 +01:00
Po Lu
ea3a937176 ; Add a utility script for retrieving Android port dependencies
* admin/download-android-deps.sh: New file.
2025-02-12 11:14:37 +08:00
Thuna
fb90e21af1 Fix 'rcirc-buffer-process' not working on channel buffers
* lisp/net/rcirc.el (rcirc-buffer-process): Look at BUFFER's
'rcirc-server-buffer's 'rcirc-process' instead.  Signal an error if it
has none.  (Bug#60191)
2025-02-12 04:08:31 +01:00
Trevor Arjeski
77d0078a6c Fix Gnus logo color customization
Fix a bug where customizing `gnus-logo-color-style' from use-package's
:custom keyword did not set `gnus-logo-colors' before Gnus is launched.

This patch does the following:
- Implements a :set keyword on `gnus-logo-color-style' which will
  correctly set `gnus-logo-colors'
- Exposes `gnus-logo-colors' using `defcustom' for more fine-grained
  customization
- Uses :set-after on `gnus-logo-colors' so that it is set after
  `gnus-logo-color-style'

* lisp/gnus/gnus.el (gnus-logo-colors): Convert to defcustom.
(gnus-logo-color-style): Add :set property.  (Bug#74554)
2025-02-12 03:41:31 +01:00
Stefan Kangas
481336967c ; Update :version tag of x-gtk-stock-map
* lisp/term/pgtk-win.el (x-gtk-stock-map):
* lisp/term/x-win.el (x-gtk-stock-map): Update :version tags.
2025-02-12 03:37:18 +01:00
john muhl
0184acdd31 Add icons used by 'mpc.el' to 'x-gtk-stock-map'
* lisp/term/x-win.el (x-gtk-stock-map):
* lisp/term/pgtk-win.el (x-gtk-stock-map): Include tool-bar icons
used by 'mpc.el'.
2025-02-12 03:37:18 +01:00
João Távora
3fd0b802de Eglot: use Eldoc in eglot-hierarchy-mode
Use it to show details of the thing at point, like the full
signature and the locus of the definition.

* lisp/progmodes/eglot.el: Add optional arg MODE.
(eglot--hierarchy-source-major-mode): New defvar.
(eglot--hierarchy-1): Adjust.
(eglot-hierarchy-mode): Set eldoc stuff.
(eglot-hierarchy-center-on-node): Cosmetic fix.
(eglot-hierarchy-detail-eldoc-function)
(eglot-hierarchy-locus-eldoc-function): New eldoc functions.
2025-02-11 23:38:30 +00:00
Manuel Giraud
e2991272f2 Remove `smtpmail-address-buffer' temporary buffer
* lisp/mail/smtpmail.el (smtpmail-address-buffer): Remove variable.
(smtpmail-send-it):
(smtpmail-deduce-address-list): Replace `smtpmail-address-buffer' with a
temporary buffer.  Set `smtpmail-recipient-address-list' only in
caller.  (Bug#72128)
2025-02-11 20:31:38 +01:00
Stefan Kangas
0e76716c5f Delete redundant lambdas around unary functions
This is not just stylistic, but also slightly faster.  These are all
regular defuns, of course, as this won't work with macros and defsubsts.

* lisp/calc/calc-nlfit.el (math-nlfit-fit-curve)
(calc-fit-hubbert-linear-curve):
* lisp/calendar/cal-tex.el (cal-tex-latexify-list):
* lisp/calendar/todo-mode.el (todo-sort):
* lisp/cedet/semantic/ctxt.el (semantic-ctxt-end-of-symbol-default)
(semantic-ctxt-current-symbol-default):
* lisp/cedet/semantic/symref.el (semantic-symref-result-get-files):
* lisp/cedet/semantic/texi.el (semantic-texi-command-completion-list):
* lisp/descr-text.el (describe-char):
* lisp/emacs-lisp/eieio-datadebug.el
(data-debug-add-specialized-thing):
* lisp/emacs-lisp/rmc.el (read-multiple-choice--short-answers):
* lisp/eshell/em-pred.el (eshell-modifier-alist):
* lisp/gnus/gnus-cache.el (gnus-cache-articles-in-group):
* lisp/gnus/gnus-dired.el (gnus-dired-attach):
* lisp/help-mode.el (help-package-def):
* lisp/ibuf-ext.el (ibuffer-mark-modified-buffers):
* lisp/image/image-dired.el:
* lisp/international/quail.el (quail-keyseq-translate)
(quail-get-translations):
* lisp/isearch.el (isearch-pre-command-hook)
(search-within-boundaries):
* lisp/mail/supercite.el (sc-ask):
* lisp/mh-e/mh-e.el (mh-variant-set):
* lisp/net/rcirc.el (rcirc-nick-channels, rcirc-channel-nicks):
(rcirc-browse-url):
* lisp/obsolete/thumbs.el (thumbs-cleanup-thumbsdir):
* lisp/org/org-agenda.el (org-agenda-filter-completion-function):
* lisp/org/org-table.el (org-table-eval-formula):
* lisp/org/org.el (org-set-regexps-and-options):
* lisp/org/ox.el (org-export--get-inbuffer-options):
* lisp/ses.el (ses-range):
* lisp/textmodes/emacs-news-mode.el (emacs-news--buttonize):
* lisp/textmodes/ispell.el (ispell-begin-tex-skip-regexp):
* lisp/vc/vc-cvs.el (vc-cvs-stay-local-p):
* lisp/window.el (window--state-get-1):
* test/lisp/emacs-lisp/shortdoc-tests.el (shortdoc-all-groups-work):
Delete redundant lambdas around unary functions.  (Bug#66816)
2025-02-11 19:04:00 +01:00
Juri Linkov
14e0f214e6 ; * lisp/treesit.el: Remove implemented TODO for integration with hideshow. 2025-02-11 19:47:21 +02:00
Juri Linkov
58c09c3d36 Improve outline-predicate of ts-modes (bug#74448)
* lisp/progmodes/c-ts-mode.el (c-ts-mode--outline-predicate):
Simplify since 'treesit-outline-search' was fixed in 302274b186.
Use 'treesit-parent-until' to handle the case with "pointer_declarator".

* lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode--outline-predicate):
Add "block_sequence_item".
2025-02-11 19:42:33 +02:00
João Távora
3e699b3047 Eglot: fix thinko in previous commit
* lisp/progmodes/eglot.el (eglot--hierarchy-1): 'roots' is a
vector.
2025-02-11 16:14:43 +00: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
Stefan Kangas
19791839cf ; Don't document a complicated default
* doc/misc/message.texi (Superseding): Don't document the default value
of 'message-ignored-supersedes-headers' here; the list was out-of-date,
and is likely to become out-of-date again in the future if updated.
It's also easy enough to look up for users outside of Info.
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
João Távora
9d2d8a4d39 Eglot: error if no hierarchies available at point
* lisp/progmodes/eglot.el (eglot--hierarchy-1): Error if no
hierarchy at point.
2025-02-11 15:29:45 +00:00
João Távora
4847168c5b Eglot: make better use of :company-docsig
* lisp/progmodes/eglot.el (eglot-completion-at-point): Make better
use of :company-docsig
2025-02-11 15:29:45 +00:00
João Távora
5f9982eded Eglot: cosmetic refactor of eglot-completion-at-point
* lisp/progmodes/eglot.el (eglot-completion-at-point): rework.
2025-02-11 15:29:45 +00:00
João Távora
96dc5deddc Eglot: mention ocaml-ts-mode in eglot-server-programs
* lisp/progmodes/eglot.el (eglot-server-programs): Mention
ocaml-ts-mode.
2025-02-11 15:29:45 +00:00
Eli Zaretskii
737f249aa2 ; Document 'completing-read-multiple' in the ELisp manual
* doc/lispref/minibuf.texi (Minibuffer Completion): Mention
'completing-read-multiple' (bug#76194).
2025-02-11 16:42:19 +02:00
Eli Zaretskii
326593c88d * src/bidi.c: Add comments to uses of INT_PROMOTE (bug#75964). 2025-02-11 15:42:26 +02:00
shipmints
b2d2ad58ea Correct project-remember/forget-projects-under message grammar
* lisp/progmodes/project.el:
(project-remember-projects-under): Correct grammar for the singular
case.  Rather than "1 projects were found", say "1 project was found".
(project-forget-projects-under): Ditto.  (Bug#76016)
2025-02-11 08:49:59 +01:00
shipmints
788380cf6a Eliminate bookmark-maybe-historicize-string duplicates
* lisp/bookmark.el (bookmark-maybe-historicize-string):
Use 'add-to-history' to respect history-delete-duplicates and the
'history-length property.  (Bug#76137)
2025-02-11 08:47:44 +01:00
Stefan Kangas
34d353cd72 Update webjump.el example links
* lisp/net/webjump.el (webjump-sample-sites): Don't recommend some
defunct or otherwise non-privacy respecting websites.  Prefer HTTPS to
HTTP.
(webjump-to-iwin, webjump-state-to-postal-alist): Make obsolete, as this
functionality seems to no longer work due to broken links.
2025-02-11 08:42:24 +01:00
Stefan Kangas
644476dc85 ; Delete redundant defvar
* lisp/emacs-lisp/lisp-mnt.el (report-emacs-bug-address): Delete
redudant defvar.
2025-02-11 08:42:24 +01:00
Stefan Kangas
e6a2256c8b Add new function lm-package-version
* lisp/emacs-lisp/lisp-mnt.el (lm-package-version): New function.
* lisp/emacs-lisp/package.el (package-buffer-info)
(package-get-version): Use above new function.
(lm-package-version): Declare.
2025-02-11 08:42:24 +01:00
Stefan Kangas
5b34dbf400 Don't warn for packages without a footer line
* lisp/emacs-lisp/package.el (package-buffer-info): Don't warn when the
terminating comment (i.e., the footer line) is missing.  (Bug#26490)
2025-02-11 08:42:24 +01:00
Stefan Kangas
37f2551460 ; * lisp/gnus/nnweb.el (nnweb-type): Doc fix. 2025-02-11 07:51:50 +01:00
F. Jason Park
79e5eae8a6 ; Mark erc-nicks test as :unstable
* test/lisp/erc/erc-nicks-tests.el (erc-nicks-track-faces/prioritize):
Mark as :unstable outside of EMBA and ERC's own CI.  (Bug#76188)
2025-02-10 21:59:52 -08:00
Stefan Kangas
2a405cb897 Minor simplification in Fdescribe_buffer_bindings
* src/keymap.c (Fdescribe_buffer_bindings): Minor simplification.
2025-02-11 02:05:07 +01:00
Stefan Kangas
bc1090145c Prefer keyword arguments in message-mode menu definition
* lisp/gnus/message.el (message-mode-menu): Prefer keyword arguments in
menu definition.  Reformat for readability and consistency.
2025-02-11 01:20:17 +01:00
Stefan Kangas
71c369bf66 ; Quote function symbols in help-fns-tests.el
* test/lisp/help-fns-tests.el: Properly quote function symbols as such.
2025-02-11 01:14:32 +01:00
Stefan Kangas
2d257fa24f Add test for Bug#76179
* test/lisp/help-fns-tests.el (help-fns-test-bug76179):
New test.  (Bug#76179)
2025-02-11 01:14:32 +01:00
Stefan Kangas
7fbdad01e5 ; Move describe-symbol test to its proper section
* test/lisp/help-fns-tests.el (help-fns-test-dangling-alias): Move test
to its proper section.
2025-02-11 01:14:32 +01:00