From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: string-match bug? Date: Thu, 10 Dec 2009 20:25:10 +0100 Message-ID: <4B214B16.1030509@easy-emacs.de> 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 1260475538 15257 80.91.229.12 (10 Dec 2009 20:05:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2009 20:05:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 10 21:05:32 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 1NIpGU-0007l3-AI for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Dec 2009 21:05:30 +0100 Original-Received: from localhost ([127.0.0.1]:60784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIpGU-0002yy-2o for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Dec 2009 15:05:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIodh-0000Ae-Hl for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 14:25:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIodc-0008WL-PE for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 14:25:24 -0500 Original-Received: from [199.232.76.173] (port=33243 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIodc-0008W6-5D for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 14:25:20 -0500 Original-Received: from moutng.kundenserver.de ([212.227.17.8]:62918) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NIodb-0002KJ-LN for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 14:25:20 -0500 Original-Received: from [192.168.178.27] (p54BEBA8B.dip0.t-ipconnect.de [84.190.186.139]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0Mecsy-1NgxDn3EXw-00OLgV; Thu, 10 Dec 2009 20:25:16 +0100 User-Agent: Thunderbird 2.0.0.19 (X11/20081227) In-Reply-To: <87my1sq830.fsf@not.no> X-Provags-ID: V01U2FsdGVkX18xY/Vf+7b4y+h9UA1ax/l8fsaaBcKrmDNfzzM UpQAZ5i49Sso0MhB+Yyv5Gvdx+2dxJnEBK2V/b98er742fGRJr /ApYfuOiiYncr3KqEfxxyYXXwOUE44br35LUPm84wU= X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:70568 Archived-At: 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? Andreas