From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: master 6e5d79c048: Display show-paren-context-when-offscreen in child frame Date: Mon, 14 Feb 2022 14:41:39 +0100 Message-ID: <87pmnp5yvl.fsf@gnu.org> References: <164414267475.11015.16458968298391656164@vcs2.savannah.gnu.org> <20220206101755.0EC03C002F9@vcs2.savannah.gnu.org> <871r0f7k6u.fsf@gnus.org> <87czjzlb1h.fsf@yahoo.com> <877da79p7y.fsf@gnu.org> <86leym6bxa.fsf@gnu.org> <8735kuah78.fsf@gnu.org> <867da6h7ez.fsf@gnu.org> <87tuda8nm9.fsf@gnu.org> <86tud9vk6x.fsf@gnu.org> <87bkzg2o3i.fsf@gnu.org> <87pmnw188l.fsf@yahoo.com> <877da42m7e.fsf@gnu.org> <87h79817ig.fsf@yahoo.com> <8735ks2la5.fsf@gnu.org> <87y22k15vw.fsf@gnu.org> <87bkz9hb7w.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21022"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.7; emacs 29.0.50 Cc: Arash Esbati , Lars Ingebrigtsen , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 14 15:49:01 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nJcew-0005Ch-Ku for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Feb 2022 15:48:58 +0100 Original-Received: from localhost ([::1]:60488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJcev-0004FA-IK for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Feb 2022 09:48:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJbx6-0000xW-Ah for emacs-devel@gnu.org; Mon, 14 Feb 2022 09:03:43 -0500 Original-Received: from [2001:470:142:3::e] (port=59254 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJbx5-0002qp-Uf; Mon, 14 Feb 2022 09:03: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:In-reply-to:Date:Subject:To:From: References; bh=dqzFw88hHcEM2Rt4ZGA4aW4vcfiX1I8LG3FuIyyY+cc=; b=Kw409Z7x463jLg DgwKxrWJqppyjLnTNq3DkI/2nSPOuj8RM0EAmjPy+I/QsdQm9pUD6nJp2urd96YSD8Esagh4ZYRFf sauTtsEWH1n/gk1+soAWKvkz0zlZSWGcwFfqELyJE5Nw4o1AN7YQa8zUhwNLOiqOe0KH4VD0tJStj irf88Fv0GDI0JfABrX68NzaKvobVJgp25Lzsfoo78KaLEWwt8wjAvOTY1oz9zilTR3C2cg2AKoaf5 cijFKJ+/soR4Z7N0UdMXPrbL9H0+i4h/ueC/7/tXfjmXWnxXf+CIa4Wr0RqUWC3XtH0ZlHcxB6xHN +nONsWnzTC+3oeyhW8TQ==; Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:45831) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJbx1-0006xN-CA; Mon, 14 Feb 2022 09:03:36 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id ABF3327C005A; Mon, 14 Feb 2022 09:03:34 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 14 Feb 2022 09:03:34 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrjedvgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhsihhl ohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpeevve eikeetkeeviefgfeffiedvteeguddvffeuueduveegtddthedvhfeuveffhfenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvg hsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleek qdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Feb 2022 09:03:31 -0500 (EST) In-reply-to: <87bkz9hb7w.fsf@yahoo.com> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286274 Archived-At: Po Lu writes: > I found a problem: when I click so that point is moved onto the > parentheses being highlighted, the context overlay flickers and then > disappears. > > Any ideas? Yes, after some poking, it seems that you get the intended behavior when your mouse click is short, i.e., in that case, the behavior is the same as if you've moved point to the closing paren with some non-mouse means. However, when you press and hold the mouse button just a tiny bit longer, I get the behavior you describe. I guess the difference here is that in the first case, emacs handles some "mouse button clicked" event whereas in the second case handles one "mouse button pressed" and one "mouse button released" event. "clicked" and "pressed" seem to set point and will trigger the show-paren context info but the "released" event then also runs `post-command-hook' which will remove the context overlay/child-frame again. And since we've already shown the context info for the current position of point, we're not gonna show it again. I'm not sure how to fix that or even if it deserves a fix. Bye, Tassilo