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


Message #22 received at 53910 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Ergus <spacibba <at> aol.com>, 53910 <at> debbugs.gnu.org
Subject: Re: bug#53910: 29.0.50; context-menu-mode breaks help in read-only
 buffers
Date: Thu, 10 Feb 2022 20:58:13 +0200
close 53910 29.0.50
thanks

>> 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.

It was surprising that select-window invoked on the same selected window
switches the buffer to the originally displayed window-buffer.
Maybe Martin could explain this.

Anyway, this is fixed now by not calling select-window on the already
selected window.




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.