* outermost-only-face-count in rainbow-delimiters
@ 2022-01-18 15:10 fatiparty--- via Users list for the GNU Emacs text editor
2022-01-18 16:46 ` Michael Heerdegen
0 siblings, 1 reply; 7+ messages in thread
From: fatiparty--- via Users list for the GNU Emacs text editor @ 2022-01-18 15:10 UTC (permalink / raw)
To: Help Gnu Emacs
I am using rainbow-delimiters. Does anyone understand how outermost-only-face-count
functions?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: outermost-only-face-count in rainbow-delimiters
2022-01-18 15:10 outermost-only-face-count in rainbow-delimiters fatiparty--- via Users list for the GNU Emacs text editor
@ 2022-01-18 16:46 ` Michael Heerdegen
2022-01-18 21:30 ` fatiparty--- via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 7+ messages in thread
From: Michael Heerdegen @ 2022-01-18 16:46 UTC (permalink / raw)
To: help-gnu-emacs
fatiparty--- via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:
> I am using rainbow-delimiters. Does anyone understand how
> outermost-only-face-count functions?
I suggest you set it to (- rainbow-delimiters-max-face-count 1) and
insert a bunch of parens: ((((((((((((((())))))))))))))) and see what
you get, then try with (- rainbow-delimiters-max-face-count 2).
This limits the rainbow faces used for cycing to the last 1, the last 2
faces, etc, for paren levels deeper than
`rainbow-delimiters-max-face-count'.
Michael.
^ permalink raw reply [flat|nested] 7+ messages in thread
* outermost-only-face-count in rainbow-delimiters
2022-01-18 16:46 ` Michael Heerdegen
@ 2022-01-18 21:30 ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-18 21:40 ` Michael Heerdegen
0 siblings, 1 reply; 7+ messages in thread
From: fatiparty--- via Users list for the GNU Emacs text editor @ 2022-01-18 21:30 UTC (permalink / raw)
To: Michael Heerdegen; +Cc: Help Gnu Emacs
Jan 19, 2022, 04:46 by michael_heerdegen@web.de:
> fatiparty--- via Users list for the GNU Emacs text editor
> <help-gnu-emacs@gnu.org> writes:
>
>> I am using rainbow-delimiters. Does anyone understand how
>> outermost-only-face-count functions?
>>
>
> I suggest you set it to (- rainbow-delimiters-max-face-count 1) and
> insert a bunch of parens: ((((((((((((((())))))))))))))) and see what
> you get, then try with (- rainbow-delimiters-max-face-count 2).
>
> This limits the rainbow faces used for cycing to the last 1, the last 2
> faces, etc, for paren levels deeper than
> `rainbow-delimiters-max-face-count'.
>
> Michael.
>
Took me some time to see through this. Is there any particular use for it?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: outermost-only-face-count in rainbow-delimiters
2022-01-18 21:30 ` fatiparty--- via Users list for the GNU Emacs text editor
@ 2022-01-18 21:40 ` Michael Heerdegen
2022-01-19 6:57 ` fatiparty--- via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 7+ messages in thread
From: Michael Heerdegen @ 2022-01-18 21:40 UTC (permalink / raw)
To: help-gnu-emacs
fatiparty--- via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:
> Took me some time to see through this. Is there any particular use
> for it?
I have no clue.
Michael.
^ permalink raw reply [flat|nested] 7+ messages in thread
* outermost-only-face-count in rainbow-delimiters
2022-01-18 21:40 ` Michael Heerdegen
@ 2022-01-19 6:57 ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-19 16:06 ` Yuri Khan
0 siblings, 1 reply; 7+ messages in thread
From: fatiparty--- via Users list for the GNU Emacs text editor @ 2022-01-19 6:57 UTC (permalink / raw)
To: Michael Heerdegen; +Cc: Help Gnu Emacs
Jan 19, 2022, 09:40 by michael_heerdegen@web.de:
> fatiparty--- via Users list for the GNU Emacs text editor
> <help-gnu-emacs@gnu.org> writes:
>
>> Took me some time to see through this. Is there any particular use
>> for it?
>>
>
> I have no clue.
>
> Michael.
>
I do not see a valuable use for it except as an interesting complication.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: outermost-only-face-count in rainbow-delimiters
2022-01-19 6:57 ` fatiparty--- via Users list for the GNU Emacs text editor
@ 2022-01-19 16:06 ` Yuri Khan
2022-01-19 17:33 ` Michael Heerdegen
0 siblings, 1 reply; 7+ messages in thread
From: Yuri Khan @ 2022-01-19 16:06 UTC (permalink / raw)
To: fatiparty; +Cc: Michael Heerdegen, Help Gnu Emacs
On Wed, 19 Jan 2022 at 14:04, fatiparty--- via Users list for the GNU
Emacs text editor <help-gnu-emacs@gnu.org> wrote:
> I do not see a valuable use for it except as an interesting complication.
You do not have to understand every option in every package you use.
Just keep it at default.
If I understand the docstring correctly, you could set the option to 1
and then the first face would only ever be used for top-level forms,
never for some deeply nested forms. Sounds like a handy feature if you
are into that kind of thing.
(Disclaimer: I do not use rainbow-delimiters.)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: outermost-only-face-count in rainbow-delimiters
2022-01-19 16:06 ` Yuri Khan
@ 2022-01-19 17:33 ` Michael Heerdegen
0 siblings, 0 replies; 7+ messages in thread
From: Michael Heerdegen @ 2022-01-19 17:33 UTC (permalink / raw)
To: help-gnu-emacs
Yuri Khan <yuri.v.khan@gmail.com> writes:
> If I understand the docstring correctly, you could set the option to 1
> and then the first face would only ever be used for top-level forms,
> never for some deeply nested forms. Sounds like a handy feature if you
> are into that kind of thing.
It seems to be the other way round: the face is only used for all deeply
nested parens, and the outermost `rainbow-delimiters-max-face-count'
parens are unaffected.
Michael.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-01-19 17:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-18 15:10 outermost-only-face-count in rainbow-delimiters fatiparty--- via Users list for the GNU Emacs text editor
2022-01-18 16:46 ` Michael Heerdegen
2022-01-18 21:30 ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-18 21:40 ` Michael Heerdegen
2022-01-19 6:57 ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-19 16:06 ` Yuri Khan
2022-01-19 17:33 ` Michael Heerdegen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).