From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#40814: 26.3; show-paren-mode hightlights parentheses at eol Date: Sun, 13 Jun 2021 14:29:51 +0200 Message-ID: <871r963q2o.fsf@gnus.org> References: <875zdprxwx.fsf@gmail.com> <838silb25p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36678"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 40814@debbugs.gnu.org To: Al Haji-Ali Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 13 14:31:13 2021 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 1lsPGi-0009KR-MR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Jun 2021 14:31:12 +0200 Original-Received: from localhost ([::1]:53662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsPGh-0000PD-MH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Jun 2021 08:31:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsPGY-0000Os-L6 for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2021 08:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsPGY-0006Yj-Da for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2021 08:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lsPGY-0002ZX-Ba for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2021 08:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Jun 2021 12:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40814 X-GNU-PR-Package: emacs Original-Received: via spool by 40814-submit@debbugs.gnu.org id=B40814.16235874026207 (code B ref 40814); Sun, 13 Jun 2021 12:31:02 +0000 Original-Received: (at 40814) by debbugs.gnu.org; 13 Jun 2021 12:30:02 +0000 Original-Received: from localhost ([127.0.0.1]:42888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsPFZ-0001bm-UW for submit@debbugs.gnu.org; Sun, 13 Jun 2021 08:30:02 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:53512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsPFY-0001b3-3v for 40814@debbugs.gnu.org; Sun, 13 Jun 2021 08:30:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=U8jDdMfxfjZkB1NLSqCDYAAtWPfv/QspRzEZavMIFCA=; b=oGBR7HeDDl7YDX4pkSz2rwn9JU Ekc3N+zswnqbEwvy3bWYImojAHKsRjU0op9rKRslNIQLuBkLWgB4yZElikhy6MQjohL272PtAIhZ9 +m6AczvYdk9rcYk9Ww3Qf+PmFim/gNjuG3LnzNhM7Fny1jgurzQwJZjIkYCbTBDOhtmw=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lsPFP-00041r-M3; Sun, 13 Jun 2021 14:29:53 +0200 X-Now-Playing: Hilary Woods's _Birthmarks_: "There Is No Moon" In-Reply-To: (Al Haji-Ali's message of "Fri, 24 Apr 2020 11:55:24 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:208426 Archived-At: Al Haji-Ali writes: > would highlight `(paren)` only if the point is at the end of the line, > not the beginning. This would also be consistent with the following > case > > (paren1) some other text (paren2) > > where, correctly, (paren1) is highlighted if the point is in the > beginning of the line and (paren2) is highlighted if the point is in > the end of the line. Looking at the code and the documentation, as far as I can tell, this is working as designed (even if it's slightly eccentric). With this setting, when point is in the "periphery" of a line, it'll highlight the closest parens -- if those parens are also in the "periphery". Which is what the manual says: @vindex show-paren-when-point-in-periphery @code{show-paren-when-point-in-periphery}, when non-@code{nil}, causes highlighting also when point is in whitespace at the beginning or end of a line, and there is a paren at, respectively, the first or last, or the last, non-whitespace position on the line. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no