bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#53910: 29.0.50; context-menu-mode breaks help in read-only buffers


From: Lars Ingebrigtsen
Subject: bug#53910: 29.0.50; context-menu-mode breaks help in read-only buffers
Date: Thu, 10 Feb 2022 12:35:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

>   (with-temp-buffer
>     (message "%S" (current-buffer))
>     (lookup-key (cddr context-menu-mode-map) [down-mouse-3] t)
>     (message "%S" (current-buffer)))
>
> displays:
>
>   #<buffer  *temp*>
>   #<buffer *scratch*>
>
> This is because of this line recently added to context-menu-map:
>
>   (select-window (posn-window (event-start click)))
>
> that switches buffers.
>
> But the question remains: does describe-map really need to build
> the complete context menu or should it ignore its :filter keyword?

Hm...  I don't know, but I don't think a call to `lookup-key' should
result in a different buffer being selected in any case.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]