From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Guido Van Hoecke Newsgroups: gmane.emacs.help Subject: Re: using lisp in replacement string Date: Wed, 24 Dec 2014 15:40:53 +0100 Message-ID: References: <549ACD51.300@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1419432114 13952 80.91.229.3 (24 Dec 2014 14:41:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Dec 2014 14:41:54 +0000 (UTC) Cc: help-gnu-emacs To: Dmitry Gutov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 24 15:41:48 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 1Y3n8G-0001mx-B4 for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Dec 2014 15:41:48 +0100 Original-Received: from localhost ([::1]:48565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3n8F-00046i-IO for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Dec 2014 09:41:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3n7t-0003tU-Qj for help-gnu-emacs@gnu.org; Wed, 24 Dec 2014 09:41:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3n7s-0003bx-EK for help-gnu-emacs@gnu.org; Wed, 24 Dec 2014 09:41:25 -0500 Original-Received: from mail-vc0-x232.google.com ([2607:f8b0:400c:c03::232]:63973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3n7s-0003bm-9c for help-gnu-emacs@gnu.org; Wed, 24 Dec 2014 09:41:24 -0500 Original-Received: by mail-vc0-f178.google.com with SMTP id hq11so3078814vcb.37 for ; Wed, 24 Dec 2014 06:41:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=N2FxQdj/FhHUN7kPJ3eJXiJfybgRsp10h439vxzg7Kw=; b=imrMXjSVutu5aGeLnBySFJTHFfoBXUc8M0dw5ARg5Jn0lvqbPEG3R3Jp9UctYKt4Wa HT1Z2Rl8QsGNKmByLOEMfvrcETxyg5F87FnTaIvBGCz/6eRx3gbijZNIa0zol9mbSQ3a 4Z/c/8c+ItyexSnJE+ZqExKuVatbPrfoyWTOzMhCmbUlv6eMQ3u6+TDpB3kbtg7ZxKX2 Pds8khhXZToSOxDG6hOMpnqrkFb6c3kU6GKGBnDFYILtDxRt+K0UX3sojNbGbUFgDRzP HnHwg2YRv09P0e8VmkEWmS3GKb9I1xGZ6BDic8kb/4quYLCDwNpN8UpTJ/yFKO1lbvS2 Qhbw== X-Received: by 10.52.166.102 with SMTP id zf6mr11254842vdb.25.1419432083782; Wed, 24 Dec 2014 06:41:23 -0800 (PST) Original-Received: by 10.52.98.97 with HTTP; Wed, 24 Dec 2014 06:40:53 -0800 (PST) In-Reply-To: <549ACD51.300@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::232 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:101711 Archived-At: Hi Dimitry, On 24 December 2014 at 15:27, Dmitry Gutov wrote: > 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? > =E2=80=8BNot really, if you quote it, it replaces the formulas by the calc-= eval expression :( Guido=E2=80=8B