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: Search nodes in Emacs manual Date: Sat, 19 Jun 2004 21:42:44 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87oenfo0d7.fsf@mail.jurta.org> References: <87acz01wxi.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 1087670707 16975 80.91.224.253 (19 Jun 2004 18:45:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 Jun 2004 18:45:07 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Jun 19 20:45:02 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 1Bbkpp-0005PE-00 for ; Sat, 19 Jun 2004 20:45:01 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bbkpp-0007rW-00 for ; Sat, 19 Jun 2004 20:45:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bbkqz-0008Ct-9v for emacs-devel@quimby.gnus.org; Sat, 19 Jun 2004 14:46:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bbkqw-0008CK-5B for emacs-devel@gnu.org; Sat, 19 Jun 2004 14:46:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bbkqv-0008Bn-1k for emacs-devel@gnu.org; Sat, 19 Jun 2004 14:46:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bbkqu-0008Bd-Tc for emacs-devel@gnu.org; Sat, 19 Jun 2004 14:46:08 -0400 Original-Received: from [66.33.219.6] (helo=knife.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bbkpd-0006qK-U2; Sat, 19 Jun 2004 14:44:50 -0400 Original-Received: from mail.jurta.org (80-235-35-146-dsl.mus.estpak.ee [80.235.35.146]) by knife.dreamhost.com (Postfix) with ESMTP id A5791E40FF; Sat, 19 Jun 2004 11:44:47 -0700 (PDT) Original-To: David Kastrup In-Reply-To: (David Kastrup's message of "18 Jun 2004 23:46:28 +0200") 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:25111 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25111 David Kastrup writes: > Juri Linkov writes: >> But perhaps with the latest changes this example can be replaced >> with more advanced like this: >> >> M-x replace-regexp \(x\|y\) \,(if (equal \& "x") "y" >> "x") > > 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 \(ab\|cd\) \,(if (equal \& "ab") "cd" "ab") -- Juri Linkov http://www.jurta.org/emacs/