[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Default history does not work with Lisp regexps
From: |
David Kastrup |
Subject: |
Default history does not work with Lisp regexps |
Date: |
01 Aug 2004 13:59:03 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Ok, here is the gist of a bug report. I have not sent it to the bug
list since I don't need any review for getting this classified as
something we need to do something about.
Basically this boils down to the question: what do we enter in the
history list, the compiled Lisp expression or a string? If we enter a
string, then we need to go through compilation again in case somebody
just hits RET in order to get the defaults.
Any objections?
Recent input:
C-M-% [ 0 - 9 ] + <return>
\ , ( 1 + SPC \ # & ) <return> q C-M-% <return> y
M-x r e p o r t - e <tab> <return>
Recent messages:
Replaced 0 occurrences
Mark set
Entering debugger...
Loading emacsbug...done
Debugger entered--Lisp error: (error "Invalid use of `\\' in replacement text")
replace-match("\\,(1+ \\#&)" nil nil)
replace-match-maybe-edit("\\,(1+ \\#&)" nil nil nil (77 81 #<buffer
replace.el>))
perform-replace("[0-9]+" "\\,(1+ \\#&)" t t nil nil nil nil nil)
query-replace-regexp("[0-9]+" "\\,(1+ \\#&)" nil nil nil)
call-interactively(query-replace-regexp)
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Default history does not work with Lisp regexps,
David Kastrup <=