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

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

Re: New function: rcd-highlight-list


From: Yuri Khan
Subject: Re: New function: rcd-highlight-list
Date: Wed, 19 May 2021 17:15:26 +0700

On Wed, 19 May 2021 at 14:53, <tomas@tuxteam.de> wrote:

> > >> > >     (while list
> > >> > >       (highlight-regexp (pop list) (pop highlights)))))

> > > Perhaps the function `regexp-quote' is built for you :)
> >
> > I think you mistyped `regexp-opt`.
>
> Always taking things to the next level.
>
> But yes, you're right: the whole while loop above would collapse
> in a puff of pink smoke or something ;-)

Not exactly: the while loop above generates puffs of pink, yellow,
green, blue, and black smoke, so you’d lose functionality if you
collapsed it to a single (highlight-regexp (regexp-opt …) …).



reply via email to

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