From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Query replace regex with 2 alternatives Date: Fri, 07 Dec 2012 21:19:00 +0100 Message-ID: <87vccd39aj.fsf@thinkpad.tsdh.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1354911567 31495 80.91.229.3 (7 Dec 2012 20:19:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2012 20:19:27 +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 21:19:40 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 1Th4OY-0001Lm-Lh for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Dec 2012 21:19:38 +0100 Original-Received: from localhost ([::1]:39296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th4OM-00047T-EZ for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Dec 2012 15:19:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th4OF-00047D-9L for help-gnu-emacs@gnu.org; Fri, 07 Dec 2012 15:19:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Th4OE-0007n5-9b for help-gnu-emacs@gnu.org; Fri, 07 Dec 2012 15:19:19 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:40417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th4OE-0007n0-3S for help-gnu-emacs@gnu.org; Fri, 07 Dec 2012 15:19:18 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Th4OL-00014T-TX for help-gnu-emacs@gnu.org; Fri, 07 Dec 2012 21:19:25 +0100 Original-Received: from 91-67-10-84-dynip.superkabel.de ([91.67.10.84]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Dec 2012 21:19:25 +0100 Original-Received: from tsdh by 91-67-10-84-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Dec 2012 21:19:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 91-67-10-84-dynip.superkabel.de User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:YtCJSJNpPKd0trE7wGukpBk91OM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:88077 Archived-At: 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 \&) "<" "[" "]") Bye, Tassilo