From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: Regexp issue Date: Sat, 20 Jun 2009 12:47:05 +0000 (UTC) Organization: muc.de e.V. Message-ID: References: <1245487152.15610.0.camel@drserver> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1245505237 30853 80.91.229.12 (20 Jun 2009 13:40:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Jun 2009 13:40:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 20 15:40:35 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MI0o7-00017W-Aw for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Jun 2009 15:40:35 +0200 Original-Received: from localhost ([127.0.0.1]:54527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MI0o6-00056v-Aw for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Jun 2009 09:40:34 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed2.telusplanet.net!newsfeed.telus.net!feeder.erje.net!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: marvin.muc.de Original-X-Trace: colin2.muc.de 1245502025 4244 2001:608:1000::2 (20 Jun 2009 12:47:05 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: Sat, 20 Jun 2009 12:47:05 +0000 (UTC) User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386)) Original-Xref: news.stanford.edu gnu.emacs.help:170183 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:65402 Archived-At: Peter Dyballa wrote: > Am 20.06.2009 um 12:17 schrieb Alan Mackenzie: >> Or, more precisely, >> \(^\|[^<]\)=> > The imprecise form works for me in GNU Emacsen 22.3 and 23.0.94 (to > find => at the beginning of a line) ... Only at the beginning of _some_ lines. ;-) Actually, come to think of it, both of our regexps are wrong. Neither of them will find "=>" at point in the middle of a line. Better would be \(\=\|[^<]\)=> . But even that will "fail" if point is at "=" in "<=>", for some reasonable value of "fail". By now, the OP is probably wishing he hadn't bothered asking this question. ;-) > Pete -- Alan Mackenzie (Nuremberg, Germany).