From: Yuri Khan <yuri.v.khan@gmail.com>
To: tomas@tuxteam.de
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>,
Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: New function: rcd-highlight-list
Date: Wed, 19 May 2021 17:15:26 +0700 [thread overview]
Message-ID: <CAP_d_8Xy5xO4jUVMJdrsm6Tu9iQHha89EEfmAbN-95DV2wWJFQ@mail.gmail.com> (raw)
In-Reply-To: <20210519075254.GF7028@tuxteam.de>
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 …) …).
next prev parent reply other threads:[~2021-05-19 10:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-18 17:08 New function: rcd-highlight-list Jean Louis
2021-05-18 17:27 ` tomas
2021-05-18 17:43 ` Jean Louis
2021-05-18 18:47 ` tomas
2021-05-18 20:13 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-19 7:52 ` tomas
2021-05-19 10:15 ` Yuri Khan [this message]
2021-05-19 10:31 ` tomas
2021-05-19 10:27 ` Jean Louis
2021-05-18 20:14 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAP_d_8Xy5xO4jUVMJdrsm6Tu9iQHha89EEfmAbN-95DV2wWJFQ@mail.gmail.com \
--to=yuri.v.khan@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=tomas@tuxteam.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).