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

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

Re: Strange behavior in search-forward-regexp?


From: Barry Margolin
Subject: Re: Strange behavior in search-forward-regexp?
Date: Sun, 12 Feb 2006 16:19:17 -0500
User-agent: MT-NewsWatcher/3.4 (PPC Mac OS X)

In article <m2hd74fwu9.fsf@gmail.com>,
 Mathias Dahl <brakjoller@gmail.com> wrote:

> Barry Margolin <barmar@alum.mit.edu> writes:
> 
> >> So what happens is that the match begin at the empty line then and
> >> then "wraps around" to the next row? How can I avoid it?
> >
> > Use [^;<newline>] in the regular expression, where <newline> is entered 
> > with C-q C-j.
> 
> Thanks!  That's what I eventually did (although I used `\n'
> instead)and posted the answer here, but it seems thet gmane or the
> list has had problems yesterday.

Yeah, I didn't remember until after I posted that you were doing this in 
code, not interactively.  When using interactive re-search, you have to 
type C-q C-j.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


reply via email to

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