From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: Query replace regex with 2 alternatives Date: Fri, 07 Dec 2012 16:32:10 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1354916114 4801 80.91.229.3 (7 Dec 2012 21:35:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2012 21:35:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 07 22:35:28 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Th5Zt-00071j-PZ for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Dec 2012 22:35:25 +0100 Original-Received: from localhost ([::1]:55521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th5Zh-0004z0-JF for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Dec 2012 16:35:13 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.arglkargh.de!easy.in-chemnitz.de!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Injection-Info: mx04.eternal-september.org; posting-host="960b39603e44c0554faedf0065e3beaf"; logging-data="3717"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193FTbr76wFmsJo5+wrGq+jnGK5ex/MT+E=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) Cancel-Lock: sha1:9SMLPg7ibcQxUd0Os/Hc9QVKTY0= sha1:b9zhwt5/9aUPmdpanV2RK49p/Fg= Original-Xref: usenet.stanford.edu gnu.emacs.help:195756 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88080 Archived-At: Tassilo Horn writes: > Dan Espen writes: > >>> Or maybe this is what you mean: >>> >>> <\|> >>> Replace with: >>> \,(if (string-equal \& "<" "[" "]")) >> >> This is what I was asking for. >> I pasted both values into emacs and the latter part gave me an >> error, (wrong-number-of-arguments if 1). > > A paren is wrong. It has to be > > \,(if (string-equal \&) "<" "[" "]") And now, all of a sudden it penetrates my thick head. Thanks again. -- Dan Espen