From: "Mattias Engdegård" <mattiase@acm.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Philip Kaludercic <philipk@posteo.net>,
daanturo <daanturo@gmail.com>,
emacs-devel@gnu.org
Subject: Re: A function to take the regexp-matched subsring directly
Date: Mon, 31 Oct 2022 09:56:42 +0100 [thread overview]
Message-ID: <826C0C38-3411-4D85-A202-18CA166BD3C2@acm.org> (raw)
In-Reply-To: <jwvfsf52cm4.fsf-monnier+emacs@gnu.org>
30 okt. 2022 kl. 23.07 skrev Stefan Monnier <monnier@iro.umontreal.ca>:
> The match-data is defined to be something very ephemeral, so it's OK for
> pure functions to clobber it.
>
> Admittedly, here it doesn't just clobber it but sets it to a reliable
> value, so there's a high risk that someone will rely on that match-data,
> so better not mark it as pure, indeed, contrary to what I said earlier.
Wouldn't be pure anyway since string-match depends on case-fold-search.
prev parent reply other threads:[~2022-10-31 8:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-30 15:17 A function to take the regexp-matched subsring directly daanturo
2022-10-30 15:45 ` Philip Kaludercic
2022-10-30 16:46 ` daanturo
2022-10-30 17:26 ` Philip Kaludercic
2022-10-30 15:52 ` Stefan Monnier
2022-10-30 17:16 ` daanturo
2022-10-30 22:01 ` Stefan Monnier
2022-10-31 3:47 ` daanturo
2022-10-30 17:29 ` Philip Kaludercic
2022-10-30 22:07 ` Stefan Monnier
2022-10-31 8:56 ` Mattias Engdegård [this message]
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=826C0C38-3411-4D85-A202-18CA166BD3C2@acm.org \
--to=mattiase@acm.org \
--cc=daanturo@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=philipk@posteo.net \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).