From: David Rasmussen <david.rasmussen@gmx.net>
Subject: Re: search and replace
Date: Sun, 04 Jul 2004 11:27:51 +0200 [thread overview]
Message-ID: <40e7cdbf$0$170$edfadb0f@dtext02.news.tele.dk> (raw)
In-Reply-To: <878ye0i16l.fsf@bach.composers>
Ole Laursen wrote:
>
> You were right in your thinking - it doesn't work on regexps. I tried
> copying the
>
> \ncline[linewidth=0.3mm,offset=-1.5mm,arrows=->,nodesep=4mm]
>
> into *scratch* and used M-% to query-replace it with \traverse. It
> works fine here. Remember that if you place the cursor on top of the
> above line, Emacs won't find it. You need to place the cursor before the
> line for Emacs to find it.
>
Hmm. I had a file containing something like:
\ncline[linewidth=0.3mm,offset=-1.5mm,arrows=->,nodesep=4mm]{a}{b}
\ncline[linewidth=0.3mm,offset=-1.5mm,arrows=->,nodesep=4mm]{b}{c}
\ncline[linewidth=0.3mm,offset=-1.5mm,arrows=->,nodesep=4mm]{c}{d}
\ncline[linewidth=0.3mm,offset=-1.5mm,arrows=->,nodesep=4mm]{d}{e}
\ncline[linewidth=0.3mm,offset=-1.5mm,arrows=->,nodesep=4mm]{e}{f}
\ncline[linewidth=0.3mm,offset=-1.5mm,arrows=->,nodesep=4mm]{f}{g}
And I did M-% to replace
\ncline[linewidth=0.3mm,offset=-1.5mm,arrows=->,nodesep=4mm]
with
\traverse
The cursor was before any of these line (and even if not, the search
wraps around anyway, doesn't it?). It just said "0 occurences replaced".
I don't understand why... I had to use another editor to perform the
replace :(
/David
next prev parent reply other threads:[~2004-07-04 9:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-03 20:57 search and replace David Rasmussen
2004-07-03 23:02 ` Mike Ballard
2004-07-27 23:06 ` David Combs
2004-07-03 23:04 ` Mike Ballard
2004-07-03 23:07 ` David Rasmussen
2004-07-04 9:14 ` Ole Laursen
2004-07-04 9:27 ` David Rasmussen [this message]
2004-07-04 15:51 ` Ole Laursen
2004-07-04 16:02 ` Josh Howard
2004-07-04 23:32 ` Mike Ballard
-- strict thread matches above, loose matches on Subject: below --
2008-06-13 21:09 Search " tho643
2008-06-13 21:59 ` Marc Tfardy
2008-06-14 3:13 ` Barry Margolin
2008-06-14 10:48 ` Marc Tfardy
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='40e7cdbf$0$170$edfadb0f@dtext02.news.tele.dk' \
--to=david.rasmussen@gmx.net \
/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.
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.