[5261] in Athena Bugs
vax 7.0F: emacs
daemon@ATHENA.MIT.EDU (Raul)
Sat Jun 23 18:39:15 1990
To: bugs@ATHENA.MIT.EDU
Date: Sat, 23 Jun 90 18:39:02 EDT
From: Raul <acevedo@ATHENA.MIT.EDU>
System name: w20-575-98
Type and version: CVAXSTAR 7.0F
Display type: SM
What were you trying to do?
Do some regexp matching with re-search-backward.
What's wrong:
Emacs gets confused with this string: ^\*\*\*, in two different
ways. Just create a buffer with the single line:
*** foo
Then go to the end of the buffer, and start an interactive
re-search-backward. Hit ^\*\*\* and it bombs with ^\*\*.
Second way it bombs: Hit ^\*+ and then a space; works, right?
Notice the cursor position. Then hit another \ and notice how the cursor
jumps to in front of the `f' in `foo'.
What should have happened:
^\*\*\* should not bomb. Fiddling with it reveals that after the first \*
Emacs tries to search backward again, going to any `previous' match of \*
(or \*\*; I can't really tell). Also, hitting that \ should NOT move the
cursor position in the buffer; it only initiates a special sequence, and
does not affect the current match until the special sequence is completed.
Please describe any relevant documentation references:
C-h i in Emacs, then `g' and: (/afs/athena/project/gnu/info)Top. Look under
"Searching and Matching", and then "Regular Expression Syntax".