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 18:44:49 +0300 Organization: LINKOV.NET Message-ID: <87v93k2tkq.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22301"; 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 17:53:59 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 1mLSYn-0005WG-VC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 17:53:57 +0200 Original-Received: from localhost ([::1]:32792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLSYm-0002al-SN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 11:53:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLSS8-0007rJ-QY for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 11:47:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLSS5-0002J9-Kl for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 11:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLSS5-0006q3-JK for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 11:47:01 -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 15:47:01 +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.163051116326202 (code B ref 50256); Wed, 01 Sep 2021 15:47:01 +0000 Original-Received: (at 50256) by debbugs.gnu.org; 1 Sep 2021 15:46:03 +0000 Original-Received: from localhost ([127.0.0.1]:38877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLSR9-0006oY-7k for submit@debbugs.gnu.org; Wed, 01 Sep 2021 11:46:03 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:23375) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLSR8-0006nN-1p for 50256@debbugs.gnu.org; Wed, 01 Sep 2021 11:46:02 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id EDE4524000D; Wed, 1 Sep 2021 15:45:54 +0000 (UTC) In-Reply-To: <83sfyoqzb7.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 01 Sep 2021 15:02:04 +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:213202 Archived-At: > I don't understand this: are you saying that in a selected window you > see point different from window-point? How does that happen? > >> Both 'event-start' and 'event-end' created an event >> with the window equal to the selected window, >> but point from some random buffer, >> not from selected window's buffer. > > Can you show the recipe that produces this strange result? (I looked > at bug#9923, which you say is where this was reported, but couldn't > find a recipe there for which you described the sequence of calls.) Martin sent a test case for pos-visible-in-window-p, and here is the test case for mouse-set-point that uses pos-visible-in-window-p. In emacs -Q evaluate: (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.