From unknown Wed Jun 18 23:05:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#53249 <53249@debbugs.gnu.org> To: bug#53249 <53249@debbugs.gnu.org> Subject: Status: Context menu in other window Reply-To: bug#53249 <53249@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:05:33 +0000 retitle 53249 Context menu in other window reassign 53249 emacs submitter 53249 Juri Linkov severity 53249 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 03:53:26 2022 Received: (at submit) by debbugs.gnu.org; 14 Jan 2022 08:53:26 +0000 Received: from localhost ([127.0.0.1]:35536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8IKs-0003mw-3r for submit@debbugs.gnu.org; Fri, 14 Jan 2022 03:53:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:58320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8IKo-0003mk-JZ for submit@debbugs.gnu.org; Fri, 14 Jan 2022 03:53:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8IKo-00081Y-Av for bug-gnu-emacs@gnu.org; Fri, 14 Jan 2022 03:53:22 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:44593) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8IKm-0008R8-0j for bug-gnu-emacs@gnu.org; Fri, 14 Jan 2022 03:53:22 -0500 Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 55B57E0006 for ; Fri, 14 Jan 2022 08:53:15 +0000 (UTC) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: Context menu in other window Organization: LINKOV.NET Date: Fri, 14 Jan 2022 10:42:43 +0200 Message-ID: <86fspqn1i5.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.196; envelope-from=juri@linkov.net; helo=relay4-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) When clicking the right mouse button in another window, some context-menu functions break the window configuration. For example, when two windows show different parts of the same buffer, this code in `prog-context-menu': (let ((identifier (save-excursion (mouse-set-point click) (xref-backend-identifier-at-point (xref-find-backend))))) moves window point of another window to the same position of the selected window. So the safest thing to do here is to select the window where the context menu is invoked: diff --git a/lisp/mouse.el b/lisp/mouse.el index 0d8d7d6175..45b7d51da7 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -320,6 +320,8 @@ context-menu-map (fun (mouse-posn-property (event-start click) 'context-menu-function))) + (select-window (posn-window (event-start click))) + (if (functionp fun) (setq menu (funcall fun menu click)) (run-hook-wrapped 'context-menu-functions -- From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 04:00:37 2022 Received: (at 53249) by debbugs.gnu.org; 14 Jan 2022 09:00:37 +0000 Received: from localhost ([127.0.0.1]:35556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8IRo-0004af-OO for submit@debbugs.gnu.org; Fri, 14 Jan 2022 04:00:37 -0500 Received: from quimby.gnus.org ([95.216.78.240]:35236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8IRn-0004T8-1S for 53249@debbugs.gnu.org; Fri, 14 Jan 2022 04:00:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1O5s5EikM5tLT36PtbOF2JDWk5e3nEnkVJ32ttEYvSw=; b=TIW2chdA9IGTX49SsJkU95i4Nw IrRmmjNgrwyPk7GNnGyHj+mUfZ0DZu1ursb97uXpZElY3EP1SvBC15VRxUA8JfdMayl/Zmi1IGdmK 96Vixg0nZ2xsvbvSUaZFUImfCCdP0lQRL7N/GJQiP56NZAJgVEA/e00VEHv+CifPzy/c=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8IRe-0001uv-LL; Fri, 14 Jan 2022 10:00:29 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#53249: Context menu in other window References: <86fspqn1i5.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEUZGRojIyV/f39i YmOhoaDc29n///+lfWGoAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YBDgg1H/BckkcAAAFpSURBVDjL xZJtcoQgDIaTcgGyegGr/b8Ke4Cu4QSF+1+lCeCuqP1dZmCGPOTrJQBEVrYuC9siPTCfoFaE/1qo +ekKoIBPe0EI0PD30Wo1Evr4vAAAXUh8PwJlj5TifErh7JJSOiZB9D8fQey8lvtWXXcLsxjdxJxN L6XpEafVmsB8zI4cCTonoE1ioec585rkrQCGAQiJT2VRWp253wIPrd24FMVBWp+rcBvxKc0kx9Pu AZKbRA6WvZYWNg83fYkeQYEtLyvwrEC1mukP4HKoF+g5ZHtk14bquTjE59iGMhWIIq2HWb0WLCD3 IRO+9TdSr8WKRxsKHBUHEbepCuiWa2Iey/WtVSdGL1sbxD2wuc2S2zagm7hUazXFe7qp8/IZfEdo ytVHC2/t7ZNr9iD/imcgkVJN3YQC+dY41LlpgAgs44lVkR0wkwxItTQgP5apsCegS6b3EtDideCQ DiAruR7Lzb0IYMrgF7e4T4Xs5IhwAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTAxLTE0VDA4OjUz OjMwKzAwOjAw6FVrIQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wMS0xNFQwODo1MzozMCswMDow MJkI050AAAAASUVORK5CYII= X-Now-Playing: Noveller's _Arrow_: "Canyons" Date: Fri, 14 Jan 2022 10:00:26 +0100 In-Reply-To: <86fspqn1i5.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 14 Jan 2022 10:42:43 +0200") Message-ID: <87h7a6pu8l.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > So the safest thing to do here is to select the window where > the context menu is invoked: Makes sense to me. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53249 Cc: 53249@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: > So the safest thing to do here is to select the window where > the context menu is invoked: Makes sense to me. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 15 13:41:09 2022 Received: (at 53249-done) by debbugs.gnu.org; 15 Jan 2022 18:41:09 +0000 Received: from localhost ([127.0.0.1]:41718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8nzB-000486-6F for submit@debbugs.gnu.org; Sat, 15 Jan 2022 13:41:09 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:55045) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8nz5-00047M-Px for 53249-done@debbugs.gnu.org; Sat, 15 Jan 2022 13:41:07 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 9C08C240004; Sat, 15 Jan 2022 18:40:54 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#53249: Context menu in other window Organization: LINKOV.NET References: <86fspqn1i5.fsf@mail.linkov.net> <87h7a6pu8l.fsf@gnus.org> Date: Sat, 15 Jan 2022 20:38:11 +0200 In-Reply-To: <87h7a6pu8l.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 14 Jan 2022 10:00:26 +0100") Message-ID: <86k0f03kvg.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53249-done Cc: 53249-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> So the safest thing to do here is to select the window where >> the context menu is invoked: > > Makes sense to me. So pushed to master and closed. From unknown Wed Jun 18 23:05:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 13 Feb 2022 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator