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: 12 Jun 2004 10:21:54 +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> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1087028570 30310 80.91.224.253 (12 Jun 2004 08:22:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Jun 2004 08:22:50 +0000 (UTC) Cc: Juri Linkov , teirllm@dms.auburn.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Jun 12 10:22:44 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 1BZ3mm-0002tr-00 for ; Sat, 12 Jun 2004 10:22:44 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BZ3mm-0003j6-00 for ; Sat, 12 Jun 2004 10:22:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BZ3nY-0002Dz-A4 for emacs-devel@quimby.gnus.org; Sat, 12 Jun 2004 04:23:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BZ3nQ-0002Da-2U for emacs-devel@gnu.org; Sat, 12 Jun 2004 04:23:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BZ3nP-0002DO-JJ for emacs-devel@gnu.org; Sat, 12 Jun 2004 04:23:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BZ3nP-0002DE-EX for emacs-devel@gnu.org; Sat, 12 Jun 2004 04:23:23 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BZ3m7-0004rj-3N for emacs-devel@gnu.org; Sat, 12 Jun 2004 04:22:03 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1BZ3lz-0000eA-RP; Sat, 12 Jun 2004 04:21:56 -0400 Original-To: rms@gnu.org In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Lines: 25 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:24862 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24862 Richard Stallman writes: > How about typing a special key (say, `M-e', where "e" stands for > "eval" or "expression") in the second prompt for a replacement string > to switch it to expression reading mode, and after typing RET > to call `query-replace-regexp-eval' instead of `query-replace-regexp'. > Actually, this means typing: > > C-M-% from-string RET M-e to-expr RET > > This is rather obsure, and ad hoc. Well, I often have the case where I have to make this decision ad-hoc since I just notice that I started off with the wrong kind of replacement. > So it is probably harder to remember than M-x que TAB - TAB - TAB, > which works now and can be found systematically from the command > name. The ability to switch from one replacement to another does not preclude that. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum