all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* A variant of match-end, but after replacement?
@ 2015-07-19 11:49 Marcin Borkowski
  2015-07-19 20:23 ` Dmitry Gutov
  0 siblings, 1 reply; 16+ messages in thread
From: Marcin Borkowski @ 2015-07-19 11:49 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi all,

I perform search using string-match, and then do the replacement using
replace-match.  Now I'd like to know the position of the end of my
replacement, so that I know where to start the next search (since I'm
coding a variant of replace-regexp-in-string).  Is there anything like
that in Emacs, or should I just concatenate the parts before and after
the match with the match in-between instead of using replace-match, so
that I can calculate that position myself?

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.

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <mailman.7146.1437306572.904.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2015-07-20 10:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-19 11:49 A variant of match-end, but after replacement? Marcin Borkowski
2015-07-19 20:23 ` Dmitry Gutov
     [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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.