GNU bug report logs - #53910
29.0.50; context-menu-mode breaks help in read-only buffers

Previous Next

Package: emacs;

Reported by: Ergus <spacibba <at> aol.com>

Date: Thu, 10 Feb 2022 00:17:01 UTC

Severity: normal

Tags: confirmed

Fixed in version 29.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: Ergus <spacibba <at> aol.com>, 53910 <at> debbugs.gnu.org
Subject: bug#53910: 29.0.50; context-menu-mode breaks help in read-only buffers
Date: Thu, 10 Feb 2022 12:35:46 +0100
Juri Linkov <juri <at> 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




This bug report was last modified 3 years and 149 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.