emacs-devel
[Top][All Lists]
Advanced

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

Re: Search nodes in Emacs manual


From: Juri Linkov
Subject: Re: Search nodes in Emacs manual
Date: Sat, 19 Jun 2004 21:42:44 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

David Kastrup <address@hidden> writes:
> Juri Linkov <address@hidden> writes:
>> But perhaps with the latest changes this example can be replaced
>> with more advanced like this:
>> 
>>     M-x replace-regexp <RET> \(x\|y\) <RET> \,(if (equal \& "x") "y"
>>     "x") <RET>
>
> Cute.  Of course \(x\|y\) is shorter as [xy]

I intended to make it as an example of exchanging words which might
be more useful than exchanging characters.  So that example
could be rewritten as something like below, and be placed into
(info "(emacs)Regexp Replace") instead of the current
(info "(emacs)Unconditional Replace"), or to the same node
where you might document this new feature.

  M-x replace-regexp <RET> \(ab\|cd\) <RET>
                           \,(if (equal \& "ab") "cd" "ab") <RET>

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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