From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 10:22:10 +0300 Message-ID: <838rbhej19.fsf@gnu.org> 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> <23862422-411d-d519-9b8a-5f12922f1ff2@protonmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9228"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stephen.berman@gmx.net, 64547-done@debbugs.gnu.org To: okamsn@protonmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 15 09:22:34 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 1qKZbt-00023c-1L for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jul 2023 09:22:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKZbP-00026g-QC; Sat, 15 Jul 2023 03:22:03 -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 1qKZbO-00026I-Bk for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 03:22: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 1qKZbO-0005rP-41 for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 03:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qKZbN-0000e6-W3 for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 03:22:01 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jul 2023 07:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 64547 X-GNU-PR-Package: emacs Mail-Followup-To: 64547@debbugs.gnu.org, eliz@gnu.org, okamsn@protonmail.com Original-Received: via spool by 64547-done@debbugs.gnu.org id=D64547.16894057192468 (code D ref 64547); Sat, 15 Jul 2023 07:22:01 +0000 Original-Received: (at 64547-done) by debbugs.gnu.org; 15 Jul 2023 07:21:59 +0000 Original-Received: from localhost ([127.0.0.1]:43932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKZbK-0000dk-Rb for submit@debbugs.gnu.org; Sat, 15 Jul 2023 03:21:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKZbI-0000dT-Gs for 64547-done@debbugs.gnu.org; Sat, 15 Jul 2023 03:21:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKZbC-0005P1-Fz; Sat, 15 Jul 2023 03:21:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=REOIISbWULSNYcPRrjgOVr9996B6O3qxxbd+II3St1A=; b=GKghMmIRkUnH r4XBdTflkIpG0ZqGPygHvSeGRiwMge6s9SKBo26OMbNlRm7W/jYmT/gYq1md0yCuYJr6R3eJY+vak r72ABL0zc7DcXPJzEAEab2FQR8msyXkLMiPgnHxO3K5M2G5qpEqzvV9WkPZkZgy7fe2qdRjQUG13O BsbwpEDQwMUS/bFyCvdb4iDyxI26VFS0J+L85WMt7xX/5k3B9BzWfecMtIGYqZlBkyg6fM7n7l64s wqLHZD0NQLcetbmYYhynmRvNfuGBwF6OG4HMhIB4j/bSJQqLA39ZIDZ5Z1lrgiR23i/Zbcfq/rwHV FASBMcZ2D7yrFyfLsaAc+g==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKZbB-0004Av-Ve; Sat, 15 Jul 2023 03:21:50 -0400 In-Reply-To: <23862422-411d-d519-9b8a-5f12922f1ff2@protonmail.com> (okamsn@protonmail.com) 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:265151 Archived-At: > Date: Sat, 15 Jul 2023 01:06:54 +0000 > From: okamsn@protonmail.com > Cc: 64547@debbugs.gnu.org, stephen.berman@gmx.net > > 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 > expression so that the starting parenthesis is no longer on the screen > 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 > parenthesis that is completely unseen. > > I think that this happens because there is an expression `(not ... (or > (< (length part) 4) ...))` which resolves to `nil` when the parenthesis > is not visible and not partially visible, from what I can tell. > > Does this make sense? Thanks, now fixed as you suggested, and closing the bug.