emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: query-replace-interactive not documented


From: David Kastrup
Subject: Re: query-replace-interactive not documented
Date: 21 Jun 2004 11:38:05 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Richard Stallman <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]