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, 18 Jun 2004 09:55:07 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87brjhwe2c.fsf@mail.jurta.org> References: <20040528.181649.25475113.wl@gnu.org> <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> <87hdtbtnsg.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 1087541958 28098 80.91.224.253 (18 Jun 2004 06:59:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Jun 2004 06:59:18 +0000 (UTC) Cc: David Kastrup , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jun 18 08:59:07 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 1BbDL9-0003jm-00 for ; Fri, 18 Jun 2004 08:59:07 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BbDL9-00028s-00 for ; Fri, 18 Jun 2004 08:59:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BbDME-00074p-Fo for emacs-devel@quimby.gnus.org; Fri, 18 Jun 2004 03:00:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BbDMB-00074c-Mt for emacs-devel@gnu.org; Fri, 18 Jun 2004 03:00:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BbDM9-00073L-5p for emacs-devel@gnu.org; Fri, 18 Jun 2004 03:00:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BbDM9-00073E-2o for emacs-devel@gnu.org; Fri, 18 Jun 2004 03:00:09 -0400 Original-Received: from [66.33.219.4] (helo=spork.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BbDKm-0000oE-9i; Fri, 18 Jun 2004 02:58:44 -0400 Original-Received: from mail.jurta.org (80-235-34-90-dsl.mus.estpak.ee [80.235.34.90]) by spork.dreamhost.com (Postfix) with ESMTP id 9554211DC0C; Thu, 17 Jun 2004 23:58:41 -0700 (PDT) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Thu, 17 Jun 2004 19:05:51 -0400") 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:25073 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25073 Richard Stallman writes: > Using a space to end a variable name after `\,' is a clean solution. Using a space is fine, but not deleting it. When the user wants to get a replacement like "value text" with the space in it and writes the replacement expression "\,variable text", and Emacs eats the space character and produces the replacement "valuetext", this might be too annoying. Instead of deleting the space, in cases where the user DON'T want a space between a variable value and the followed text, he can add separators like the close paren in "\,(or variable)text". If such cases where users don't want a space are really too frequent, we might find more complicated solution like for example, reading from "\,variabletext" the whole symbol "variabletext" and chopping characters from the end of the symbol: "variabletex", "variablete", etc. and checking with `boundp' until we find a bound symbol. This works for all variables except locally bound in `perform-replace' and `replace-eval-replacement'. But the most frequently used local variable is `replace-count' which now has a special symbol \#, so this is not a big problem. -- Juri Linkov http://www.jurta.org/emacs/