From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: okamsn--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64547: `show-paren-mode` thinks that a paren is offscreen in `M-:` when it isn't Date: Fri, 14 Jul 2023 03:03:31 +0000 Message-ID: <276ec144-7853-944e-1edc-4a48b5567854@protonmail.com> References: <7bf644a7-3cd7-1def-706e-9ed74b64bd58@protonmail.com> <83wmz87yiz.fsf@gnu.org> <871qhfhp85.fsf@gmx.net> <83lefn97gd.fsf@gnu.org> Reply-To: okamsn@protonmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6910"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64547@debbugs.gnu.org, Stephen Berman To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 14 05:04:09 2023 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 1qK96G-0001X2-0V for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Jul 2023 05:04:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qK96C-000332-8Z; Thu, 13 Jul 2023 23:04:04 -0400 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 1qK96A-000321-97 for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2023 23:04:02 -0400 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 1qK96A-0006lX-12 for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2023 23:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qK969-0004gV-T0 for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2023 23:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: okamsn@protonmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jul 2023 03:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64547 X-GNU-PR-Package: emacs Original-Received: via spool by 64547-submit@debbugs.gnu.org id=B64547.168930383317992 (code B ref 64547); Fri, 14 Jul 2023 03:04:01 +0000 Original-Received: (at 64547) by debbugs.gnu.org; 14 Jul 2023 03:03:53 +0000 Original-Received: from localhost ([127.0.0.1]:41183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qK961-0004g8-3V for submit@debbugs.gnu.org; Thu, 13 Jul 2023 23:03:53 -0400 Original-Received: from mail-40134.protonmail.ch ([185.70.40.134]:62937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qK95y-0004ft-4V for 64547@debbugs.gnu.org; Thu, 13 Jul 2023 23:03:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1689303824; x=1689563024; bh=8QS+vsm9G6pnrxxjTfh7PsL2esLNj5BIF28AlpKeEwA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=xmFu05cKJtcDLsT8ImuSrqxgbjJ67KJfQQ7FsjCmR/U2IAZkPefwELGRmL78iJj/Q akn+Us65Qhem99X9rT4wYwQGyAroa94nAIIeI9xE7V00yeKCdwZHp6tw1emkGTDyWj wrv7a43fIUySm53B/9PTE+XzUB/WoHHXiQoEu0XeWKzoq7rofrTsOV1pWwT3RDefWt H7v1SyyPPGZkTZp4/tNmC0/zFmovjYIJMAfKmlYKskb9eeesQWW+vRUb0tmd1tnuh3 INJY5rpn+JzDwj4OfB+FFu5pp8fthUQ9AQnhwlzL3Ok74JmIoxZXTRnuBoWWJzx7Nv 2pwVCEEAB3nAA== In-Reply-To: <83lefn97gd.fsf@gnu.org> Feedback-ID: 25935600:user:proton 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:265066 Archived-At: On 2023-07-10 14:17 UTC, Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: Okamsn , 64547@debbugs.gnu.org >> Date: Mon, 10 Jul 2023 15:26:34 +0200 >> >> 0. emacs -Q >> 1. M-x customize-option show-paren-style RET. Choose "mixed" from the >> Value Menu and set for current session. >> 2. M-x customize-option show-paren-context-when-offscreen RET. Choose >> "In overlay" from the Value Menu and set for current session. >> 3. M-x customize-option line-spacing RET. Choose "Number" from the >> Value Menu, enter 0.06 or greater and set for current session. >> 4. M-: () >> =3D> On typing ")" the "Eval: " prompt vanishes, the string "(" is >> displayed with a hollow box over it, followed directly by the string >> "()" with a cyan background. Typing DEL to delete the final ")" >> displays the "Eval: " prompt again, the "(" with a hollow box over i= t >> vanishes, and the remaining "(" has no cyan overlay. Typing any >> characters and then ")" at the end again makes the prompt vanishes, >> "(" with the hollow box and the cyan overlay return. Lather, rinse, >> repeat... >=20 > Thanks, should be fixed now on the emacs-29 branch. Hello, The change fixed it for the minibuffer, but also disabled it when the=20 opening parenthesis was offscreen. I think this is because `(pos-visible-in-window-p openparen nil t)` seems to return nil in that=20 case. I got it to work by swapping (or (< (length part) 4) (and (< (nth 2 part) dfh4) (< (nth 3 part) dfh4))) with (and (>=3D (length part) 4) (< (nth 2 part) dfh4) (< (nth 3 part) dfh4)) , which did not re-introduce the problem in the minibuffer. Thank you.