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: Tue, 08 Feb 2022 13:00:16 +0100 Message-ID: <87leyly2zm.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> <87ee4edvog.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="26545"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.7; emacs 29.0.50 Cc: Lars Ingebrigtsen , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 08 15:43:48 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 1nHRid-0006f3-Ib for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Feb 2022 15:43:47 +0100 Original-Received: from localhost ([::1]:50116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHRib-0001PS-I4 for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Feb 2022 09:43:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHPIu-0005ZD-Q0 for emacs-devel@gnu.org; Tue, 08 Feb 2022 07:09:04 -0500 Original-Received: from [2001:470:142:3::e] (port=55084 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 1nHPIu-0006vs-Cx; Tue, 08 Feb 2022 07:09:04 -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=kwflbE+OSVwrHntm6kTZbrs3PaqmimigpnZQMHGyQ8A=; b=N92GFpUPXDRPLd HwV/NdQJceox/T39BcepIUK2Forpbd+1FaqUKWLTdJSwT730AUZ7iaAcZVt1Xgg0uCf2bJvP3yAYV xixza1VaOfBilwcySTmvu+xs+J8CynRCBgRIOOLt/EcoKwxntVpw4SXR9WBIDisx36Lk/heVIGaNg /mAz8kEIKuQpcuvgrYhcOMm98uC00uV4CtxJWst0XQshkfafa/HakJZcxeQUSLu+dw3optjGLrR6m +KhhiS14qh9Gcw2uhvGWSHIpiWAGkl9c8Mkb87wMemS51yWPCjb9uq+6fsN5eFe9DvLvgmF4v7CNk 99dq3IXuuWtnVT4LQ6IQ==; Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:50283) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHPIu-0004pi-5v; Tue, 08 Feb 2022 07:09:04 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id A820927C005B; Tue, 8 Feb 2022 07:09:03 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 08 Feb 2022 07:09:03 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrheejgdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhsihhl ohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpeevve eikeetkeeviefgfeffiedvteeguddvffeuueduveegtddthedvhfeuveffhfenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvg hsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleek qdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 8 Feb 2022 07:09:02 -0500 (EST) In-reply-to: <87ee4edvog.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:286076 Archived-At: Po Lu writes: >> I'm actually using pgtk on a 7 years old laptop and it doesn't feel >> slow. The reason why I started with the child-frame approach is that >> the child-frame can be positioned precisely at the top-left of the >> current window. Since emacs now supports pixel-wise scrolling, it >> can happen that only the lower half of the line at `window-start' is >> visible which would be bad if an overlay was placed there. Is there >> a way to test if some position is completely visible? > > Try `pos-visible-in-window-p'. Ah, so if (pos-visible-in-window-p (window-start) nil t) returns a 6-element list, then (window-start) is not completely visible. My idea was to display the context overlay in the second line in such cases but I don't think that's worthwhile to bother with. It seems that so many basic commands (next-line, previous-line, move-end-of-line) get me out of this "half line visible state" that it can be neglected. Bye, Tassilo