]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 months ago; Skip commit dfb7f1942659cab4464e01f7e498efc4b269de3e
Eshel Yaron [Mon, 23 Dec 2024 14:53:58 +0000 (15:53 +0100)]
; Skip commit dfb7f1942659cab4464e01f7e498efc4b269de3e

2 months agoRemove unneeded workaround from w32console.c
Eli Zaretskii [Mon, 28 Oct 2024 13:43:08 +0000 (15:43 +0200)]
Remove unneeded workaround from w32console.c

* src/w32console.c (w32con_write_glyphs): Remove unneeded test.
(w32con_clear_end_of_line): Fill in the glyph.frame member.

(cherry picked from commit 7aa00fa90d6eb9347034106da10cdbbdc23b3d3a)

2 months agoDon't work around a corner case once observed
Gerd Möllmann [Sun, 27 Oct 2024 11:05:58 +0000 (12:05 +0100)]
Don't work around a corner case once observed

* src/term.c (tty_write_glyphs): Refactor a bit. Don't check for null
glyph frame.

(cherry picked from commit d3f8ed730fa10d7283c6638dc4cc20cabbe4f4bf)

2 months agoTemporary fix for mouse events on child frames
Eli Zaretskii [Sat, 26 Oct 2024 12:31:42 +0000 (15:31 +0300)]
Temporary fix for mouse events on child frames

* src/w32inevt.c (do_mouse_event): Ignore mouse events when the
selected frame is a child frame.

(cherry picked from commit d7bf2cfd5d5713c9a9014807567e3f7e723280cf)

2 months ago* src/w32console.c (w32con_update_end): Fix cursor display.
Eli Zaretskii [Sat, 26 Oct 2024 12:19:53 +0000 (15:19 +0300)]
* src/w32console.c (w32con_update_end): Fix cursor display.

(cherry picked from commit a3e41874c1b3d75d18dab9e20e0f183a3086fea4)

2 months agoFix dimensions of child frames on w32 console
Eli Zaretskii [Sat, 26 Oct 2024 11:26:02 +0000 (14:26 +0300)]
Fix dimensions of child frames on w32 console

* src/w32inevt.c (maybe_generate_resize_event): Don't generate
resize events for child frames.

(cherry picked from commit 0d6a014750c63a9a9d6e5bcc195e80bf58dfa276)

2 months agoMore fixes for w32 console build
Eli Zaretskii [Sat, 26 Oct 2024 09:14:21 +0000 (12:14 +0300)]
More fixes for w32 console build

* src/w32term.c (w32_read_socket): Don't use FRAME_OBSCURED_P,
which was removed.
* src/frame.h (struct frame): Move !HAVE_NTGUI to its original
place.
* src/treesit.c (treesit_load_language): Shut up GCC warning.

(cherry picked from commit 4cb7f3935e2b600d23ae78bde2ce54a8a320e08b)

2 months agoAdapt w32 console to tty-child-frame changes
Eli Zaretskii [Sat, 26 Oct 2024 08:18:41 +0000 (11:18 +0300)]
Adapt w32 console to tty-child-frame changes

* src/w32console.c (w32con_write_glyphs): Use the glyph's frame,
not the root frame, to resolve faces from face IDs.

(cherry picked from commit 33586db3d34bcbe6441d98542df2b3370a1e2622)

2 months agoHandle obscured cursor differently
Gerd Möllmann [Wed, 23 Oct 2024 10:59:09 +0000 (12:59 +0200)]
Handle obscured cursor differently

This also fixes an error made when porting this to savannah.

