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#50256: thing-at-mouse Date: Wed, 01 Sep 2021 19:25:15 +0300 Organization: LINKOV.NET Message-ID: <877dg02rh0.fsf@mail.linkov.net> References: <87sfys6ubm.fsf@mail.linkov.net> <87eeacdnmg.fsf@gnus.org> <87h7f7z8ui.fsf@mail.linkov.net> <871r6a8ooe.fsf@gnus.org> <87y28i85xi.fsf@mail.linkov.net> <87k0k1o5ks.fsf@mail.linkov.net> <87ilzk6bsr.fsf@mail.linkov.net> <83sfyoqzb7.fsf@gnu.org> <87v93k2tkq.fsf@mail.linkov.net> <83v93kp94t.fsf@gnu.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="25088"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 50256@debbugs.gnu.org, larsi@gnus.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 01 18:56:27 2021 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 1mLTXG-0006Mi-Vi for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 18:56:26 +0200 Original-Received: from localhost ([::1]:57962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLTXG-0007nI-09 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 12:56:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLT5m-0002AH-RM for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 12:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLT5m-0001wi-H4 for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 12:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLT5m-0007wu-E3 for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 12:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Sep 2021 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50256 X-GNU-PR-Package: emacs Original-Received: via spool by 50256-submit@debbugs.gnu.org id=B50256.163051365630515 (code B ref 50256); Wed, 01 Sep 2021 16:28:02 +0000 Original-Received: (at 50256) by debbugs.gnu.org; 1 Sep 2021 16:27:36 +0000 Original-Received: from localhost ([127.0.0.1]:38931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLT5L-0007w7-Q1 for submit@debbugs.gnu.org; Wed, 01 Sep 2021 12:27:35 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:54655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLT5K-0007vu-Bc for 50256@debbugs.gnu.org; Wed, 01 Sep 2021 12:27:34 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 212A6C0006; Wed, 1 Sep 2021 16:27:26 +0000 (UTC) In-Reply-To: <83v93kp94t.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 01 Sep 2021 19:12:50 +0300") 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:213214 Archived-At: >> (with-current-buffer "*Messages*" >> (mouse-set-point last-input-event)) >> >> and it moves point in *scratch* to the position of point of >> the *Messages* buffer. > > I don't follow: what do you expect to be in last-input-event in this > case, and how is that relevant to mouse clicks, when the mouse is not > even involved in this scenario? Normally, last-input-event should be a mouse click event. But sometimes it gets a non-mouse event (e.g. a number). Then in mouse-set-point, event-end produces a fake mouse event using posn-at-point. But such constructed event contains position from a random buffer (that was current at the time of invocation). It should contain the position of point in the buffer displayed in the selected window.