🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #1802

're-search-backward' bug in Emacs-18.55

#1802
From: Shinichirou Sugou
Date: Sat, 30 Dec 1989 15:02
44 lines
1492 bytes
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 (#<marker at 1 in foo> #<marker at 1 in foo> )

[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
(#<marker at 1 in foo> #<marker at 2 in foo> ).

[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
Technical Details
Message-ID: <8912301502.AA10078@sgtp.apple.juice.or.jp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!sgtp.apple.juice.or.jp!shin

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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