From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#53910: 29.0.50; context-menu-mode breaks help in read-only buffers Date: Thu, 10 Feb 2022 10:54:29 +0200 Organization: LINKOV.NET Message-ID: <86y22jxfsq.fsf@mail.linkov.net> References: <20220210001600.vjiuqzoiuuzzj54c.ref@Ergus> <20220210001600.vjiuqzoiuuzzj54c@Ergus> <87mtizdwrv.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13762"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Ergus , 53910@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 10 10:01:35 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nI5KY-0003Pv-TV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 10:01:34 +0100 Original-Received: from localhost ([::1]:50802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nI5KX-0006Hi-KS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 04:01:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI5J6-00060D-RT for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 04:00:09 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60020) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nI5J6-0008IA-HK for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 04:00:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nI5J6-0007iN-CT for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 04:00:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Feb 2022 09:00:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53910 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 53910-submit@debbugs.gnu.org id=B53910.164448356029484 (code B ref 53910); Thu, 10 Feb 2022 09:00:04 +0000 Original-Received: (at 53910) by debbugs.gnu.org; 10 Feb 2022 08:59:20 +0000 Original-Received: from localhost ([127.0.0.1]:53911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI5IO-0007fU-CE for submit@debbugs.gnu.org; Thu, 10 Feb 2022 03:59:20 -0500 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:39435) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI5IN-0007et-6W for 53910@debbugs.gnu.org; Thu, 10 Feb 2022 03:59:19 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id ABE44FF807; Thu, 10 Feb 2022 08:59:09 +0000 (UTC) In-Reply-To: <87mtizdwrv.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 10 Feb 2022 08:08:04 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226569 Archived-At: >> M-x context-menu-mode >> C-h b >> >> Just a message is shown in the echo area like an error because the >> buffer is read only (and such text can't be inserted...). > > I can reproduce this bug, and I can't get a backtrace either, even with > debug-on-signal, which is unusual. > > I had a brief peek at context-menu-mode to see whether it was obvious > what was breaking, but nothing really stood out (but then again, I'm not > very familiar with that code). I can't reproduce this bug in Emacs 28, only in Emacs 29. This means that the problem is new. In describe-map this line switches buffers from *Help* to the window buffer: (eq definition (lookup-key tail (vector event) t)) And indeed (with-temp-buffer (message "%S" (current-buffer)) (lookup-key (cddr context-menu-mode-map) [down-mouse-3] t) (message "%S" (current-buffer))) displays: # # 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?