[Top][All Lists]

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

Re: query-replace-regexp-swap ?

From: David Kastrup
Subject: Re: query-replace-regexp-swap ?
Date: Mon, 28 Nov 2005 14:35:45 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Bastien <address@hidden> writes:

> David Kastrup <address@hidden> writes:
>> If you are using Emacs CVS (which your headers indicate), the
>> following should do the trick:
>> C-M-% #\(\(000\)\|FFF\) RET \,(if \2 "FFF" "000") RET
>         ^ 
> (I guess the "#" above was just a typo.)

Uh, no.  You asked for replacing #000 and #fff, so the # needs to get
matched.  The error in the above is not that the # is in the match
string, but that it is missing in the replacement.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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