Path: utzoo!attcan!uunet!mcsun!ub4b!lln-cs!pys From: pys@lln-cs.UUCP (Yves Schobbens) Newsgroups: comp.emacs Subject: bug in GNU emacs regexp? Keywords: regexp, match-data Message-ID: <1000@lln-cs.UUCP> Date: 26 Oct 90 14:14:28 GMT Reply-To: pys@info.ucl.ac.be (Pierre-Yves Schobbens) Followup-To: comp.emacs Organization: Computer Sc. Depart. University of Louvain-la-Neuve, Belgium Lines: 15 Could someone tell me if the following bug has been corrected in recent versions of Emacs (or why it is not a bug) ? I have it in 18.47. TEST: type: 56 C-a ESC-x replace-regexp RET \(\(5\)7\|5\)6 RET \2 RET if the buffer contains 5, your emacs has the same bug; the correct answer is to raise "No match for..." RATIONALE: The second \(..\) is first matched with 5, but this match is retracted when 7 has to be matched against 6. However, the match-data is not cleared appropriately. (Well, in many other cases it isn't) Many thanks in advance, Pierre-Yves.