From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ole Laursen Newsgroups: gmane.emacs.help Subject: Re: search and replace Date: Sun, 04 Jul 2004 17:51:46 +0200 Organization: TDC Totalloesninger Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87fz876a99.fsf@bach.composers> References: <40e71dde$0$162$edfadb0f@dtext01.news.tele.dk> <40e73c45$0$170$edfadb0f@dtext01.news.tele.dk> <878ye0i16l.fsf@bach.composers> <40e7cdbf$0$170$edfadb0f@dtext02.news.tele.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088956406 17319 80.91.224.253 (4 Jul 2004 15:53:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Jul 2004 15:53:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 04 17:53:19 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bh9It-0007RK-00 for ; Sun, 04 Jul 2004 17:53:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bh9Ko-00030M-RO for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Jul 2004 11:55:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!irazu.switch.ch!switch.ch!npeer.de.kpn-eurorings.net!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:NR7+yNrA7zuDiy8HPKdv4BmOQm0= Original-Lines: 33 Original-NNTP-Posting-Host: 131.165.63.132 Original-X-Trace: 1088956281 dread11.news.tele.dk 140 131.165.63.132:56964 Original-X-Complaints-To: abuse@post.tele.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:124120 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19451 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19451 David Rasmussen writes: [...] > 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". No, it never wraps around. > I don't understand why... I had to use another editor to perform the > replace :( I tried those lines too, and it still works as expected. Someone strange must have happened. -- Ole Laursen http://www.cs.aau.dk/~olau/