help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: query-replace-regexp-swap ?


From: Bastien
Subject: Re: query-replace-regexp-swap ?
Date: Sat, 26 Nov 2005 03:54:01 +0000
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

"rgb" <rbielaws@i1.net> writes:

> Does this look like what you wanted?
>
> (defun swap-text (str1 str2 beg end)

Well, kind of.  

The thing is that i rather would like to use regexps (instead of meer
strings), and i would like this func to behave like query-* functions
- i.e. asking for each instance etc, since this function would often
be called in a context where we just *don't* want each occurrence to
be replaced.

But i don't know if it's possible, or even a good idea to try to use
perform-replace for this purpose.

Anyway, thanks for the help!

-- 
Bastien


reply via email to

[Prev in Thread] Current Thread [Next in Thread]