From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Al Haji-Ali Newsgroups: gmane.emacs.bugs Subject: bug#40814: 26.3; show-paren-mode hightlights parentheses at eol Date: Fri, 24 Apr 2020 11:55:24 +0100 Message-ID: References: <875zdprxwx.fsf@gmail.com> <838silb25p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="22040"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40814@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 24 12:57:24 2020 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 1jRw1L-0005dG-LI for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Apr 2020 12:57:23 +0200 Original-Received: from localhost ([::1]:60128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRw1K-0002IY-Dd for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Apr 2020 06:57:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47712) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRw1C-0002I7-PW for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2020 06:57:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRw10-0005dM-EV for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2020 06:57:14 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRw10-0005cH-39 for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2020 06:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jRw0z-0002wA-Ru for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2020 06:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Al Haji-Ali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Apr 2020 10:57:01 +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.158772577411228 (code B ref 40814); Fri, 24 Apr 2020 10:57:01 +0000 Original-Received: (at 40814) by debbugs.gnu.org; 24 Apr 2020 10:56:14 +0000 Original-Received: from localhost ([127.0.0.1]:56528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRw08-0002uu-Gq for submit@debbugs.gnu.org; Fri, 24 Apr 2020 06:56:13 -0400 Original-Received: from mail-wm1-f45.google.com ([209.85.128.45]:35494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRw07-0002uW-2s for 40814@debbugs.gnu.org; Fri, 24 Apr 2020 06:56:07 -0400 Original-Received: by mail-wm1-f45.google.com with SMTP id r26so10217881wmh.0 for <40814@debbugs.gnu.org>; Fri, 24 Apr 2020 03:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=TU1bbZxn2cVIlsWFOFLiHThGA2GW4KHvMcjMbKWbZ3g=; b=is7B4WTjRYAg24kgCCCm3nSdWdhLO01DeRrPQMcd/U5i+0CXXnxLgd3hoLZmujovWR c9BNsm2Np5LVvTQ3+75lINA0bPCB+0KiqQ/0KBa3Ovi/qYuDJ7ap0DRm3wl8iCPGS8SI jFUOyrWtiSJJLBk0nmOlLx+T2CXRRru0NTqgFpCUQbZ4kL0xH4LmEPt5D2G4zm0CJ+sO xET/FxSard6PESORqPLFy5JLH7hKfrDfDQOkzp289Elbsg7EuMnsxvbEXJHbBGJ+Rtyd e9np790S7Gp8mJMm39o4sskTXeH9t0vDoWns6HEITCsu0ggCpc+Evw42J7t8jre3uybB gv6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=TU1bbZxn2cVIlsWFOFLiHThGA2GW4KHvMcjMbKWbZ3g=; b=nDAiASIqxYNB6j3tUx4pQmUoZB4O99fv5FOYvJL3CYenMGzM6Dwutl0c2Kh4KnCldk mJfm8mYFVh26hpdLXUk9D9mzmUceP3V+vYevaMrYayBYrVYkkNAxSGe1R/c8Y1Tc/tU9 JF4+ZU0lPmUQ1dj0gfAJrzvAPTvJzQ/OCw5l0OYcTWIWPFU5NMkfbQRLpBEwJULhiBzk zJ+9Ps463P2+ihGYHFldOblHjEn7hxOunJwe4Uc7IrG5T+iJCphu5zgATarv3SYHxv0h i42CumpP7sC+JuFc4XoP5x7nZ7ic3vv0yzSEm0XG9ais8pZ+Zgd7yBUVTyq7xF1mUzmn D1fA== X-Gm-Message-State: AGi0PuYrtrlqt1ZRthdRfD3ypybd66KD3zHT7FPjy42gJDdRI28WyyXo la8wwGc8oEssP2eT8xf5zYTKOHWkMKXPWVvBYEf75fRv X-Google-Smtp-Source: APiQypLSOncsTpQyQXvvS2BFNg5L1p3oIlqzK9DLOJNn3Zyf7Evmo6X1FrzAS0WsQD2UwdXK+UhdUYkXJ7q5e1h8/8M= X-Received: by 2002:a1c:7c18:: with SMTP id x24mr8849191wmc.146.1587725760894; Fri, 24 Apr 2020 03:56:00 -0700 (PDT) In-Reply-To: <838silb25p.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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:178903 Archived-At: I see. I think the documentation is unclear as to which parenthesis is meant. After all, `(paren)` in the following text Some text (paren) some other text. would not be highlighted if the point is in beginning (or end) of the line even though this location meets the definition of the "line's periphery" as defined in the documentation. Based on this case, I would expect the consistent behaviour (to my mind) that the text some other text (paren) 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. On Fri, Apr 24, 2020 at 11:37 AM Eli Zaretskii wrote: > > > From: Abdo Haji-Ali > > Date: Fri, 24 Apr 2020 11:16:52 +0100 > > > > In the following text: > > > > ``` > > Some text (other text) > > ``` > > > > If `show-paren-mode` is on, `show-paren-when-point-in-periphery` is tru= e and the point is anywhere before 'S', the parenthesis at the *end* of the= line is highlighted. Is this intentional? > > Looks like it is. From the option's doc string: > > If non-nil, show parens when point is in the line=E2=80=99s periphery. > The periphery is at the beginning or end of a line or in any > whitespace there. > > What you describe seems to fit the "any whitespace there" part. > > maybe this text is confusing in some way? What did you expect to see > as the effect of this option? > > Thanks.