From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75219: 31.0.50; mouse-2 mode-line binding overridden by mouse-1-click-follows-link Date: Sun, 05 Jan 2025 20:51:36 +0200 Message-ID: <86ikqt6qmf.fsf@gnu.org> References: <87o70sbegu.fsf@gmail.com> <86zfk570iu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36945"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75219@debbugs.gnu.org, visuweshm@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 19:52:12 2025 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 1tUVjP-0009SA-QO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 19:52:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUVjH-0001AS-VS; Sun, 05 Jan 2025 13:52:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUVjG-0001AF-CR for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 13:52:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUVjG-0003Oo-3Q for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 13:52:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=r3q2l4r5wyww8s2UvYf+fVu6GkkJMIvMbJdkgr+UgX8=; b=HC6F7gZ98N1g2zO/RJzs2rxfQzA+Nvy0nw8Kqt+EjP5/b07nIrZ5vXiWR+DqpqqKdRRBrzgI66jh2dpI42zxeVJTgfDOhpJxpH9DKvPQ/QLEzIEvIOtybXIEtaA4vQuDLCNBHpCSuCtYkwJeSRfDsS+5xCju4PJpe9tCMCUVa//YUrTIIqB9Ol7fK1OWQdieoO+VlfmKnkhUiV8q+m23D8sdtvzex1Ve4tl6DKUTcMc2LEGATpOIFnSoijAMU0XE8WPd4JwBjFLeslCd6G6IWBgoq3gYDFixxQqN3dwRTGDsxGwwDrJsU/g8fGiyKpDaSiG7kD4zV49Lw0bg1A1qlg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUVjF-0002yA-Tk for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 13:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 18:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75219 X-GNU-PR-Package: emacs Original-Received: via spool by 75219-submit@debbugs.gnu.org id=B75219.173610310611379 (code B ref 75219); Sun, 05 Jan 2025 18:52:01 +0000 Original-Received: (at 75219) by debbugs.gnu.org; 5 Jan 2025 18:51:46 +0000 Original-Received: from localhost ([127.0.0.1]:35223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUVj0-0002xT-6a for submit@debbugs.gnu.org; Sun, 05 Jan 2025 13:51:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48288) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUViy-0002xB-Di for 75219@debbugs.gnu.org; Sun, 05 Jan 2025 13:51:44 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUVit-0002lq-08; Sun, 05 Jan 2025 13:51:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=r3q2l4r5wyww8s2UvYf+fVu6GkkJMIvMbJdkgr+UgX8=; b=PNZBouZZZAOwnOO0Rw9a V/D7jTAKyj6r9wOOqh+4YMB7Cu0abvM1WuoBCERiMhT0OnnejVIX78jgC0AozCWvgyt2PU6JwP5OY A+mfizxhpBIGW+nM6/A998XPXZHbis0cYs+2t3EEHLJYkmb7+r581AJHH1YMpdnsYqqCEmvvBoWhz kkwvzwBfNnmG2NqJiiDsyILGyu1yBvif4PsC5qeQr4o9A98qnjfDzzp0l4jCAvXQxhzlqScJpHwJh O+TMIx4pyRecHw7zVDaWi3Bzbue0bpsk6kMn5fnqrXUGrP1cOT9ofB9cH/E+4i2LxjTLMJQv0QNrU U6YnnJD32vvmBA==; In-Reply-To: (message from Stefan Monnier on Sun, 05 Jan 2025 13:10:45 -0500) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298592 Archived-At: > From: Stefan Monnier > Cc: Visuwesh , 75219@debbugs.gnu.org > Date: Sun, 05 Jan 2025 13:10:45 -0500 > > > So if POSITION is a mouse click event, click_position will always > > return the position of point. > > Yeah, we pay attention to the "window" part of the posn but not the > rest. 🙁 > > > Stefan, any ideas or suggestions? > > Maybe something like the patch below, but maybe we should call > `posn-point` instead? It shouldn't be hard to find a solution along these lines, but what bothers me is how many Lisp code out there relies on this strange "fallback"? Also, for clicks on mode line there will be no buffer position in the event, and then it sounds like your patch will again fall back on returning point? I thought that clicks on the mode line should examine local keymaps only on the mode-line's string at the click, don't you agree?