unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Kastrup <dak@gnu.org>
Subject: Re: query-replace-regexp-swap ?
Date: Mon, 28 Nov 2005 14:35:45 +0100	[thread overview]
Message-ID: <85sltgc2tq.fsf@lola.goethe.zz> (raw)
In-Reply-To: 877jat6i87.fsf@bzg.ath.cx

Bastien <bastien@xxx.fr> writes:

> David Kastrup <dak@gnu.org> 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	other threads:[~2005-11-28 13:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-24  2:10 query-replace-regexp-swap ? Bastien
2005-11-26  2:03 ` rgb
2005-11-26  3:54   ` Bastien
2005-11-26  6:22 ` David Kastrup
2005-11-28 12:59   ` Bastien
2005-11-28 13:35     ` David Kastrup [this message]
2005-11-28 13:54       ` Bastien

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=85sltgc2tq.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    /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).