From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Frank Fredstone Newsgroups: gmane.emacs.help Subject: Re: string-match bug? Date: Thu, 10 Dec 2009 12:40:53 -0800 Message-ID: <87zl5qv9yi.fsf@not.no> References: <4b1d1a48$0$278$14726298@news.sunsite.dk> <4b1d1e3d$0$276$14726298@news.sunsite.dk> <4B1D6773.3000509@easy-emacs.de> <4B1F5A38.1030703@easy-emacs.de> <87my1sq830.fsf@not.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1260491755 1173 80.91.229.12 (11 Dec 2009 00:35:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Dec 2009 00:35:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 11 01:35:48 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 1NItU3-00014S-DG for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Dec 2009 01:35:47 +0100 Original-Received: from localhost ([127.0.0.1]:35679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NItU3-0003qf-4R for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Dec 2009 19:35:47 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 10 Dec 2009 14:40:54 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:5UMP19dk90r/t0C5RJyuZwBcozM= Original-Lines: 32 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-VBEtQIupjxgwvwS1sOjCXOnI5PkfpG2Tesd4B0c7Xz2gejdH+STG60njwX0BedNI9XXVK/pJA7Qrvc1!9jFqwearjtM14pvh6K7uER2fYkZXTpbuSWm6ajz8Gw== Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html 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.40 Original-Xref: news.stanford.edu gnu.emacs.help:175495 X-Mailman-Approved-At: Thu, 10 Dec 2009 19:35:25 -0500 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:70579 Archived-At: Andreas Röhler writes: > Frank Fredstone wrote: >> Andreas Röhler writes: >> >>> Aren't >>> >>> (string-match "" "a") >>> >>> and >>> >>> (string-match "" "") >>> >>> different cases in some perspective? >> >> You can think of it like this: >> >> If you line up 3 boxes left to right, where among them are there no >> boxes? There are no boxes before the first, between the first and the >> second, between the second and the third and after the last. The first >> place (position left to right) where there are no boxes, is before the >> first (position 0). >> >> > > well, isn't the first 0? > before the first would be -1 then? Before the first, would be -1, if there were a box there. But, we're talking about where no boxes are. There is no box before the first, at position 0.