From: Dmitry Gutov <dgutov@yandex.ru>
To: Marcin Borkowski <mbork@mbork.pl>,
Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: A variant of match-end, but after replacement?
Date: Sun, 19 Jul 2015 23:23:24 +0300 [thread overview]
Message-ID: <55AC073C.5090004@yandex.ru> (raw)
In-Reply-To: <87mvysjrkb.fsf@mbork.pl>
By the way,
On 07/19/2015 02:49 PM, Marcin Borkowski wrote:
> Note: I have good reasons not to use replace-regexp-in-string, since
> I want to replace each match with something different, according to what
> was matched inside one of the groups. AFAIK, replace-regexp-in-string
> doesn't support such a use-case.
...it does. Its REP argument can be a function, and in it you're free to
choose the replacement based on the match data.
next prev parent reply other threads:[~2015-07-19 20:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-19 11:49 A variant of match-end, but after replacement? Marcin Borkowski
2015-07-19 20:23 ` Dmitry Gutov [this message]
[not found] <mailman.7146.1437306572.904.help-gnu-emacs@gnu.org>
2015-07-19 12:06 ` Pascal J. Bourguignon
2015-07-19 12:22 ` Marcin Borkowski
2015-07-19 13:25 ` Marcin Borkowski
2015-07-20 10:46 ` Nicolas Richard
[not found] ` <mailman.7147.1437308571.904.help-gnu-emacs@gnu.org>
2015-07-19 12:30 ` Pascal J. Bourguignon
2015-07-19 13:20 ` Marcin Borkowski
2015-07-19 13:26 ` Dmitry Gutov
2015-07-19 19:57 ` Marcin Borkowski
[not found] ` <mailman.7150.1437312076.904.help-gnu-emacs@gnu.org>
2015-07-19 13:41 ` Pascal J. Bourguignon
2015-07-19 19:58 ` Marcin Borkowski
[not found] ` <mailman.7160.1437335923.904.help-gnu-emacs@gnu.org>
2015-07-19 20:18 ` Barry Margolin
2015-07-19 22:45 ` Pascal J. Bourguignon
2015-07-20 0:06 ` Marcin Borkowski
[not found] ` <mailman.7165.1437350800.904.help-gnu-emacs@gnu.org>
2015-07-20 0:33 ` Pascal J. Bourguignon
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=55AC073C.5090004@yandex.ru \
--to=dgutov@yandex.ru \
--cc=help-gnu-emacs@gnu.org \
--cc=mbork@mbork.pl \
/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).