Article View: gnu.emacs.bug
Article #99556Bug in match-end ?
From: Piet van Oostrum
Date: Mon, 09 Jul 1990 11:44
Date: Mon, 09 Jul 1990 11:44
15 lines
1235 bytes
1235 bytes
This might have been reported before (Is there an archive of known gnu
emacs bugs):
When string-match matches an empty substring, (match-end 0) will report 1,
while it should report 0.
E.g: (string-match "x*" "abc") gives (match-end 0) => 1
(string-match "x*" "xyz") also gives (match-end 0) => 1.
Probably the normal regexp match will also do this, but I haven't checked it.
--
Piet* van Oostrum, Dept of Computer Science, Utrecht University,
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31-30-531806 Uucp: uunet!mcsun!ruuinf!piet
Telefax: +31-30-513791 Internet: piet@cs.ruu.nl (*`Pete')
Technical Details
Message-ID:
<3583@ruuinf.cs.ruu.nl>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!hp4nl!ruuinf!pietShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,eaf3364749557a81,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-07-09 13:38:25 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!hp4nl!ruuinf!piet From: piet@cs.ruu.nl (Piet van Oostrum) Newsgroups: gnu.emacs.bug Subject: Bug in match-end ? Message-ID: <3583@ruuinf.cs.ruu.nl> Date: 9 Jul 90 11:44:04 GMT Sender: news@ruuinf.cs.ruu.nl Reply-To: piet@cs.ruu.nl (Piet van Oostrum) Organization: Dept of Computer Science, Utrecht University, The Netherlands Lines: 15 Posted: Mon Jul 9 12:44:04 1990