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 02:47:29 +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> <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 1087433276 18199 80.91.224.253 (17 Jun 2004 00:47:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 Jun 2004 00:47:56 +0000 (UTC) Cc: schwab@suse.de, storm@cua.dk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jun 17 02:47:48 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 1Bal4G-00036X-00 for ; Thu, 17 Jun 2004 02:47:48 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bal4G-0003GB-00 for ; Thu, 17 Jun 2004 02:47:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bal5H-00061w-Ae for emacs-devel@quimby.gnus.org; Wed, 16 Jun 2004 20:48:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bal5E-00061h-8c for emacs-devel@gnu.org; Wed, 16 Jun 2004 20:48:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bal5D-00061V-NR for emacs-devel@gnu.org; Wed, 16 Jun 2004 20:48:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bal5D-00061S-KD for emacs-devel@gnu.org; Wed, 16 Jun 2004 20:48:47 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bal40-0003Cw-2Z for emacs-devel@gnu.org; Wed, 16 Jun 2004 20:47:32 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Bal3z-0007N0-3k; Wed, 16 Jun 2004 20:47:31 -0400 Original-To: Juri Linkov In-Reply-To: Original-Lines: 34 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:25052 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25052 David Kastrup writes: > Juri Linkov writes: > > > I tested the latest version. All works fine except one thing: > > removing the space after the \, expression is a really bad thing. > > This is too unnatural and produces unexpected results. > > > > The space definitely shouldn't be removed after the closing paren > > (it doesn't need the space to enclose the expression). And I > > think it shouldn't be removed after variable names too. In cases > > where a variable name is not separated from the following text, > > users can use additional separators like parentheses with a no-op > > function. > > xxx\(\) is a single word to the Lisp reader, unfortunately. If you > can come up with a good no-op string to put into the DOC string, I'm > willing to let the space go. But anything starting with a backslash > is out since it will become part of preceding identifiers. > > And I feel that "\{0\} is decidedly too ugly an idiom for a DOC > string. There must be something nicer, right? And "\{0\} does not work anyway, since we are talking about the replacement string, not the matching string. Brain was off. In the replacement string, there is _absolutely_ nothing that could end an identifier without impact. So there is no way around the reader except using \,(or identifier), at least as far as I can see. Which is probably what you meant, anyway. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum