From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: query-replace-interactive not documented Date: Fri, 11 Jun 2004 11:19:57 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87oenqa4lu.fsf@mail.jurta.org> References: <20040528.181649.25475113.wl@gnu.org> <200405291737.i4THbPJ06689@raven.dms.auburn.edu> <873c5jug73.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 1086942631 22939 80.91.224.253 (11 Jun 2004 08:30:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Jun 2004 08:30:31 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jun 11 10:30:26 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 1BYhQg-00089a-00 for ; Fri, 11 Jun 2004 10:30:26 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BYhQg-0001kS-00 for ; Fri, 11 Jun 2004 10:30:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BYhRP-0000u4-HU for emacs-devel@quimby.gnus.org; Fri, 11 Jun 2004 04:31:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BYhQo-0000fQ-4E for emacs-devel@gnu.org; Fri, 11 Jun 2004 04:30:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BYhQm-0000en-CT for emacs-devel@gnu.org; Fri, 11 Jun 2004 04:30:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BYhQm-0000ed-AI for emacs-devel@gnu.org; Fri, 11 Jun 2004 04:30:32 -0400 Original-Received: from [66.33.219.19] (helo=spoon.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BYhPp-0002Mj-6V; Fri, 11 Jun 2004 04:29:33 -0400 Original-Received: from mail.jurta.org (80-235-36-27-dsl.mus.estpak.ee [80.235.36.27]) by spoon.dreamhost.com (Postfix) with ESMTP id 46EA913D875; Fri, 11 Jun 2004 01:29:30 -0700 (PDT) Original-To: Luc Teirlinck In-Reply-To: <873c5jug73.fsf@mail.jurta.org> (Juri Linkov's message of "Sat, 29 May 2004 23:33:04 +0300") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) 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:24817 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24817 Juri Linkov writes: > What should be documented in the Emacs manual is a very useful command > `query-replace-regexp-eval'. It even deserves its own keybinding. > But if there are no spare keybindings for it, then perhaps it could be > invoked by a prefix arg of `query-replace-regexp' like e.g. C-u C-M-% ? I don't want to abandon the attempt to make this useful command more accessible. 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 -- Juri Linkov http://www.jurta.org/emacs/