From: David Kastrup <dak@gnu.org>
Subject: Default history does not work with Lisp regexps
Date: 01 Aug 2004 13:59:03 +0200 [thread overview]
Message-ID: <x51xir6pdk.fsf@lola.goethe.zz> (raw)
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
next reply other threads:[~2004-08-01 11:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-01 11:59 David Kastrup [this message]
2004-08-01 13:00 ` Default history does not work with Lisp regexps David Kastrup
2004-08-01 22:39 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x51xir6pdk.fsf@lola.goethe.zz \
--to=dak@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).