From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: using lisp in replacement string Date: Wed, 24 Dec 2014 16:27:29 +0200 Message-ID: <549ACD51.300@yandex.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1419432045 12907 80.91.229.3 (24 Dec 2014 14:40:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Dec 2014 14:40:45 +0000 (UTC) To: Guido Van Hoecke , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 24 15:40:38 2014 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 1Y3n77-0001Tu-KM for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Dec 2014 15:40:37 +0100 Original-Received: from localhost ([::1]:48557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3n76-0002f8-PA for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Dec 2014 09:40:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3muW-0002vt-27 for help-gnu-emacs@gnu.org; Wed, 24 Dec 2014 09:27:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3muS-0007Vj-Q5 for help-gnu-emacs@gnu.org; Wed, 24 Dec 2014 09:27:36 -0500 Original-Received: from mail-wg0-x231.google.com ([2a00:1450:400c:c00::231]:35930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3muS-0007VY-Iq for help-gnu-emacs@gnu.org; Wed, 24 Dec 2014 09:27:32 -0500 Original-Received: by mail-wg0-f49.google.com with SMTP id n12so11385607wgh.22 for ; Wed, 24 Dec 2014 06:27:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=YDz7jOO8g6KCHSs7BxRrEcRq/rZE/5LUU7e6TqN+bTE=; b=lTlzB7/G+xr0vQ5PM0YOYKwQ4XAAUxMB+im5rKUDsoKKkLChrBZSlma4k07T5RIZ/8 y0mXhKWZ1Xbc31a/Z1MCAaxocw7o+r2yoQogZUYoNRsYUH4if6o/aOWsZoXu+6+LdAvt umiPY5B71kApOMQ62veM/3W9W/EpB4rvIeBPuIp6zyoDjbhN1FmLgA6Pt+h9bcShMdT6 Zgp0QpdY2UieR9svrwoliiWnuEqxZgF4FbOm5CbVUy2fHALVmZsf4BxoTww3pRW1qPto UIGhtljiUi6s3xiN2g0gbXoxMggXPxpAa9FH+N8twcSa52FGsOsX7B1eWcIBZJhT4MKw gJ8g== X-Received: by 10.180.83.42 with SMTP id n10mr22419290wiy.54.1419431251659; Wed, 24 Dec 2014 06:27:31 -0800 (PST) Original-Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id h8sm21370921wiy.17.2014.12.24.06.27.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Dec 2014 06:27:31 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Thunderbird/33.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::231 X-Mailman-Approved-At: Wed, 24 Dec 2014 09:40:20 -0500 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:101710 Archived-At: On 12/24/2014 04:25 PM, Guido Van Hoecke wrote: > (replace-regexp "|\\([^|]*\\)|" \\,(calc-eval \\1) nil (point-min)(point-max)) > but this causes Debugger entered--Lisp error: (void-variable \\) The second argument doesn't look like a string to me. Are you missing the quotes?