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: Re: query-replace-interactive not documented Date: 17 Jun 2004 16:56:35 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040528.181649.25475113.wl@gnu.org> <200405291737.i4THbPJ06689@raven.dms.auburn.edu> <873c5jug73.fsf@mail.jurta.org> <87oenqa4lu.fsf@mail.jurta.org> <873c51w5rq.fsf@mail.jurta.org> <87659snbd8.fsf@mail.jurta.org> <87llin98sc.fsf@mail.jurta.org> <87n033y0yj.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1087484223 4573 80.91.224.253 (17 Jun 2004 14:57:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 Jun 2004 14:57:03 +0000 (UTC) Cc: Juri Linkov , schwab@suse.de, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jun 17 16:56:52 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BayJv-0004Cj-00 for ; Thu, 17 Jun 2004 16:56:51 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BayJv-0005tE-00 for ; Thu, 17 Jun 2004 16:56:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BayKy-0003CZ-NF for emacs-devel@quimby.gnus.org; Thu, 17 Jun 2004 10:57:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BayKv-0003CT-MW for emacs-devel@gnu.org; Thu, 17 Jun 2004 10:57:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BayKv-0003CH-7m for emacs-devel@gnu.org; Thu, 17 Jun 2004 10:57:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BayKv-0003CE-5U for emacs-devel@gnu.org; Thu, 17 Jun 2004 10:57:53 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BayJi-0000w4-Cj for emacs-devel@gnu.org; Thu, 17 Jun 2004 10:56:38 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1BayJg-0004KN-L0; Thu, 17 Jun 2004 10:56:37 -0400 Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: 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.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25062 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25062 David Kastrup writes: > Ok, I just redid this. I have completely thrown out \\? again: if > one wanted to implement it, the right place would not be in > preparing the replacement list where \, is implemented, but rather > during perform-replace. > > This will give the context (so we don't need prompt strings), it > will be flexible and convenient. Any volunteer to put this is? I'll take another look, maybe it's not difficult. > Anyway, I fixed what I posted last night, removed the skip of the > optional space (the most prominent use would have been > \,replace-count, and there is a shorthand for that by now) and added > documentation strings. If nobody protests, I'll check in the > following patch. It also removes \n \t warnings where they are > nonsensical. I have checked in that change now. While I have not given much of a time for protests, I want to have a starting point for thinking about \?. I have not done any manual and NEWS entries yet but would want to have a few more days for people to protest. In my book, this added functionality pretty much kills the main motivation for query-replace-regexp-eval, except maybe that the latter could offer lisp-mode in the replacement string, to give identifier completion and stuff (which I don't think it does currently). But I don't think that it warrants a keybinding of its own anymore, now that \, is in place. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum