From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#53910: [External] : bug#53910: 29.0.50; context-menu-mode breaks help in read-only buffers Date: Sat, 19 Feb 2022 10:41:09 +0100 Message-ID: <41b85df6-305f-fe6b-f575-0ff9db616eb9@gmx.at> References: <20220210001600.vjiuqzoiuuzzj54c.ref@Ergus> <20220210001600.vjiuqzoiuuzzj54c@Ergus> <87mtizdwrv.fsf@gnus.org> <86y22jxfsq.fsf@mail.linkov.net> <87o83f7y3x.fsf@gnus.org> <86iltmpn0a.fsf@mail.linkov.net> <86wni13ifi.fsf@mail.linkov.net> <86pmns10kw.fsf@mail.linkov.net> <5d2c2af9-d011-583b-e9c1-985bbc2378c2@gmx.at> <861r06vbos.fsf@mail.linkov.net> <868ru9jnp6.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15097"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Ergus , "53910@debbugs.gnu.org" <53910@debbugs.gnu.org> To: Juri Linkov , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 19 10:42:16 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 1nLMFs-0003lN-6c for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Feb 2022 10:42:16 +0100 Original-Received: from localhost ([::1]:47608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLMFq-00008v-Q5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Feb 2022 04:42:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLMFi-00006Z-NY for bug-gnu-emacs@gnu.org; Sat, 19 Feb 2022 04:42:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLMFd-0007yF-PN for bug-gnu-emacs@gnu.org; Sat, 19 Feb 2022 04:42:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLMFd-000104-Od for bug-gnu-emacs@gnu.org; Sat, 19 Feb 2022 04:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Feb 2022 09:42:01 +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.16452636883800 (code B ref 53910); Sat, 19 Feb 2022 09:42:01 +0000 Original-Received: (at 53910) by debbugs.gnu.org; 19 Feb 2022 09:41:28 +0000 Original-Received: from localhost ([127.0.0.1]:56907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLMF6-0000zE-18 for submit@debbugs.gnu.org; Sat, 19 Feb 2022 04:41:28 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:48961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLMF4-0000z1-AL for 53910@debbugs.gnu.org; Sat, 19 Feb 2022 04:41:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645263673; bh=ptKQbld2mJzbB240gmfpF2peV20Te7WJ5S+qqxjYIVg=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=i2AIR1LF+9a6ixStqnupsG3/lO2RUYdBr1VUCV1ysjfiKk/xlAgyHhes9LqeHb2HR +1PiW5RJ8Yy6t3tc9a5s0/QrXvd/8fCFAeRQQ1J5JceJd0a69jZ7eZQmrW3dN1S6b+ kagO5Ryr9KFAh2YlenKE1CZu/pRUklLmIeQZBzb8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.102] ([46.125.249.118]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MBUm7-1nYEvm2cdr-00CzB4; Sat, 19 Feb 2022 10:41:13 +0100 Content-Language: en-US In-Reply-To: <868ru9jnp6.fsf@mail.linkov.net> X-Provags-ID: V03:K1:nQzTSy3ammP9YbB8iZcs2d6TuUlVdSBvV4+Rkd1dtnXirsUfPCy n9qzxC/lhG88NOY65I/iwHEANQe2TnrxGFS8YG6aKak2ZWgu2OsvCjIBNTYBXhilotBVoqE RUrLMmVlWe0nHqrUBbIRcjSzItyEePeUxnDoSNcK5uxk67h35nmmN+SBYb+bRvEVFg1GoBq Z9gbk+EJAOpvbvsI1NtKg== X-UI-Out-Filterresults: notjunk:1;V03:K0:B6Y3Adze3sk=:Rn1GUtnVD1mhY7yWAqy6Nl iWqO1uEw0VSrZH1p2qynalIhqdJxNQb8BAv9aStAkX0HMghXGA02+eJ5DF0y4pzBupKL+tQ6B BuG/AiHZtRmtZHguxjCrYCyODDVSVgIOe0+ktaA5iYLGDEXLi5ieksTEHj3idlrAf06LFdKoX phHMuQFj3+IybRJLRSQWNLr76SMHtHIPvolA9rGX5ndRZQ7auN1RFc4SLOL/q95ps/0axwvcy 6F+WarK/7U8mFkMIPoyahPoEzLCEegmaHzP2npxzLekU376CO6Pz7JOa5Ygh89Y6OiMFY6AJK EvVA8xnQss2NOq5mFW+nPL6OYT1p9eRqdvZVNPjuvuaPLMrfi9Q+2xT+SO/+xWE+5hLNyIFlj x906s8ScwbceG7wjLCGGlNZN78nIFxou/vk9jZcQsJLpXildLks1GHSgBerN16aVe7xLzrjvt I8ZrahsRGFg3mEG8GXXPUfeW2QYU9xGUrlKzDd3NV87JF0gxM+YS7M1uGRLq6l3ks0Dl3+5BY cxDLn+UtPSBiVaGP5wkEw2fTz/AHGPeUrdTcP8kW3aWQER1XMKFnfuU0xzlYLm0Hai+f06n6p t9TE8lwpd0pb/Bo3DO7outqRKPaQV3cigbQsFYh8AaBHKFAv0ejIrpXkebPUMz+DtieRydzMW H35cxLwZ+1eFA7pehDfDy2wy0QRMeOs31YdF/0fWtVW2/Y4fEzQO2DJin9VM4StMbsriAWrSM ZKmvHHpcDYhs3Jqm9itry8aqxLpvrfBh0PDBgGYdWKv/t89wdpcHaaex7pO++CN65B7ACqOc 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:227180 Archived-At: > Maybe (kill-buffer (window-buffer )) has the same effect > when used in any window, but (bury-buffer (window-buffer )) > definitely should be called in the required window, because `bury-buffer` > uses `nil` for the WINDOW args, e.g.: > > (set-window-dedicated-p nil nil) > (switch-to-prev-buffer nil 'bury) I recommend against calling 'bury-buffer' in Lisp code: A function that does If BUFFER-OR-NAME is nil or omitted, bury the current buffer. Also, if BUFFER-OR-NAME is nil or omitted, remove the current buffer from the selected window if it is displayed there. is clearly intended for interactive use only. martin