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: Sat, 15 Jul 2023 01:06:54 +0000 Message-ID: <23862422-411d-d519-9b8a-5f12922f1ff2@protonmail.com> References: <7bf644a7-3cd7-1def-706e-9ed74b64bd58@protonmail.com> <83wmz87yiz.fsf@gnu.org> <871qhfhp85.fsf@gmx.net> <83lefn97gd.fsf@gnu.org> <276ec144-7853-944e-1edc-4a48b5567854@protonmail.com> <83bkgf3sc0.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="19218"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64547@debbugs.gnu.org, stephen.berman@gmx.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 15 03:08:11 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 1qKTlb-0004kL-83 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jul 2023 03:08:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKTlU-00083Q-B3; Fri, 14 Jul 2023 21:08: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 1qKTlS-00082y-GQ for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2023 21:08: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 1qKTlS-0001dK-77 for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2023 21:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qKTlS-0004DA-29 for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2023 21:08:02 -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: Sat, 15 Jul 2023 01:08:02 +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.168938322916093 (code B ref 64547); Sat, 15 Jul 2023 01:08:02 +0000 Original-Received: (at 64547) by debbugs.gnu.org; 15 Jul 2023 01:07:09 +0000 Original-Received: from localhost ([127.0.0.1]:43687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKTka-0004BV-MS for submit@debbugs.gnu.org; Fri, 14 Jul 2023 21:07:08 -0400 Original-Received: from mail-40131.protonmail.ch ([185.70.40.131]:58357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKTkY-0004Aw-Oi for 64547@debbugs.gnu.org; Fri, 14 Jul 2023 21:07:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1689383221; x=1689642421; bh=E/c5A1a3ixpZEI4lpneLdgvdYe2vbmrRDYi+oAYSRdA=; 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=p/50qbASni4dwCUqqap6p+XpGUg1KUrmQ8hsGxIZYw7Uu2mtComYbO8owkeQc/gSS BrLyRoi/B0g8kKlWMOv6HMkqTCv0yE8QfiuHyJOSmFuBWXRkqo3IWsjcs0eC3QvqDE sCQ+1kuKd48UQP9/yYcJOXgmHJtO4EUppwj2uNWypy2Q/ufDD3P8jYTXbj7+uADU2f o0eC+PnxWv71lg9aI9ko3zdLJq4vdIHSqZZgC66Mw4LxZ7q1OB5CCmXiSEt/N0jXiD W+CoHjsVndz6vcj96ToJwEG9Dk5kE/32PK8q33eoIcFwGFn3ZoOmJfr9QiMIZax2Qs PTufZT5VUjRZQ== In-Reply-To: <83bkgf3sc0.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:265136 Archived-At: On 2023-07-14 06:44 UTC, Eli Zaretskii wrote: >> Date: Fri, 14 Jul 2023 03:03:31 +0000 >> From: okamsn@protonmail.com >> Cc: 64547@debbugs.gnu.org, Stephen Berman >> >> On 2023-07-10 14:17 UTC, Eli Zaretskii wrote: >>> >>> Thanks, should be fixed now on the emacs-29 branch. >> >> Hello, >> >> The change fixed it for the minibuffer, but also disabled it when the >> opening parenthesis was offscreen. I think this is because >> `(pos-visible-in-window-p openparen nil t)` seems to return nil in that >> case. >=20 > Disabled what? Can you post a detailed recipe, and the description of > what you see and what you expected to see? I'd like to make sure I > understand the issue we are discussing now. >=20 > Thanks. Sorry, I meant that the new change stopped showing the overlay in the=20 normal buffers in addition to the minibuffer. I was expecting it to only=20 stop showing the overlay for the minibuffer when the opening parenthesis=20 was visible. These are the steps I took: 1) Start `emacs -q` without the new change to paren.el. 2) Set `show-paren-context-when-offscreen` to `overlay`. 3) In a normal buffer (not the minibuffer), move to the end of a long=20 expression so that the starting parenthesis is no longer on the screen=20 and is not visible. 4) See the overlay, as expected. 5) Move inside the expression so that the overlay is no longer shown. 6) Evaluate the new definition of `show-paren-function`. 7) Move back to the end of the long expression. 8) See that the overlay is no longer shown. I expected to see that the overlay would still be shown for the opening=20 parenthesis that is completely unseen. I think that this happens because there is an expression `(not ... (or=20 (< (length part) 4) ...))` which resolves to `nil` when the parenthesis=20 is not visible and not partially visible, from what I can tell. Does this make sense? Thank you.