From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Strange behavior in search-forward-regexp? Date: Sun, 12 Feb 2006 16:19:17 -0500 Organization: Symantec Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1139779264 16342 80.91.229.2 (12 Feb 2006 21:21:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2006 21:21:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 12 22:21:01 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F8OeS-0001Hd-00 for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Feb 2006 22:21:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8OeR-0007hJ-5q for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Feb 2006 16:20:59 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 12 Feb 2006 15:19:17 -0600 Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.4 (PPC Mac OS X) X-Copies-To: never Original-Lines: 24 Original-NNTP-Posting-Host: 24.128.234.87 Original-X-Trace: sv3-lO8ALY2tE2Fq6o1r+x1ILcNSkb+TlI5NGZ/LnTtgrxFeob7+rXowLEkVdgD/CbFrz+C345pRrV4C1fh!adorvx/qsODz1rZ24FN3m6D6Sn1TDhtkmj/ab6HOhVvWaZOK8jyhXVzQN6qFtasYSKO/+3svQN7d!p2dMJjSSuBAzJYUyuASY/fFhvTl62SoUJg== Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:137543 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33168 Archived-At: In article , Mathias Dahl wrote: > Barry Margolin 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 [^;] in the regular expression, where 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 ***