Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!sgtp.apple.juice.or.jp!shin From: shin@sgtp.apple.juice.or.jp (Shinichirou Sugou) Newsgroups: gnu.emacs.bug Subject: 're-search-backward' bug in Emacs-18.55 Message-ID: <8912301502.AA10078@sgtp.apple.juice.or.jp> Date: 30 Dec 89 15:02:06 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 44 Hello. I think there is a bug in 're-search-backward' function. [System configuration] Sun3/60 with SunOS3.5. Emacs version is 18.55 compiled by Sun's compiler. [Reproduction] (1) Open a empty buffer (says foo); type two characters, SPACE and 'a'; move the cursor just on the character 'a'. (2) Eval (re-search-backward "\\`\\|\\s ") (3) Eval (match-data) and you will see (# # ) [Bug] In 're-search-backward', not "\\`" but "\\s " should be matched. But 'match-data' says that actual matching is "\\'". If "\\s " were matched correctly, 'match-data' would say (# # ). [Appendix] (re-search-backward "\\s \\|\\'") works fine. Thank you. CAUTION: (1) Reply-command in the mail system may NOT generate my address correctly. Please use the following address instead. shin%sgtp.apple.juice.or.jp@uunet.uu.net (2) I have no relation to Apple Computer Inc. :-) --- S.Sugou