* src/dispnew.c (abs_cursor_pos, (is_cursor_obscured)
(terminal_cursor_magic): Port correctly and fix.

(cherry picked from commit 9b8d1e0addeca9b508324537e7743d0af508a630)

2 months agoDeal with wide characters
Gerd Möllmann [Wed, 23 Oct 2024 07:55:26 +0000 (09:55 +0200)]
Deal with wide characters

* src/dispnew.c (make_glyph_space): New function.
(neutralize_wide_char): New function.
(produce_box_sides, copy_child_glyphs): Call neutralize_wide_char.

(cherry picked from commit d1fd1d8fba8a6cfe774f6982bb6ad6c874d0c960)

2 months agoFix copy/paste error
Gerd Möllmann [Wed, 23 Oct 2024 05:51:12 +0000 (07:51 +0200)]
Fix copy/paste error

* src/dispnew.c (produce_box_glyphs): DonÄt set multibyte_p twice, set
padding_p.

(cherry picked from commit 40aa1e329b637e42fc945cba6213b4e7b4a5d60f)

2 months agoFix UB in line_hash_code
Paul Eggert [Tue, 22 Oct 2024 19:18:14 +0000 (12:18 -0700)]
Fix UB in line_hash_code

* src/dispnew.c (line_hash_code): Avoid undefined behavior on
integer overflow.

(cherry picked from commit dac51f1f66ef93cec6d9ea17e74a193de9ae1ff3)

2 months agoSome cleanup of frame_parm_table
Gerd Möllmann [Wed, 23 Oct 2024 03:01:51 +0000 (05:01 +0200)]
Some cleanup of frame_parm_table

* src/frame.c (frame_parms): Use built-in symbols for all entries.
(syms_of_frame): Check that entries are valid built-in symbols.

(cherry picked from commit 5cc5fa79bfdf0f905723e592baa41c3f0b12316d)

2 months ago; Clarify a comment in dispnew.c
Eli Zaretskii [Tue, 22 Oct 2024 14:33:45 +0000 (10:33 -0400)]
; Clarify a comment in dispnew.c

(cherry picked from commit 4182dfb7e844bcc7148a3d7f1084cef6982b36d9)

2 months ago* src/term.c (tty_display_dimension): Avoid warnings.
Eli Zaretskii [Tue, 22 Oct 2024 10:19:12 +0000 (06:19 -0400)]
* src/term.c (tty_display_dimension): Avoid warnings.

(cherry picked from commit 560260a631489576e99caedda3233670f2fcd66c)

2 months agoFix commenting conventions.
Eli Zaretskii [Tue, 22 Oct 2024 09:42:05 +0000 (05:42 -0400)]
Fix commenting conventions.

(cherry picked from commit 4ef5ade5da60075418e0f6db1b91ec08a38bb884)

2 months agoFix compilation warnings
Eli Zaretskii [Tue, 22 Oct 2024 08:56:19 +0000 (04:56 -0400)]
Fix compilation warnings

* src/frame.c (tty_child_size_param):
* src/frame.h (MOUSE_HL_INFO): Avoid NULL dereference warnings.

(cherry picked from commit 9accfc24bcd82087d936cf7ee37470f86cac8ea7)

2 months agoDon't ignore .patch files
Gerd Möllmann [Mon, 21 Oct 2024 16:50:26 +0000 (18:50 +0200)]
Don't ignore .patch files

This is VERY bad for magit users like me.

(cherry picked from commit 55af24a1c29724401d66ddd485cf6e4776fe5050)

2 months agoComment
Gerd Möllmann [Mon, 21 Oct 2024 13:42:03 +0000 (15:42 +0200)]
Comment

(cherry picked from commit fbe63a33f1a0a0df2700245c4cd44cc446ac986e)

2 months agoComment
Gerd Möllmann [Mon, 21 Oct 2024 13:40:15 +0000 (15:40 +0200)]
Comment

(cherry picked from commit 4a3ba42e6f86fa85b457bdeba9e08ccb4219107d)

2 months agoDon't set internal_last_event_frame to nil
Gerd Möllmann [Mon, 21 Oct 2024 09:21:17 +0000 (11:21 +0200)]
Don't set internal_last_event_frame to nil

* src/frame.c (do_switch_frame): Do not set internal_last_event_frame to
nil on ttys.

(cherry picked from commit 0012e555d963b1df2d2c8be9f515ddf09417e110)

2 months agoMinor refactoring
Gerd Möllmann [Fri, 18 Oct 2024 14:21:46 +0000 (16:21 +0200)]
Minor refactoring

(cherry picked from commit 6aa203bb04fa75e7562064e9261d7760c1b6562a)

2 months agoAccept frame param width/height of 0
Gerd Möllmann [Fri, 18 Oct 2024 13:25:10 +0000 (15:25 +0200)]
Accept frame param width/height of 0

* src/frame.c (tty_child_size_param): Accept values of 0.

(cherry picked from commit 23409041b135d7b89dcb010a7f22ce9c817d8c76)

2 months agoDon't check for child frame support
Gerd Möllmann [Fri, 18 Oct 2024 12:59:36 +0000 (14:59 +0200)]
Don't check for child frame support

* lisp/paren.el (show-paren-function): Don't check with
display-graphics-p or featurep.

(cherry picked from commit e0ca1256a5747470f3867b231524cc93b87ca2f2)

2 months agoSet top terminal frame also to children
Gerd Möllmann [Fri, 18 Oct 2024 12:58:48 +0000 (14:58 +0200)]
Set top terminal frame also to children

* src/frame.c (make_terminal_frame): Don't check for being root when
setting top_frame.

(cherry picked from commit 55b72ad87554e3de518366754da64dad239a04bf)

2 months agoCheck for tty-child-frames feature in show-paren
Gerd Möllmann [Thu, 17 Oct 2024 18:02:57 +0000 (20:02 +0200)]
Check for tty-child-frames feature in show-paren

* lisp/paren.el (show-paren-function): Don't rely on display-graphic-p,
also check tty-child-frames feature.

(cherry picked from commit 5445062fabc765b316ecedc26bbb395c75d44405)

2 months agoInitial child frames based on master
Gerd Möllmann [Mon, 21 Oct 2024 16:32:04 +0000 (18:32 +0200)]
Initial child frames based on master

This is based on a diff from 2024-10-15 which still applied.
Since then, I've inadvertantly modified the igc branch so that
it is no longer possible to get a clean diff of what has changed
since I created the branch.

(cherry picked from commit 414de92a562e8912ffdc8ed2995e7ea10d05f13b)

2 months ago(enable-local-eval): set to nil by default
Eshel Yaron [Sun, 22 Dec 2024 18:00:41 +0000 (19:00 +0100)]
(enable-local-eval): set to nil by default

2 months agoFix hangs caused by unbalanced braces in Python f-strings
kobarity [Sun, 15 Dec 2024 14:02:51 +0000 (23:02 +0900)]
Fix hangs caused by unbalanced braces in Python f-strings

* lisp/progmodes/python.el (python--font-lock-f-strings):
Temporarily bind forward-sexp-function to nil when calling
'up-list'.  (Bug#74738)

(cherry picked from commit 3c247f86b7639995c8ce2627049bcc91452d2cca)

2 months ago; * test/lisp/time-stamp-tests.el: make checkdoc happier
Stephen Gildea [Sat, 14 Dec 2024 18:46:15 +0000 (10:46 -0800)]
; * test/lisp/time-stamp-tests.el: make checkdoc happier

(cherry picked from commit 7dcc05987160cabc0c063bc285d34cdb2c3c600f)

2 months agotime-stamp: fix search end, more compatibility suggestions
Stephen Gildea [Sat, 14 Dec 2024 18:23:04 +0000 (10:23 -0800)]
time-stamp: fix search end, more compatibility suggestions

* lisp/time-stamp.el (time-stamp): Use a marker for the
search end limit so we don't insert past it.
(time-stamp-conv-warn): Include a second suggested conversion
that might be what was intended.
Include a link to variable 'time-stamp-format'.
* test/lisp/time-stamp-tests.el: more tests

(cherry picked from commit 33532c58992fc44afa5369678cb53252ec7dc3ac)

2 months 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)

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

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

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

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

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

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

2 months 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

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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)

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

2 months 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)

2 months 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)

2 months 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)

2 months 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)

2 months 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 months 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 months 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 months 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 months 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 months ago; Skip commit 4960af1c963ada0185dd216c906ef52a6f05edab
Eshel Yaron [Mon, 9 Dec 2024 12:49:19 +0000 (13:49 +0100)]
; Skip commit 4960af1c963ada0185dd216c906ef52a6f05edab

2 months 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 months 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)