From xemacs-m  Tue Jul 29 11:08:22 1997
Received: from mgate.uni-hannover.de (mgate.uni-hannover.de [130.75.2.3])
	by xemacs.org (8.8.5/8.8.5) with SMTP id LAA01185
	for <xemacs-beta@xemacs.org>; Tue, 29 Jul 1997 11:08:21 -0500 (CDT)
Received: from helios (actually helios.tnt.uni-hannover.de) by mgate 
          with SMTP (PP); Tue, 29 Jul 1997 18:07:58 +0200
Received: from daedalus.tnt.uni-hannover.de by helios (SMI-8.6/SMI-SVR4) 
          id SAA06500; Tue, 29 Jul 1997 18:07:45 +0200
Received: by daedalus.tnt.uni-hannover.de (SMI-8.6/SMI-SVR4) id SAA19521;
          Tue, 29 Jul 1997 18:07:40 +0200
Date: Tue, 29 Jul 1997 18:07:40 +0200
Message-Id: <199707291607.SAA19521@daedalus.tnt.uni-hannover.de>
From: Heiko Muenkel <muenkel@tnt.uni-hannover.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: xemacs-beta@xemacs.org
Subject: Bug in re-search-backward?
X-Mailer: VM 6.22 under 19.15p5 XEmacs Lucid
Comments: Hyperbole mail buttons accepted, v04.023.
X-Face: n}R'l6CHRf>pi&bj7[x0CW3:kmXm@1)7m+l*9[fp;-Ow4Xe~=5E;skf?2> 
        y]f{HzB|Q(\V9+y$PP~.4G[2n4W7{6Ilm[AMY9B:0kj.K_$-d%p4YIF*bX;=ADp6{ 
        HS@NEv9c.VII+9PgXHASx}K(jy^t=q%qzZ72q1e4E;O!$A$`&wgtLk"1%p.nC_G!] 
        4d1!+J4Q#YD_iXeEy`1x)d\r$1Qn\'23n|[8Y_xzuXJJ7W(EGqnzB]`]aq??;+z=) 
        DW~\'Vq&F'g%QU[Mv2:}nS>SdZFTEC2GsgB=Q,:~H<R5S[:ZN%B:s0;|v1x"Jb

If you've a buffer with the contents
	1234
and you start a regularexpression search from the end with
	(re-search-backward "[0-9]+")
the search will be stopped at the character 4, therefore the
function call (match-string 0) will only return the string "4".
If you start the search at the beginning of the buffer, you will
get the string "1234". I'm not sure, if this is a bug or not - but it
is very annoying and should be documented at least in the
documentation string of re-search-backward.

This is propably true for all emacs versions.

Heiko

