]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 days agoCheck for presuppositions in `calendar-date-is-valid-p'
Richard Lawrence [Fri, 13 Dec 2024 09:41:02 +0000 (10:41 +0100)]
Check for presuppositions in `calendar-date-is-valid-p'

Do not signal an error in `calendar-date-is-valid-p' if passed a
value which is not a three-element list of integers.  Signaling
an error makes the function unusable as a predicate for valid
date values. (Bug#74848)
* lisp/calendar/calendar.el (calendar-date-is-valid-p): Add the
check that input is a 3-element list.
* test/lisp/calendar/calendar-tests.el: New file with tests.

(cherry picked from commit 77f73abd92f1a627ddec0648dcfe14e56b525f4d)

9 days ago; Skip commit fd021c07606264a73cd4c1f6fa6fe80a756defe0
Eshel Yaron [Sun, 15 Dec 2024 21:05:24 +0000 (22:05 +0100)]
; Skip commit fd021c07606264a73cd4c1f6fa6fe80a756defe0

9 days ago; Skip commit 64981660c912e5ab79c1143d9879d9ee7a0b93bf
Eshel Yaron [Sun, 15 Dec 2024 16:39:38 +0000 (17:39 +0100)]
; Skip commit 64981660c912e5ab79c1143d9879d9ee7a0b93bf

9 days agoAdd `browse-url-qutebrowser'
Daniel Mendler [Wed, 11 Dec 2024 06:36:16 +0000 (07:36 +0100)]
Add `browse-url-qutebrowser'

The browser launcher supports the NEW-WINDOW argument and
`browse-url-qutebrowser-new-window-is-tab' to open tabs.
Furthermore opening new URLs is sped up via Unix socket IPC if
available.
* lisp/net/browse-url.el (browse-url-qutebrowser-send): Function
to send command to Qutebrowser via IPC.
(browse-url-qutebrowser): New browser launcher.  Use
`browse-url-qutebrowser-send'.
(browse-url-qutebrowser-program, browse-url-qutebrowser-arguments)
(browse-url-qutebrowser-new-window-is-tab): New customizables.
(browse-url-mozilla-new-window-is-tab)
(browse-url-firefox-new-window-is-tab)
(browse-url-epiphany-new-window-is-tab): Improve docstrings.

* etc/NEWS: Announce the change.
(Bug#74781)

(cherry picked from commit ed1f3b8488e18143d658e4f1aca8d21a3b84e2b2)

9 days ago; * etc/PROBLEMS: Document problem with menu-bar background (bug#74028).
Eli Zaretskii [Sat, 14 Dec 2024 09:57:04 +0000 (11:57 +0200)]
; * etc/PROBLEMS: Document problem with menu-bar background (bug#74028).

(cherry picked from commit 6942599dbb24c1a469e3d3708df83692b49e4af8)

9 days agoFix xt-mouse-tests.el in interactive mode
Michael Albinus [Sat, 14 Dec 2024 08:37:17 +0000 (09:37 +0100)]
Fix xt-mouse-tests.el in interactive mode

* test/lisp/xt-mouse-tests.el (with-xterm-mouse-mode): Run only
when noninteractive.

(cherry picked from commit 83245d2269be357db2fff8baa17adb4b05f97aed)

9 days agoFix for xt-mouse-tests.el broken in prior commit
Jared Finder [Sat, 14 Dec 2024 08:30:43 +0000 (09:30 +0100)]
Fix for xt-mouse-tests.el broken in prior commit

xt-mouse-tests not turning on xterm-mouse-mode if it was already
on did not work with xterm-mouse-mode being set to t by default.
It turns out that xt-mouse-tests already does not report proper
results when called inside a running Emacs session so the code
path is not useful anyways.

* test/lisp/xt-mouse-tests.el (with-xterm-mouse-mode): Always
turn on xterm-mouse-mode, even if it is already on.

(cherry picked from commit 2719dccbe5797dd8fcf1ce013df2ff71161b6f55)

9 days agoImprove menu separator display on ttys slightly (bug#74854)
Gerd Möllmann [Fri, 13 Dec 2024 14:54:21 +0000 (15:54 +0100)]
Improve menu separator display on ttys slightly (bug#74854)

* src/xdisp.c (display_tty_menu_separator): New function displaying
separators with '-', '=', or ' '.
(display_tty_menu_item): Use it.

(cherry picked from commit b6807a7ddce41e99d320be5f23972f218af004a8)

9 days agoFix font-lock of Python f-strings
kobarity [Wed, 11 Dec 2024 14:21:04 +0000 (23:21 +0900)]
Fix font-lock of Python f-strings

* lisp/progmodes/python.el (python--font-lock-f-strings): Bind
'parse-sexp-ignore-comments' to nil so that we can look for
closing braces even if a hash is used in the format specifier.
* test/lisp/progmodes/python-tests.el
(python-font-lock-f-string-1): New test.  (Bug#74738)

(cherry picked from commit 71cd290c20dbbd8b14f09818b3c1b58623aea350)

9 days ago; Skip commit dde5d0a41e2a700f2eb17e93a5e5586195c5780d
Eshel Yaron [Sun, 15 Dec 2024 16:38:55 +0000 (17:38 +0100)]
; Skip commit dde5d0a41e2a700f2eb17e93a5e5586195c5780d

9 days ago* lisp/org/ox-texinfo.el (org-texinfo-template): Fix direntry format
Stefan Monnier [Fri, 13 Dec 2024 21:14:45 +0000 (16:14 -0500)]
* lisp/org/ox-texinfo.el (org-texinfo-template): Fix direntry format

Apparently I was confused and `* FILE.  DESCRIPTION` is not
a valid format, so always use the longer form.

(cherry picked from commit 5923d8ebef93075e053cf50e17b86d34731fe777)

9 days ago* nt/inc/netinet/tcp.h: New (empty) file.
Eli Zaretskii [Fri, 13 Dec 2024 18:52:14 +0000 (20:52 +0200)]
* nt/inc/netinet/tcp.h: New (empty) file.

(cherry picked from commit 69a61f721dda73fb11f2be0ad5c9eaacc82216ab)

9 days ago* lisp/time-stamp.el: Limit field width to two digits.
Stephen Gildea [Fri, 13 Dec 2024 16:53:54 +0000 (08:53 -0800)]
* lisp/time-stamp.el: Limit field width to two digits.

(cherry picked from commit 488801baf7de64cc3ad8747c7a0c9f5869afb4e2)

9 days agoAdd support for TCP_NODELAY on network streams
Eric Marsden [Wed, 11 Dec 2024 15:59:45 +0000 (16:59 +0100)]
Add support for TCP_NODELAY on network streams

* src/process.c (socket_options): add entry for TCP_NODELAY.
* lisp/emacs-lisp/bytecomp.el: add :nodelay to valid keywords
  for make-network-process compiler-macro.
* doc/lispref/processes.texi: document :nodelay keyword argument
  to set-network-process-option and make-network-process.

(Bug#74793)

(cherry picked from commit c265febd97e940e6580ae42aa648358a0a2ed830)

9 days ago; * lisp/progmodes/executable.el: Remove stale comment (bug#74846).
Eli Zaretskii [Fri, 13 Dec 2024 12:11:13 +0000 (14:11 +0200)]
; * lisp/progmodes/executable.el: Remove stale comment (bug#74846).

(cherry picked from commit 34bedcd58d74f733631ec78afc7bda9a068c714f)

9 days agoApply string syntax only to string in jsx (bug#73978)
Yuan Fu [Fri, 13 Dec 2024 05:42:44 +0000 (21:42 -0800)]
Apply string syntax only to string in jsx (bug#73978)

The current code applies string syntax to too many things.  This
patch makes tsx-ts-mode (and friends) only apply string syntax
to actual text in tsx/jsx.

* lisp/progmodes/typescript-ts-mode.el:
(tsx-ts--s-p-query): Only capture jsx_text.
(tsx-ts--syntax-propertize-captures): handle the case when the
text is one character long.

(cherry picked from commit 989cdb2c35889476702e4d2bd82d8195fa2e7ec0)

9 days agoDeclare tree-sitter functions with a new macro
Yuan Fu [Sun, 8 Dec 2024 06:13:07 +0000 (22:13 -0800)]
Declare tree-sitter functions with a new macro

* lisp/progmodes/c-ts-mode.el:
* lisp/progmodes/cmake-ts-mode.el:
* lisp/progmodes/csharp-mode.el:
* lisp/progmodes/dockerfile-ts-mode.el:
* lisp/progmodes/elixir-ts-mode.el:
* lisp/progmodes/go-ts-mode.el:
* lisp/progmodes/heex-ts-mode.el:
* lisp/progmodes/java-ts-mode.el:
* lisp/progmodes/json-ts-mode.el:
* lisp/progmodes/lua-ts-mode.el:
* lisp/progmodes/php-ts-mode.el:
* lisp/progmodes/ruby-ts-mode.el:
* lisp/progmodes/rust-ts-mode.el:
* lisp/progmodes/js.el:
* lisp/progmodes/python.el:
* lisp/progmodes/sh-script.el:
* lisp/progmodes/c-ts-common.el:
* lisp/progmodes/prog-mode.el:
* lisp/progmodes/typescript-ts-mode.el: Use new macro.
* lisp/treesit.el (treesit-declare-unavailable-functions): New
macro.

(cherry picked from commit 9377ef5c2369202e372774c873af4d6c259cd28f)

9 days agoPrefer defvar-keymap in perl-mode.el
Stefan Kangas [Fri, 13 Dec 2024 03:48:33 +0000 (04:48 +0100)]
Prefer defvar-keymap in perl-mode.el

* lisp/progmodes/perl-mode.el (perl-mode-map): Convert to
defvar-keymap.

(cherry picked from commit 4bdadbdc215aacdc474b33426bf8eb1a1bd54e1f)

9 days agoPrefer defvar-keymap in f90.el
Stefan Kangas [Fri, 13 Dec 2024 03:44:30 +0000 (04:44 +0100)]
Prefer defvar-keymap in f90.el

* lisp/progmodes/f90.el (f90-mode-map): Convert to defvar-keymap.
(f90-menu): Move definition to top level.

(cherry picked from commit a9fcf55d5bb25bd2535d2595652ef15bd3816cea)

9 days agoPrefer defvar-keymap in dired.el
Stefan Kangas [Fri, 13 Dec 2024 03:40:02 +0000 (04:40 +0100)]
Prefer defvar-keymap in dired.el

* lisp/dired.el (dired-mouse-drag-files-map)
(dired-click-to-select-map): Convert to defvar-keymap.

(cherry picked from commit 65aa5608f2c02bb90742d4d176c61182915f7755)

9 days agoDon't use obsolete mode delhpi-mode
Stefan Kangas [Fri, 13 Dec 2024 00:13:52 +0000 (01:13 +0100)]
Don't use obsolete mode delhpi-mode

* lisp/files.el (auto-mode-alist): Prefer opascal-mode to obsolete
delphi-mode.

(cherry picked from commit 020128e9dc31fb3b06c39614b7eb20ddb5b3725a)

9 days agoDon't use obsolete filter-buffer-substring-functions in Org
Stefan Kangas [Thu, 12 Dec 2024 23:03:13 +0000 (00:03 +0100)]
Don't use obsolete filter-buffer-substring-functions in Org

This patch was also installed in Org mode, here:
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=b9637ef142

* lisp/org/org-agenda.el (org-agenda-mode):
* lisp/org/org-indent.el (org-indent-mode): Don't use obsolete
filter-buffer-substring-functions.

(cherry picked from commit d1bde7b5cb727d6b0559d99669719d5eb832c186)

9 days ago; * etc/TODO: Add an item for improving defgroups.
Eli Zaretskii [Thu, 12 Dec 2024 16:03:19 +0000 (18:03 +0200)]
; * etc/TODO: Add an item for improving defgroups.

(cherry picked from commit 327d3e56f6ecd9e5c49405c87ebb8b78b96d8293)

9 days ago; * lisp/net/rcirc.el (rcirc-next-active-buffer): Doc fix (bug#74773).
Scott Bell [Tue, 10 Dec 2024 19:02:54 +0000 (12:02 -0700)]
; * lisp/net/rcirc.el (rcirc-next-active-buffer): Doc fix (bug#74773).

(cherry picked from commit 7ae9ccae0caa58dcf67869e8daa1b1301dce2119)

9 days ago; Fix :version tag in browse-url
Stefan Kangas [Wed, 11 Dec 2024 21:40:22 +0000 (22:40 +0100)]
; Fix :version tag in browse-url

* lisp/net/browse-url.el (browse-url-button-regexp): Fix :version tag.

(cherry picked from commit 3e51be94ae6312b05d4f2a811faeee7328b152cb)

9 days agoRevert "Attempt to install package first when upgrading"
Philip Kaludercic [Tue, 10 Dec 2024 21:12:34 +0000 (22:12 +0100)]
Revert "Attempt to install package first when upgrading"

This reverts commit 3d8e49c41a66a7f05cb96f84e2a10f0f308ac9ca.

(cherry picked from commit dffd4a50c64db5141997ad91e04d9e2107d968b5)

9 days agoFix 'gnus-select-method' custom type
Robert Pluim [Tue, 10 Dec 2024 13:56:21 +0000 (14:56 +0100)]
Fix 'gnus-select-method' custom type

* lisp/gnus/gnus.el (gnus-redefine-select-method-widget): Cater
for the 'gnus-search-engine' configuration variable, which takes
2 args instead of 1.   (Bug#74759)

(cherry picked from commit fbcb357b9db1e7d4dd32c1f2b7b01950e66b9b34)

9 days agoFix typo in maps.texi
Chu [Tue, 10 Dec 2024 03:10:34 +0000 (11:10 +0800)]
Fix typo in maps.texi

* doc/lispref/maps.texi (Standard Keymaps): Fix typo.  (Bug#74761)

Copyright-paperwork-exempt: yes
(cherry picked from commit 6fd5e02cb9bc888cf454f8e5e8daf3203ae7a13f)

9 days ago; * etc/DEBUG: Mention "handle SIGINT" on MS-Windows.
Eli Zaretskii [Mon, 9 Dec 2024 18:23:40 +0000 (20:23 +0200)]
; * etc/DEBUG: Mention "handle SIGINT" on MS-Windows.

(cherry picked from commit 872a7336dc083c6f28acb292cf389f0f14b0f354)

9 days ago* doc/misc/tramp.texi (FUSE-based methods): Fix sshfs reference.
Michael Albinus [Mon, 9 Dec 2024 14:50:59 +0000 (15:50 +0100)]
* doc/misc/tramp.texi (FUSE-based methods): Fix sshfs reference.

(cherry picked from commit b4bcbabf95c5cf4d4175bfb78e56e717d21a1034)

9 days agoImprove gnus.texi indexing
Stefan Kangas [Sun, 8 Dec 2024 13:51:50 +0000 (14:51 +0100)]
Improve gnus.texi indexing

* doc/misc/gnus.texi (Common Variables): Improve indexing.

(cherry picked from commit f8da72b41cda77088231a03da2e0879a79c5f12e)

9 days ago; * lisp/net/eww.el (eww-browse-with-external-browser): Fix typo.
Eli Zaretskii [Sun, 8 Dec 2024 05:58:41 +0000 (07:58 +0200)]
; * lisp/net/eww.el (eww-browse-with-external-browser): Fix typo.

(cherry picked from commit 4a090bd7eabebb366f56eb1c8f01ae59bcd3323d)

9 days ago; Improve doc strings in compile.el
Eli Zaretskii [Sun, 8 Dec 2024 05:47:07 +0000 (07:47 +0200)]
; Improve doc strings in compile.el

* lisp/progmodes/compile.el (compilation-transform-file-match-alist)
(compilation-error-regexp-alist): Doc fixes.

(cherry picked from commit 59fa0b1dd6eba2d3fcc2568d79b3586638dbed04)

9 days agoAttempt to install package first when upgrading
Philip Kaludercic [Sat, 7 Dec 2024 19:02:00 +0000 (20:02 +0100)]
Attempt to install package first when upgrading

* lisp/emacs-lisp/package.el (package-upgrade): Swap the
'package-install' and the 'package-delete' invocations.
(Bug#74556)

(cherry picked from commit 3d8e49c41a66a7f05cb96f84e2a10f0f308ac9ca)

12 days agoEnable xterm-mouse-mode by default in xterm
Jared Finder [Tue, 10 Dec 2024 06:16:40 +0000 (22:16 -0800)]
Enable xterm-mouse-mode by default in xterm

* lisp/xt-mouse.el (xterm-mouse-mode): Change default value of
xterm-mouse-mode to t.
* lisp/term/xterm.el (xterm--init): Enable xterm-mouse-mode if
the default value is still set.
* etc/NEWS: Document new behavior.

(cherry picked from commit 9ccd459e8452cc9e6e81e53f26bbeef20d2d5bb7)

12 days agoTurn off current source line indicator when gdb buffer is killed
Diancheng Wang [Thu, 5 Dec 2024 07:34:44 +0000 (15:34 +0800)]
Turn off current source line indicator when gdb buffer is killed

* lisp/progmodes/gud.el (gud-hide-current-line-indicator):
Turn off current-line indicator.  (Bug#74642)

(cherry picked from commit a4548739b8ed3ba20223d1043390f71afcdd8a2f)

12 days agoeww: Use browse-url-with-browser-kind in eww-browse-with-external-browser
Daniel Mendler [Sat, 7 Dec 2024 21:56:15 +0000 (22:56 +0100)]
eww: Use browse-url-with-browser-kind in eww-browse-with-external-browser

Guarantee that an external browser is used by EWW if
`browse-url-secondary-browser-function' is set to
`eww-browse-url'.
* lisp/net/eww.el (eww-browse-with-external-browser): Use
`browse-url-secondary-browser-function' only if it is an
external browser, otherwise fall back to
`browse-url-with-browser-kind'.
(eww-follow-link): Use `eww-browse-with-external-browser' if the
EXTERNAL prefix argument is non-nil.  Improve docstring.
* lisp/net/browse-url.el (browse-url-secondary-browser-function):
Update docstring.  (Bug#74730)

(cherry picked from commit a3610381ff65490da33cd1870dd3dfd491bff06f)

12 days agoRevert Dired buffer when clicking on basename of directory
Visuwesh [Thu, 5 Dec 2024 06:10:02 +0000 (11:40 +0530)]
Revert Dired buffer when clicking on basename of directory

* lisp/dired.el (dired--make-directory-clickable): Make clicking
on basename of the directory revert the Dired buffer.
* etc/NEWS: Announce the change.  (Bug#74700)

(cherry picked from commit eb9ba4830e4c7853150eaed93f89225c00d6e52a)

12 days agoAdd nntps and snews to browse-url heuristic
Stefan Kangas [Wed, 11 Dec 2024 21:34:19 +0000 (22:34 +0100)]
Add nntps and snews to browse-url heuristic

* lisp/net/browse-url.el (browse-url-button-regexp): Support "nntps" and
"snews" schemes.

(cherry picked from commit d181afa5d96e66cbedf2d1a5e7ff3235222a92f1)

12 days agoShorten browse-url-default-scheme docstring
Stefan Kangas [Wed, 11 Dec 2024 21:32:54 +0000 (22:32 +0100)]
Shorten browse-url-default-scheme docstring

* lisp/net/browse-url.el (browse-url-default-scheme): Shorten
docstring by removing self-evident information.  Reflow.

(cherry picked from commit ab5040896e6d436ec4c13371721e5218348a6555)

12 days ago; * lisp/progmodes/c-ts-mode.el: Add missing declare-function form.
Yuan Fu [Thu, 12 Dec 2024 06:06:45 +0000 (22:06 -0800)]
; * lisp/progmodes/c-ts-mode.el: Add missing declare-function form.

(cherry picked from commit a0e7c884d81964af352817e574f33e5eebb31f28)

12 days ago; Fix documentation of a recent change in Eshell
Eli Zaretskii [Thu, 12 Dec 2024 05:40:32 +0000 (07:40 +0200)]
; Fix documentation of a recent change in Eshell

* lisp/eshell/em-hist.el (eshell-history-isearch): Fix typo and
wording.  (Bug#74287)

(cherry picked from commit 276a74f0f70126d099b64fefbcafa09758c20b2e)

12 days ago; Skip commit 5f8a86992f30b7ccd502e36c766dea76a94d1798
Eshel Yaron [Thu, 12 Dec 2024 16:00:46 +0000 (17:00 +0100)]
; Skip commit 5f8a86992f30b7ccd502e36c766dea76a94d1798

12 days agoDrop completion--adjust-metadata style property
Eshel Yaron [Thu, 12 Dec 2024 16:00:26 +0000 (17:00 +0100)]
Drop completion--adjust-metadata style property

12 days agoRework history Isearch for Eshell
Pengji Zhang [Tue, 10 Dec 2024 10:55:36 +0000 (18:55 +0800)]
Rework history Isearch for Eshell

This is to make history Isearch for Eshell similar to that of
'comint-mode', by hooking into Isearch properly instead of
defining new commands to emulate Isearch (bug#74287).

* lisp/eshell/em-hist.el (eshell-history-isearch): New user
option.
(eshell-goto-history, eshell--isearch-setup)
(eshell-history-isearch-end, eshell-history-isearch-search)
(eshell-history-isearch-message, eshell-history-isearch-wrap)
(eshell-history-isearch-push-state): New functions.
(eshell-isearch-backward-regexp, eshell-isearch-forward-regexp):
New commands.
(eshell--history-isearch-message-overlay)
(eshell--stored-incomplete-input, eshell--force-history-isearch):
New internal variables.
(eshell-hist-mode-map): Bind 'M-r' to
'eshell-isearch-backward-regexp' and free 'M-s' binding for
normal in-buffer search commands.
(eshell-isearch-backward, eshell-isearch-forward): Use the new
way to start searching.
(eshell-hist-initialize): Use the new Isearch setup function.
(eshell-previous-matching-input): Use 'eshell-goto-history'.
Also inhibit messages when searching.
(eshell-isearch-map, eshell-isearch-repeat-backward)
(eshell-isearch-abort, eshell-isearch-delete-char)
(eshell-isearch-return, eshell-isearch-cancel)
(eshell-isearch-repeat-forward, eshell-test-imatch)
(eshell-return-to-prompt, eshell-prepare-for-search): Remove.
These are for the old history Isearch implementation.

* doc/misc/eshell.texi (History): Document changes.

* etc/NEWS: Annouce changes.

(cherry picked from commit 3959ea66448fb371cdc67bd963cd539a90f99ee5)

12 days ago* test/infra/Dockerfile.emba (emacs-tree-sitter): Add jsdoc grammar.
Michael Albinus [Wed, 11 Dec 2024 08:15:47 +0000 (09:15 +0100)]
* test/infra/Dockerfile.emba (emacs-tree-sitter): Add jsdoc grammar.

(cherry picked from commit c0e1ff6b6b7105e0af09cb3db293d125cebbd9a1)

12 days agoFix browse-url-kde :version tags
Robert Pluim [Wed, 11 Dec 2024 08:04:06 +0000 (09:04 +0100)]
Fix browse-url-kde :version tags

* lisp/net/browse-url.el (browse-url-kde-program,
browse-url-kde-args): Update :version to 31.1.  (Bug#74775)

(cherry picked from commit f70b486759811090b8262302fbe10680b4846c7b)

12 days agoDo not call custom-reevaluate-setting in comint.el (bug#74287)
Pengji Zhang [Wed, 11 Dec 2024 07:05:09 +0000 (09:05 +0200)]
Do not call custom-reevaluate-setting in comint.el (bug#74287)

* lisp/comint.el (comint--force-history-isearch): New internal variable.
(comint-history-isearch-backward, comint-history-isearch-backward-regexp):
Set comint--force-history-isearch to t.
(comint-history-isearch-setup): Check comint--force-history-isearch.
(comint-history-isearch-end): Set comint--force-history-isearch back to nil
instead of calling custom-reevaluate-setting.

(cherry picked from commit 5db9471453af4a47d7665295ea007faf35c069b6)

12 days agoMake c-ts-mode tests pass even for older tree-sitter libraries
Yuan Fu [Wed, 11 Dec 2024 06:08:10 +0000 (22:08 -0800)]
Make c-ts-mode tests pass even for older tree-sitter libraries

* lisp/progmodes/c-ts-mode.el (c-ts-mode--for-loop-indent-rule):
Use child index instead of field name.

(cherry picked from commit 10e49d7fae708d64fe68effe5890ea77c875a799)

12 days agoUpdate browse-url-kde variables
Björn Bidar [Tue, 10 Dec 2024 22:43:29 +0000 (00:43 +0200)]
Update browse-url-kde variables

* lisp/net/browse-url.el (browse-url-kde-program, browse-url-kde-args):
Update defaults to more modern alternative to kfmclient.  Kfmclient is
only installed when Konqueror is installed, which isn't the default
file-manager since KDE4.  In contrast, it is more likely that kde-open
is installed as it is required by Plasma, and it exists since
KDE4.  (Bug#74775)

(cherry picked from commit 63b9ddda8f8dcfea2927cc4fab7134a7f65c0229)

12 days ago; * lisp/loadup.el: Silence checkdoc.
Stefan Kangas [Wed, 11 Dec 2024 00:06:00 +0000 (01:06 +0100)]
; * lisp/loadup.el: Silence checkdoc.

(cherry picked from commit 2412b9d763390c26a903604867bad4d2a5ffa67c)

12 days agoUpdate project-recompile's docstring
Daniel Mendler [Tue, 10 Dec 2024 23:29:01 +0000 (01:29 +0200)]
Update project-recompile's docstring

* lisp/progmodes/project.el (project-recompile):
Update the docstring accordingly (bug#74631).

(cherry picked from commit d657a38fd1270138301bcd5936f2c9319df69903)

12 days agoUse builtin-expect directly
Paul Eggert [Tue, 10 Dec 2024 19:19:25 +0000 (11:19 -0800)]
Use builtin-expect directly

* admin/merge-gnulib (GNULIB_MODULES): Add builtin-expect,
since src/lisp.h now uses __builtin_expect directly,
which we should no longer rely on it being pulled in as
a dependency of some other Gnulib module that we use.

(cherry picked from commit 1012e2a43b9d78ad623f2daa2204a2d1cec830a5)

12 days agotime-stamp: properly abbreviate instead of truncating names
Stephen Gildea [Tue, 10 Dec 2024 17:09:39 +0000 (09:09 -0800)]
time-stamp: properly abbreviate instead of truncating names

* lisp/time-stamp (time-stamp-string-preprocess): Stop truncating month
and weekday name strings; it didn't internationalize well.
Some historical conversions, previously accepted quietly, now warn.
(time-stamp-format): Recommend the simpler formats implemented in 2019.
* test/lisp/time-stamp-tests.el: Update tests and comments to match.
Revert commit 83e4559664 (2022-07-01), which was working around the
former confusion between truncation and abbreviation.

(cherry picked from commit 7665ec8df8d1c01211db6a85dda4813d6912ffee)

12 days agoMove ns-specific event setup to term/ns-win.el (Bug#74619)
Robert Pluim [Tue, 10 Dec 2024 08:42:11 +0000 (09:42 +0100)]
Move ns-specific event setup to term/ns-win.el (Bug#74619)

* lisp/term/ns-win.el (ns-setup-special-keys): New function,
contains event setup code previously in term/common-win.el.
Call it at top-level.
* lisp/term/common-win.el (x-setup-function-keys): Call
'ns-setup-special-keys'.

(cherry picked from commit ebd8feef1491907ebf4648a3aa38ddaa7fbf1dd2)

12 days agoproject-recompile: Autoload and run in project root
Daniel Mendler [Sun, 1 Dec 2024 10:43:48 +0000 (11:43 +0100)]
project-recompile: Autoload and run in project root

* lisp/progmodes/project.el (project-recompile): Autoload and
use project root as `default-directory' (bug#74631).

(cherry picked from commit be51f13491ddb5eb4f281a79fa7e76ef30147cb1)

12 days ago; Skip commit 4eea545bbc34adac27fbc7668542df0ec3b25f9f
Eshel Yaron [Thu, 12 Dec 2024 15:47:18 +0000 (16:47 +0100)]
; Skip commit 4eea545bbc34adac27fbc7668542df0ec3b25f9f

12 days ago; Mark failing tests in erc-scenarios-match.el as :unstable
F. Jason Park [Sun, 8 Dec 2024 00:52:12 +0000 (16:52 -0800)]
; Mark failing tests in erc-scenarios-match.el as :unstable

* test/lisp/erc/erc-scenarios-match.el
(erc-scenarios-match--stamp-both-invisible-fill-static)
(erc-scenarios-match--stamp-both-invisible-fill-static--nooffset):
Tag as :unstable for a `system-type' of `berkeley-unix'.
(Bug#74722)

(cherry picked from commit b25fba0ef8f38f95a9e65548f9ebb6c92739857e)

12 days ago; Slightly improve test case for erc-parse-modes
F. Jason Park [Sat, 7 Dec 2024 03:09:04 +0000 (19:09 -0800)]
; Slightly improve test case for erc-parse-modes

* lisp/erc/erc.el (erc--merge-local-modes): Look for a symbol's
`erc-module' property before examining its name.
* test/lisp/erc/erc-tests.el (erc-parse-modes): Expand case to cover
alternating plus and minus mode changes.

(cherry picked from commit dc7c38ed9ec85e2e7cbe3c9fcb3b6d5dbb5aa206)

12 days agoSupport menu separator types in tty menus (bug#74740)
Gerd Möllmann [Mon, 9 Dec 2024 14:08:01 +0000 (15:08 +0100)]
Support menu separator types in tty menus (bug#74740)

* src/xdisp.c (display_tty_menu_item): Display "--" for all menu
separator types.

(cherry picked from commit d719a8140917e3b1dd6889f064ffb8e8b0621c7d)

12 days ago; Add an autoload cookie for native-compile-prune-cache
Gerd Möllmann [Mon, 9 Dec 2024 05:41:09 +0000 (06:41 +0100)]
; Add an autoload cookie for native-compile-prune-cache

* lisp/emacs-lisp/comp.el (native-compile-prune-cache): Make it
autoload.

(cherry picked from commit b8ee67b6963a913d2842d69686f92f690c78cc50)

12 days agoFix occasional crash in lwlib due to uninitialized data
Pip Cet [Mon, 9 Dec 2024 12:48:54 +0000 (12:48 +0000)]
Fix occasional crash in lwlib due to uninitialized data

Crash observed on cfarm's cfarm210 machine, which is a Solaris 10 zone
on an M3000 server.

* lwlib/xlwmenu.c (XlwMenuInitialize): Initialize menu.font.

(cherry picked from commit cb288fbcd97deeeb993a7a3de97bdbf5b7dced75)

2 weeks agoFix usage reporting for Eshell commands
Jim Porter [Mon, 9 Dec 2024 04:23:46 +0000 (20:23 -0800)]
Fix usage reporting for Eshell commands

* lisp/eshell/esh-cmd.el (eshell-exec-lisp): Call
'elisp-get-fnsym-args-string'; the old function was renamed to this.

(cherry picked from commit 6df535788a20c9047d33dd8a0c62258597632647)

2 weeks agoReturn non-zero exit status when Eshell's "which" fails to find a command
Jim Porter [Mon, 9 Dec 2024 04:21:31 +0000 (20:21 -0800)]
Return non-zero exit status when Eshell's "which" fails to find a command

* lisp/eshell/esh-cmd.el (eshell/which): Set exit status to 1 if we
couldn't find any of the commands (bug#74739).

(cherry picked from commit b6c91cdf54168eef260e28a7866486a4d68bfc9e)

2 weeks ago; * etc/symbol-releases.eld: Add and-let*.
Stefan Kangas [Mon, 9 Dec 2024 03:14:47 +0000 (04:14 +0100)]
; * etc/symbol-releases.eld: Add and-let*.

(Bug#74712)

(cherry picked from commit 1098ae2896f458507c01afd04cb2e242227c6724)

2 weeks agoMake setting tex-dvi-view-command to an sexp obsolete
Stefan Kangas [Mon, 9 Dec 2024 03:01:44 +0000 (04:01 +0100)]
Make setting tex-dvi-view-command to an sexp obsolete

This is more in line with how we generally handle user options for
commands to call.  Later, we can get rid of the 'eval' call.

* lisp/textmodes/tex-mode.el (tex-view): Warn if tex-dvi-view-command is
set to an sexp instead of a string; say that this use is obsolete.
(tex-dvi-view-command): Change the default value to a string.  Update
docstring to reflect the above obsoletion.

(cherry picked from commit 9b4af418ddc3328c8756f3ca21ba25f161c65b65)

2 weeks ago; Skip commit 4960af1c963ada0185dd216c906ef52a6f05edab
Eshel Yaron [Mon, 9 Dec 2024 12:49:19 +0000 (13:49 +0100)]
; Skip commit 4960af1c963ada0185dd216c906ef52a6f05edab

2 weeks ago; * doc/lispref/modes.texi (Parser-based Font Lock): Fix markup.
Eli Zaretskii [Sun, 8 Dec 2024 12:10:33 +0000 (14:10 +0200)]
; * doc/lispref/modes.texi (Parser-based Font Lock): Fix markup.

(cherry picked from commit 9a0e26b88616946d2512680859166caa2675b30a)

2 weeks agoAllow treesit--font-lock-level-setter to be an alist
Yuan Fu [Sun, 8 Dec 2024 07:18:53 +0000 (23:18 -0800)]
Allow treesit--font-lock-level-setter to be an alist

* lisp/treesit.el (treesit-font-lock-level): Allow the
value to be an alist mapping major modes to font lock levels.
(treesit--font-lock-level-setter): Rewrite.
(treesit--compute-font-lock-level): New function.
(treesit-font-lock-recompute-features): Use new function.

* doc/lispref/modes.texi (Parser-based Font Lock): Minor fix.

(cherry picked from commit b953bcb17047998c9e41cede7c5e5ffec22209b2)

2 weeks ago* test/lisp/wdired-tests.el (wdired-test-bug34915): Fix for *BSD.
Michael Albinus [Sat, 7 Dec 2024 14:14:00 +0000 (15:14 +0100)]
* test/lisp/wdired-tests.el (wdired-test-bug34915): Fix for *BSD.

(Bug#74721)

(cherry picked from commit 69191aeefdb0fec0722dbbe29a72ad2af9053f87)

2 weeks agoDon't restrict 'lua-ts-send-file' to 'lua-ts-mode'
john muhl [Mon, 2 Dec 2024 15:20:01 +0000 (09:20 -0600)]
Don't restrict 'lua-ts-send-file' to 'lua-ts-mode'

* lisp/progmodes/lua-ts-mode.el (lua-ts-send-file): Remove
restriction on interactive use.  Unlike related send-* commands
it can be useful to send a file to the Lua interpreter outside of
a 'lua-ts-mode' buffer.  (Bug#74705)

(cherry picked from commit 4f2a21cc2a369341b91bb3657e851bdc75e5e053)

2 weeks ago; Skip commit 84fc77f34f0c942860c2fd4d3080504e9509dd2b
Eshel Yaron [Mon, 9 Dec 2024 12:47:24 +0000 (13:47 +0100)]
; Skip commit 84fc77f34f0c942860c2fd4d3080504e9509dd2b

2 weeks agoRemove unnecessary function call from 'php-ts-mode'
Vincenzo Pupillo [Wed, 4 Dec 2024 14:06:54 +0000 (15:06 +0100)]
Remove unnecessary function call from 'php-ts-mode'

* lisp/progmodes/php-ts-mode.el (php-ts-mode): Remove
unnecessary function call 'treesit-font-lock-recompute-features'.
(Bug#74688)

(cherry picked from commit c87c5b95e1309b59b6cb07d07a20234a74a73f35)

2 weeks agoprogmodes/js: Use 'completing-read' instead of 'ido-completing-read'
Daniel Mendler [Wed, 1 Mar 2023 18:27:38 +0000 (19:27 +0100)]
progmodes/js: Use 'completing-read' instead of 'ido-completing-read'

* lisp/progmodes/js.el (js--read-symbol): Don't use Ido.
(Bug#74615)

(cherry picked from commit e7fdf6b68ce7aeba9f3b503a1c5b8bf1a61800c1)

2 weeks ago; Skip commit 8c3e10b5756a72d5d17f8166c0241f933305abe9
Eshel Yaron [Mon, 9 Dec 2024 12:46:58 +0000 (13:46 +0100)]
; Skip commit 8c3e10b5756a72d5d17f8166c0241f933305abe9

2 weeks ago; Skip commit bf976ca7436b620ac33f00fa12317038ab387e00
Eshel Yaron [Mon, 9 Dec 2024 12:46:54 +0000 (13:46 +0100)]
; Skip commit bf976ca7436b620ac33f00fa12317038ab387e00

2 weeks ago; * lisp/dired-aux.el (shell-command-guess-open): Fix :type (bug#74720).
Eli Zaretskii [Sat, 7 Dec 2024 11:50:27 +0000 (06:50 -0500)]
; * lisp/dired-aux.el (shell-command-guess-open): Fix :type (bug#74720).

(cherry picked from commit d84c5c24b58b124f79b2a61e58e46c501d8ec52a)

2 weeks agoUpdate info-lookup's support for 'latex-mode'
Eli Zaretskii [Sat, 7 Dec 2024 09:04:44 +0000 (11:04 +0200)]
Update info-lookup's support for 'latex-mode'

* lisp/info-look.el (latex-mode): Update URLs of LaTeX manuals and
the corresponding names of the index nodes.

(cherry picked from commit d185d901905e11cf9120f5cea680ae04eae2809f)

2 weeks ago; * lisp/help-at-pt.el (display-local-help): Fix last change.
Robert Pluim [Thu, 5 Dec 2024 10:19:41 +0000 (11:19 +0100)]
; * lisp/help-at-pt.el (display-local-help): Fix last change.

(cherry picked from commit 3cf177442ccd08f7b92b3e08c41899ba34699355)

2 weeks ago; * lisp/help-at-pt.el (display-local-help): Doc fix.
Eli Zaretskii [Wed, 4 Dec 2024 17:51:31 +0000 (19:51 +0200)]
; * lisp/help-at-pt.el (display-local-help): Doc fix.

(cherry picked from commit 02c53b9aab0f255e7fac39660febbbbfbc59ba25)

2 weeks ago; * doc/emacs/building.texi (Compilation Mode): Fix last change.
Eli Zaretskii [Wed, 4 Dec 2024 16:21:19 +0000 (18:21 +0200)]
; * doc/emacs/building.texi (Compilation Mode): Fix last change.

(cherry picked from commit 130c2a13dc72fca1677a986d3131398e908e58df)

2 weeks agoAdd tags to 'compilation-transform-file-match-alist' custom type
Robert Pluim [Wed, 4 Dec 2024 16:00:16 +0000 (17:00 +0100)]
Add tags to 'compilation-transform-file-match-alist' custom type

* lisp/progmodes/compile.el (compilation-filter-start): Add some
more meaningful tags, and switch to using 'radio' instead of
'choice'.

(cherry picked from commit df7f02a7954c652896dcaae590caf9dc0c4dc6a1)

2 weeks agoImprove 'compilation-transform-file-match-alist' documentation
Robert Pluim [Tue, 3 Dec 2024 14:20:04 +0000 (15:20 +0100)]
Improve 'compilation-transform-file-match-alist' documentation

* doc/emacs/building.texi (Compilation Mode): Document
'compilation-transform-file-match-alist'.
* lisp/progmodes/compile.el
(compilation-transform-file-match-alist):
Expand docstring and add some examples.

(cherry picked from commit 7c50e4cc8cc19ad1ab10121ece894409a72a8af9)

2 weeks agoImprove 'compilation-hidden-output' docstring
Robert Pluim [Mon, 2 Dec 2024 18:27:48 +0000 (19:27 +0100)]
Improve 'compilation-hidden-output' docstring

* lisp/progmodes/compile.el (compilation-hidden-output): Escape
the newline so the example value is more suitable for copying.

(cherry picked from commit a73d08bb67a3562da42ea929df01eb1fb0c17b99)

2 weeks ago; Improve documentation of 'epa-mail-verify'
Eli Zaretskii [Wed, 4 Dec 2024 13:21:13 +0000 (15:21 +0200)]
; Improve documentation of 'epa-mail-verify'

* doc/misc/epa.texi (Mail-mode integration):
* lisp/epa-mail.el (epa-mail-verify): Improve documentation of
'epa-mail-verify'.  (Bug#74630)

(cherry picked from commit d50293b0f108ff85796dc56312a1c46c8db4f8a1)

2 weeks ago; Skip commit 7b8d12e95de6e6b5239c538ad6f5af96dc3e1c2a
Eshel Yaron [Mon, 9 Dec 2024 12:45:26 +0000 (13:45 +0100)]
; Skip commit 7b8d12e95de6e6b5239c538ad6f5af96dc3e1c2a

2 weeks ago; Skip commit e618d5ae941d005e9da6d5d5cba68cc0ecade0e5
Eshel Yaron [Mon, 9 Dec 2024 12:45:19 +0000 (13:45 +0100)]
; Skip commit e618d5ae941d005e9da6d5d5cba68cc0ecade0e5

2 weeks ago; Fix grammar in Emacs user manual
Eli Zaretskii [Mon, 2 Dec 2024 12:33:52 +0000 (14:33 +0200)]
; Fix grammar in Emacs user manual

* doc/emacs/trouble.texi (Sending Patches): Fix wording.  Reported
by Daniel Martín <mardani29@yahoo.es>.  (Bug#74638)

(cherry picked from commit 43c4a06ffcc8dd39a3fb743aca5aa9a71e74189c)

2 weeks ago; Skip commit 6bca138d60e47d0fbab4faf8e83c5b9b319f260d
Eshel Yaron [Mon, 9 Dec 2024 12:44:31 +0000 (13:44 +0100)]
; Skip commit 6bca138d60e47d0fbab4faf8e83c5b9b319f260d

2 weeks agoFix alias cycle when loading cl.el
Eshel Yaron [Mon, 9 Dec 2024 12:43:01 +0000 (13:43 +0100)]
Fix alias cycle when loading cl.el

2 weeks agoFix bug#74504
Eshel Yaron [Mon, 9 Dec 2024 12:41:32 +0000 (13:41 +0100)]
Fix bug#74504

2 weeks agoDrop apropos.el
Eshel Yaron [Sat, 7 Dec 2024 17:25:40 +0000 (18:25 +0100)]
Drop apropos.el

2 weeks agoFix the version of librsvg API change
Manuel Giraud [Mon, 2 Dec 2024 14:11:52 +0000 (15:11 +0100)]
Fix the version of librsvg API change

* src/image.c (init_svg_functions, svg_load_image): The first
official version that introduces
'rsvg_handle_get_pixbuf_and_error' is 2.59.0 not 2.58.0.
(Bug#74606)

(cherry picked from commit f65de1019dca6398097751abefcad7e1a4637551)

2 weeks agoBetter handling of "%" in Tramp user or host names
Michael Albinus [Fri, 6 Dec 2024 10:56:05 +0000 (11:56 +0100)]
Better handling of "%" in Tramp user or host names

* lisp/net/tramp.el (tramp-format-spec): New defun.
(tramp-dissect-file-name, tramp-compute-multi-hops)
(tramp-expand-args):
* lisp/net/tramp-cmds.el (tramp-default-rename-file): Use it.

(cherry picked from commit 9ddec89e422d0dd6e9069731b8f2dd2c90aa5607)

2 weeks ago* lisp/emacs-lisp/lisp-mode.el (lisp-fdefs): Fix font-lock (bug#74307).
Juri Linkov [Thu, 5 Dec 2024 18:15:12 +0000 (20:15 +0200)]
* lisp/emacs-lisp/lisp-mode.el (lisp-fdefs): Fix font-lock (bug#74307).

Move '(not "\\")' inside the group to not exclude the last character
for "\\<>" and similar constructs.

(cherry picked from commit 61d06762975fb203ae06a57d30397d699164ebc1)

2 weeks agoValidate font-lock rules when setting up tree-sitter major mode
Yuan Fu [Tue, 3 Dec 2024 04:47:38 +0000 (20:47 -0800)]
Validate font-lock rules when setting up tree-sitter major mode

When tree-sitter grammar make breaking changes, major modes
breaks completely: no highlighting is shown.  This new function
will run in treesit-major-mode-setup, validate each
font-lock features, and disable the ones that are not compatible
with the new grammar, so that the rest of the features still
work.  It also displays a warning explaining the situation,
which looks like this:

    Warning (treesit-font-lock-rules-mismatch): Emacs cannot
    compile every font-lock rules because a mismatch between the
    grammar and the rules.  This is most likely due to a
    mismatch between the font-lock rules defined by the major
    mode and the tree-sitter grammar.

    This error can be fixed by either downgrading the
    grammar (tree-sitter-c) on your system, or upgrading the
    major mode package.  The following are the temporarily
    disabled features:

    - `preprocessor' for c.

* lisp/treesit.el (treesit-validate-font-lock-rules): New function.
(treesit-major-mode-setup): Validate font-lock rules.

(cherry picked from commit ed9eaaa9964f46ef5f9a9c084a1cb8f1ae1926a3)

2 weeks agoMake treesit-query-compile compile compiled-query eagerly
Yuan Fu [Tue, 3 Dec 2024 04:14:55 +0000 (20:14 -0800)]
Make treesit-query-compile compile compiled-query eagerly

* src/treesit.c (treesit_ensure_query_compiled_signal): Extrat
out into a function.
(Ftreesit_query_compile): If EAGER is non-nil and QUERY is a
lazily compiled query, compile it eagerily.

(cherry picked from commit 4ecd1639b19345786020c0f7a5f3672129dae466)

2 weeks ago; Use cpp instead of c++ for c-ts-mode--simple-indent-rules
Yuan Fu [Tue, 3 Dec 2024 03:39:10 +0000 (19:39 -0800)]
; Use cpp instead of c++ for c-ts-mode--simple-indent-rules

* lisp/progmodes/c-ts-mode.el (c-ts-mode--simple-indent-rules):
Use cpp to be more inline with other functions in c-ts-mode.el.

(cherry picked from commit 5d535334f30b874ebb8e2c286c1e059d86ccd41f)

2 weeks agoMake tree-sitter-explorer support selecting local parser
Yuan Fu [Tue, 3 Dec 2024 01:23:08 +0000 (17:23 -0800)]
Make tree-sitter-explorer support selecting local parser

Now treesit-explore-mode will prompt the user to select a parser
to explore, rather than a language.  It'll also include the
local parsers at point for selection.

* lisp/treesit.el (treesit--explorer-language): Change to
treesit--explorer-parser.
(treesit--explorer--nodes-to-highlight):
(treesit--explorer-refresh): Change to use parser.
(treesit--explorer-generate-parser-alist): New function.
(treesit-explorer-switch-parser): New command.
(treesit-explore-mode): Use switch-parser to setup.
* doc/lispref/parsing.texi (Language Grammar): Mention
treesit-explorer-switch-parser.

(cherry picked from commit 10b4d3045e1b856009c5ac1e1a1ca257f2d4493f)

2 weeks ago* lisp/tab-line.el (tab-line-tabs-fixed-window-buffers): More optimizations.
Juri Linkov [Wed, 4 Dec 2024 18:38:41 +0000 (20:38 +0200)]
* lisp/tab-line.el (tab-line-tabs-fixed-window-buffers): More optimizations.

Use :size arg of 'make-hash-table' as a hint how many buffers
the table will have.  Add ':in-place t' to 'sort'.

(cherry picked from commit 25b4bf7fcd75564f23b2e60e29e8ff7354186371)