From: Richard Stallman <rms@gnu.org>
To: Howard Yeh! <hayeah@gmail.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: symbol-macrolet clobbers (match-data), bug or feature?
Date: Wed, 15 Aug 2007 21:08:15 -0400 [thread overview]
Message-ID: <E1ILTqR-0002VO-D7@fencepost.gnu.org> (raw)
In-Reply-To: <1187124191.406368.291750@x40g2000prg.googlegroups.com> (message from Howard Yeh! on Tue, 14 Aug 2007 20:43:11 -0000)
This is an interesting idea, but I'd rather it be implemented in a way
that does not require loading CL, and not using symbol-macrolet.
One way to do that is to write a list of variables to bind to certain
match values, like this:
(r=~ "\\(abc\\)\\(efg\\)?" "abcefg"
((s0 b0 e0) (s1) (s2))
(list (match-data) b0 e0 s0 s1 s2))
which would be equivalent to your
(r=~ "\\(abc\\)\\(efg\\)?" "abcefg"
(list (match-data) <0 >0 $0 $1 $2))
prev parent reply other threads:[~2007-08-16 1:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-14 20:43 symbol-macrolet clobbers (match-data), bug or feature? Howard Yeh!
2007-08-16 1:08 ` Richard Stallman [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=E1ILTqR-0002VO-D7@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=bug-gnu-emacs@gnu.org \
--cc=hayeah@gmail.com \
/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).