aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-12-23 16:41:08 +0200
committerEli Zaretskii2022-12-23 16:41:08 +0200
commiteccb813a943f4b6898cbe241c636c2ba5e63d271 (patch)
tree4e242fa44867588012b0adab07156a6d71403319 /src
parent6dda2106ece7c307ed5c0a6cb892e736516effeb (diff)
downloademacs-eccb813a943f4b6898cbe241c636c2ba5e63d271.tar.gz
emacs-eccb813a943f4b6898cbe241c636c2ba5e63d271.zip
Fix "C-h k" in recursive minibuffers
* lisp/subr.el (event--posn-at-point): Leave POSN alone if it doesn't have at least 6 members. This follows more faithfully what 'event-start' and 'event-end' did before they started using this function, see commit c1cead89f5f. Call posn-at-point with the minibuffer-window when in the minibuffer. (Bug#60252)
Diffstat (limited to 'src')
-rw-r--r--src/window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 90fa6ac2dfe..cd43919a7d8 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1649,7 +1649,8 @@ check_window_containing (struct window *w, void *user_data)
1649 set *PART to the id of that element. 1649 set *PART to the id of that element.
1650 1650
1651 If there is no window under X, Y return nil and leave *PART 1651 If there is no window under X, Y return nil and leave *PART
1652 unmodified. TOOL_BAR_P means detect tool-bar windows. 1652 unmodified. TOOL_BAR_P means detect tool-bar windows, and
1653 TAB_BAR_P means detect tab-bar windows.
1653 1654
1654 This function was previously implemented with a loop cycling over 1655 This function was previously implemented with a loop cycling over
1655 windows with Fnext_window, and starting with the frame's selected 1656 windows with Fnext_window, and starting with the frame's selected