From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Default history does not work with Lisp regexps Date: 01 Aug 2004 13:59:03 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091361769 9445 80.91.224.253 (1 Aug 2004 12:02:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Aug 2004 12:02:49 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 01 14:02:42 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BrF34-0000aE-00 for ; Sun, 01 Aug 2004 14:02:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BrF6P-00012c-58 for ged-emacs-devel@m.gmane.org; Sun, 01 Aug 2004 08:06:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BrF5N-0000Ym-SM for emacs-devel@gnu.org; Sun, 01 Aug 2004 08:05:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BrF4C-0008N3-K2 for emacs-devel@gnu.org; Sun, 01 Aug 2004 08:03:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BrF3x-0008ER-6N for emacs-devel@gnu.org; Sun, 01 Aug 2004 08:03:37 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BrEzZ-0004AM-7k for emacs-devel@gnu.org; Sun, 01 Aug 2004 07:59:05 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1BrEzY-000148-Ch for emacs-devel@gnu.org; Sun, 01 Aug 2004 07:59:04 -0400 Original-To: emacs-devel@gnu.org Original-Lines: 33 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26134 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26134 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 ] + \ , ( 1 + SPC \ # & ) q C-M-% y M-x r e p o r t - e 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 #)) 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