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: 21 Jun 2004 11:38:05 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: 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> <87brjhwe2c.fsf@mail.jurta.org> Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BcLG0-0003Wz-00 for ; Mon, 21 Jun 2004 11:38:28 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BcLFz-0006hP-00 for ; Mon, 21 Jun 2004 11:38:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BcLHE-00025y-Sc for emacs-devel@quimby.gnus.org; Mon, 21 Jun 2004 05:39:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BcLHC-00025l-C2 for emacs-devel@gnu.org; Mon, 21 Jun 2004 05:39:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BcLHB-00025O-JG for emacs-devel@gnu.org; Mon, 21 Jun 2004 05:39:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BcLHB-00025L-HL for emacs-devel@gnu.org; Mon, 21 Jun 2004 05:39:41 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BcLFm-0003s1-8H for emacs-devel@gnu.org; Mon, 21 Jun 2004 05:38:14 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1BcLFf-0001c3-8L; Mon, 21 Jun 2004 05:38:07 -0400 Original-To: rms@gnu.org In-Reply-To: Original-Lines: 22 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:25145 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25145 Richard Stallman writes: > > I left out the part about `\\#&' and `\\#N' because I don't > > understand what they do. I am not sure what "respective numeric > > values" means. When I tried \#&, it seemed to insert the > > replacement count followed by an &. > > Not _within_ a Lisp expression, namely something like > \,(format "%d %d" \#& \#2). And if you had a match like > \([0-9]+\), then you can do arithmetic on it with something like > \,(1+ \#1). > > I have a general idea now, but, what's the difference in meaning > between \#& and \&? Between \#N and \N? \#& is short for (number-to-string \&). There is no real difference between \,(\#&) and \,(\&) since the result is used with prin1-to-string, but \,(1+ \&) would throw an error. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum