bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#40814: 26.3; show-paren-mode hightlights parentheses at eol


From: Al Haji-Ali
Subject: bug#40814: 26.3; show-paren-mode hightlights parentheses at eol
Date: Fri, 24 Apr 2020 11:55:24 +0100

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 <eliz@gnu.org> wrote:
>
> > From: Abdo Haji-Ali <abdo.haji.ali@gmail.com>
> > 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 true 
> > 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’s 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]