]>
git.eshelyaron.com Git - emacs.git/log
Vitaliy Chepelev [Tue, 24 Sep 2024 04:25:13 +0000 (04:25 +0000)]
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
7930fe2f44f50b6a7abf5fbe1218dcc15e85b28d )
Stefan Kangas [Sun, 15 Dec 2024 18:15:55 +0000 (19:15 +0100)]
; * lisp/widget.el: Delete commented out code.
(cherry picked from commit
32060cef1cb58e53896f4fea82d2d30d35501d93 )
Eshel Yaron [Mon, 23 Dec 2024 14:57:54 +0000 (15:57 +0100)]
Eli Zaretskii [Sun, 15 Dec 2024 07:45:58 +0000 (09:45 +0200)]
; * doc/lispref/frames.texi (Multiple Terminals): Add indexing.
(cherry picked from commit
5c6dbc65f3642b98d3e1ff3a901c1580353783df )
Paul Eggert [Sun, 15 Dec 2024 07:16:10 +0000 (00:16 -0700)]
Update documentation of 'etags' regexps some more
* doc/emacs/maintaining.texi (Etags Regexps):
* doc/man/etags.1: Give more details about what's not supported.
(cherry picked from commit
856a58e28279139cfd6503917954fd75fcdd7e78 )
Eli Zaretskii [Sun, 15 Dec 2024 05:52:40 +0000 (07:52 +0200)]
Update documentation of 'etags' regexps
* doc/emacs/maintaining.texi (Etags Regexps):
* doc/man/etags.1: Say that shy groups are not supported (bug#74861).
(cherry picked from commit
4c68846223b91e50e4a15fbc59d2238605ce2a57 )
Stefan Monnier [Tue, 10 Dec 2024 21:26:31 +0000 (16:26 -0500)]
elisp-mode.el: Disable Flymake byte-compile backend in untrusted files
To address serious security issues (CVE-2024-53920), disable
`elisp-flymake-byte-compile` except in those files explicitly
specified as "trusted".
For that introduce a new custom var `trusted-files` and new
function `trusted-content-p`.
While at it, similarly skip the implicit macroexpansion done during
completion if the current file is not trusted.
* lisp/files.el (trusted-files): New variable.
(trusted-content-p): New function.
* lisp/progmodes/elisp-mode.el (elisp--safe-macroexpand-all):
New function, extracted from `elisp--local-variables`.
Use `trusted-content-p`.
(elisp--local-variables): Use it.
(elisp-flymake-byte-compile): Disable according to `trusted-content-p`.
(cherry picked from commit
b5158bd191422e46273c4d9412f2bf097e2da2e0 )
Gerd Möllmann [Thu, 12 Dec 2024 07:00:44 +0000 (08:00 +0100)]
Signal errors for unimplemented features
* src/frame.c (make_terminal_frame): Error for minibuffer-only frames.
* src/term.c (Ftty_frame_restack): Signal error.
(cherry picked from commit
6fa2050ee7663441e4d0aa4fff974cc5d45bffc7 )
Gerd Möllmann [Sun, 8 Dec 2024 07:56:22 +0000 (08:56 +0100)]
* lisp/tty-tip.el (tty-tip--create-frame): Use tooltip-hide-delay
(cherry picked from commit
b67feec95e8f7526fecab0bb10f91233ba06fef8 )
Gerd Möllmann [Sun, 8 Dec 2024 05:54:47 +0000 (06:54 +0100)]
Prevent too early hiding of tty tips
* lisp/tty-tip.el (tty-tip--show-timer): Renamed from
tty-tip--timeout-id.
(tty-tip--hide-timer): New variable.
(tty-tip--delete-frame): Cancel hide timer if set.
(tty-tip--create-frame): Use run-with-timer instead of run-at-time
for consistency.
(cherry picked from commit
d22882e418eb100423c53d90cca257bb0c197b86 )
Gerd Möllmann [Mon, 18 Nov 2024 15:50:51 +0000 (16:50 +0100)]
Consider all windows for redisplay if frames have been cleared
* src/xdisp.c (clear_garbaged_frames): Return true if any tty frame's
current matrix has been cleared.
(redisplay_internal): Consider all windows if clear_garbaged_frames
returns true.
(cherry picked from commit
196c761c66d47ff6a93d9134ca73d1c08a9125db )
Gerd Möllmann [Mon, 18 Nov 2024 07:21:22 +0000 (08:21 +0100)]
* src/xdisp.c (redisplay_internal): Use assq_no_quit.
(cherry picked from commit
7608563d3b274d805111827a39cc73aaa147eaa1 )
Gerd Möllmann [Sat, 16 Nov 2024 12:52:17 +0000 (13:52 +0100)]
Revert "Don't pause display for pending input"
This reverts commit
f62d70f52f4f6b7ed158d618bf790df21f171172 .
(cherry picked from commit
e7359fbbc40bbf714fb5b4bffc256b455fbe9a6c )
Gerd Möllmann [Sat, 16 Nov 2024 12:51:50 +0000 (13:51 +0100)]
Revert "Remove an unused parameter"
This reverts commit
627cbf05b53756883a789ff45727acf23f5066a4 .
(cherry picked from commit
e5a2bc740dc43de63acb6e9603ad1905fac1e2c6 )
Gerd Möllmann [Sat, 16 Nov 2024 07:57:35 +0000 (08:57 +0100)]
Remove an unused parameter
* src/dispnew.c (combine_updates): Remove unused parameter inhibit_scrolling.
* src/xdisp.c (redisplay_internal): Adjust caller.
* src/dispextern.h: Change function prototype.
(cherry picked from commit
627cbf05b53756883a789ff45727acf23f5066a4 )
Gerd Möllmann [Fri, 15 Nov 2024 12:34:55 +0000 (13:34 +0100)]
Don't pause display for pending input
* src/dispnew.c: Remove display_completed, redisplay_dont_pause,
redisplay-dont-pause was declared obsolete in Emacs 24. Remove anything
checking pending input, change function signatures accordingly, and so
on.
* src/keyboard.c (read_char): Don't use redisplay_dont_pause.
* src/minibuf.c (read_minibuf): Use new function signatures.
* src/xdisp.c: Don't check display_completed. Use new API.
* lisp/subr.el (redisplay-dont-pause): Remove declaration.
(cherry picked from commit
f62d70f52f4f6b7ed158d618bf790df21f171172 )
Gerd Möllmann [Fri, 15 Nov 2024 07:15:10 +0000 (08:15 +0100)]
Respect redisplay_dont_pause in combined update
* src/dispnew.c (combine_updates): Respect redisplay_dont_pause. This is
important for echo_area_display which binds that variable.
(cherry picked from commit
4da9abe653fe536afc67fe5e175227eac10e31cc )
Gerd Möllmann [Tue, 12 Nov 2024 08:23:27 +0000 (09:23 +0100)]
Fix a FIXME In redisplay_internal
* src/xdisp.c (redisplay_internal): Compare root frames before
setting the frame garbaged.
(cherry picked from commit
37cdf2897ad51f45a228c86f5f12feeb284673df )
Gerd Möllmann [Sun, 10 Nov 2024 15:19:40 +0000 (16:19 +0100)]
Change interface of prepare_desired_root_row
* src/dispnew.c (prepare_desired_root_row): Return NULL if we can't
prepare the row.
(produce_box_line, copy_child_glyphs): Callers changed accordingly.
(cherry picked from commit
437ccbe612b377fd5ac492572702978ec75ea0df )
Gerd Möllmann [Sun, 10 Nov 2024 15:18:29 +0000 (16:18 +0100)]
Another case of copying from non-enabled glyphs (bug#74274)
* src/dispnew.c (build_frame_matrix_from_leaf_window): If current window
row is not enabled, don't copy from it.
(cherry picked from commit
582ebedd33ed957b9ad409e35ed7ba9dafa42c01 )
Eli Zaretskii [Sat, 9 Nov 2024 12:07:09 +0000 (14:07 +0200)]
; * src/dispnew.c (prepare_desired_root_row): Add commentary (bug#74274).
(cherry picked from commit
aa8bebf9b3eff9e53eeb1dc1a91fcc9ee5ee1095 )
Gerd Möllmann [Sat, 9 Nov 2024 07:26:06 +0000 (08:26 +0100)]
Don't copy from non-enabled current glyphs (bug#74274)
* src/dispnew.c (prepare_desired_root_row): Check if current row is
enabled.
(cherry picked from commit
8fa26765c0dcedcadf884195189e337cb9778cb8 )
Gerd Möllmann [Wed, 6 Nov 2024 13:55:59 +0000 (14:55 +0100)]
Fix hiding tips from pre-command-hook
* lisp/tty-tip.el (tty-tip-mode): Put #'tty-tip--hide on the
pre-command-hook.
(cherry picked from commit
6cd7ce7cf2a36a790c7e1e0a5496c35fc9d56495 )
Gerd Möllmann [Wed, 6 Nov 2024 13:34:47 +0000 (14:34 +0100)]
Revert "Mark atimer allocation as ambiguous root"
This reverts commit
c42b90b21a4efb3c5a8ebc6e3bd6be2908d1f2ac .
(cherry picked from commit
cc3c05cad9ef42cd7b0231efdbdba228aa06de92 )
Jeff Walsh [Tue, 5 Nov 2024 12:09:56 +0000 (23:09 +1100)]
Mark atimer allocation as ambiguous root
* src/atimer.c (start_atimer): Time could be passed a lisp object for
data, we should allocate this as an ambiguous root
(cherry picked from commit
c42b90b21a4efb3c5a8ebc6e3bd6be2908d1f2ac )
Gerd Möllmann [Wed, 6 Nov 2024 10:42:53 +0000 (11:42 +0100)]
Remove tip in pre-command-hook
* lisp/tty-tip.el (tty-tip-mode): install pre-command-hook that deleted
the tip frame.
(cherry picked from commit
907c735402dd26e721ca8534df1e326fc53a3012 )
Gerd Möllmann [Wed, 6 Nov 2024 09:22:50 +0000 (10:22 +0100)]
Let tty tips disappear automatically
* lisp/tty-tip.el (tty-tip--create-frame): Delete tip frame after
x-show-tooltip-timeout seconds.
(cherry picked from commit
e0bfd3ce23eafb13ab0400f3046074b83784d9f8 )
Gerd Möllmann [Wed, 6 Nov 2024 04:48:46 +0000 (05:48 +0100)]
Add tty-tip.el, not tooltips, but very close
(cherry picked from commit
d27fc61755d8dd4a65db6291f1c83492003b30b1 )
Gerd Möllmann [Tue, 5 Nov 2024 19:10:38 +0000 (20:10 +0100)]
* src/dispnew.c (neutralize_wide_char): Don't use used[0]
(cherry picked from commit
908a18c463bf7d2da3c39ea6141cab68fd7eac30 )
Gerd Möllmann [Tue, 5 Nov 2024 09:26:36 +0000 (10:26 +0100)]
TTY menus: handle saved state referencing dead frames
* src/term.c (restore_desired_matrix): If a tty menu saves a current
matrix that contains glyphs from a child frame, handle the case that
that child frame dies before the saved state is restored.
(cherry picked from commit
56efab930b5c129aa9c87f99f657b7d704c6d5f9 )
Gerd Möllmann [Tue, 5 Nov 2024 09:25:22 +0000 (10:25 +0100)]
Don't copy non-enabled rows from child
* src/dispnew.c (copy_child_glyphs): Check if child row is enabled.
(cherry picked from commit
56708ea676e0fdfaeec36607333bb2955ec3b40e )
Gerd Möllmann [Tue, 5 Nov 2024 09:24:31 +0000 (10:24 +0100)]
* src/frame.c (make_terminal_frame): Check parent is live.
(cherry picked from commit
33f1ab5034c7a5a9333ab6ead01f14a0f91c5f97 )
Gerd Möllmann [Thu, 31 Oct 2024 20:16:13 +0000 (21:16 +0100)]
Fix mouse-position for xterm-mouse-mode
* lisp/xt-mouse.el (xterm-mouse-position-function): Return the frame
recorded in the terminal parameter xterm-mouse-frame.
(cherry picked from commit
e2323775246c6f09b2d7fb82f8888ebe8f317b0e )
Eshel Yaron [Mon, 23 Dec 2024 14:53:58 +0000 (15:53 +0100)]
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
Eli Zaretskii [Tue, 22 Oct 2024 14:33:45 +0000 (10:33 -0400)]
; Clarify a comment in dispnew.c
(cherry picked from commit
4182dfb7e844bcc7148a3d7f1084cef6982b36d9 )
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 )
Eli Zaretskii [Tue, 22 Oct 2024 09:42:05 +0000 (05:42 -0400)]
Fix commenting conventions.
(cherry picked from commit
4ef5ade5da60075418e0f6db1b91ec08a38bb884 )
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 )
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 )
Gerd Möllmann [Mon, 21 Oct 2024 13:42:03 +0000 (15:42 +0200)]
Gerd Möllmann [Mon, 21 Oct 2024 13:40:15 +0000 (15:40 +0200)]
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 )
Gerd Möllmann [Fri, 18 Oct 2024 14:21:46 +0000 (16:21 +0200)]
Minor refactoring
(cherry picked from commit
6aa203bb04fa75e7562064e9261d7760c1b6562a )
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 )
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 )
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 )
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 )
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 )
Eshel Yaron [Sun, 22 Dec 2024 18:00:41 +0000 (19:00 +0100)]
(enable-local-eval): set to nil by default
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 )
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 )
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 )
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 )
Eshel Yaron [Sun, 15 Dec 2024 21:05:24 +0000 (22:05 +0100)]
Eshel Yaron [Sun, 15 Dec 2024 16:39:38 +0000 (17:39 +0100)]
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 )
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 )
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 )
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 )
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 )
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 )
Eshel Yaron [Sun, 15 Dec 2024 16:38:55 +0000 (17:38 +0100)]
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )