Article View: gnu.emacs.bug
Article #98508string evaluation seems inconsistent...
From: nick
Date: Tue, 02 Jul 1991 07:44
Date: Tue, 02 Jul 1991 07:44
36 lines
1408 bytes
1408 bytes
In GNU Emacs 18.57.1 of Wed Feb 27 1991 on beast (berkeley-unix)
If I eval the string:
"^locks:[ \C-i]*\\([a-zA-Z0-9]*\\):?[ \C-i]*\\([0-9a-z\\.]*\\);[ \C-i]*\\([a-zA-Z]\\)$"
I get:
"^locks:[ ]*\\([a-zA-Z0-9]*\\):?[ ]*\\([0-9a-z\\.]*\\);[ ]*\\([a-zA-Z]\\)$"
Whereas what I *expect* is
"^locks:[ ]*\([a-zA-Z0-9]*\):?[ ]*\([0-9a-z\.]*\);[ ]*\([a-zA-Z]\)$"
I am led to believe this should be so by the behavior seen when
evaluating the string:
"^locks:[ \C-i]*\([a-zA-Z0-9]*\):?[ \C-i]*\([0-9a-z\.]*\);[ \C-i]*\([a-zA-Z]\)$"
->
"^locks:[ ]*([a-zA-Z0-9]*):?[ ]*([0-9a-z.]*);[ ]*([a-zA-Z])$"
If single backslashes are elided to no backslashes, shouldn't double
backslashes be elided to single ones?
thanks,
--nick caruso
icad inc, 201 broadway
cambridge, MA 02139-1901
nick@icad.com
Technical Details
Message-ID:
<9107021544.AA01159@beast.icad.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!icad.COM!nickShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,5dc08851e7cafa4b,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-07-02 00:44:41 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!icad.COM!nick From: nick@icad.COM Newsgroups: gnu.emacs.bug Subject: string evaluation seems inconsistent... Message-ID: <9107021544.AA01159@beast.icad.com> Date: 2 Jul 91 07:44:41 GMT Sender: gnulists@ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 36 Approved: bug-gnu-emacs@prep.ai.mit.edu