[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposed extension of show-paren-mode: Highlight parens when point i
From: |
Andy Moreton |
Subject: |
Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin. |
Date: |
Wed, 15 Oct 2014 23:38:07 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) |
On Wed 15 Oct 2014, Alan Mackenzie wrote:
> Sorry, I expressed myself really badly. I'll try again. Dividing a
> source file line into LH periphery, core, RH periphery:
>
> foo = /* */ bar; /* comment */
> PPPPPPPPPPPP PPPPPPPPPPPPPP
> CCCCCCCCCCCCCCCC
>
> The periphery of a line does not extend outside that line. An "internal
> comment" inside a line (a fairly rare thing) is not part of the
> periphery. Comments before the core are vanishingly rare, hence not
> included in the definition.
>
> The candidates for a pertinent parenthesis are then:
> (i) A paren that point is immediately outside of. A closing paren takes
> priority over an opening one. (This is the existing implementation.)
> (ii) (Only when point is in the periphery) a paren at the beginning or
> end of the core. The one nearest point takes priority.
So if understand correctly, LH periphery is leading whitespace/comments,
and RH periphery is trailing whitespace/comments ?
AndyM
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., (continued)
Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Stefan Monnier, 2014/10/12
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Alan Mackenzie, 2014/10/12
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Stefan Monnier, 2014/10/14
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., John Yates, 2014/10/14
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Alan Mackenzie, 2014/10/15
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin.,
Andy Moreton <=
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Stefan Monnier, 2014/10/15
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Alan Mackenzie, 2014/10/16
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Stefan Monnier, 2014/10/16
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Alan Mackenzie, 2014/10/16
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Stefan Monnier, 2014/10/16
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Alan Mackenzie, 2014/10/16
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Stefan Monnier, 2014/10/16
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Alan Mackenzie, 2014/10/16
- Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., Stefan Monnier, 2014/10/16
Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin., João Távora, 2014/10/14