From: Guido Van Hoecke <guivho@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: using lisp in replacement string
Date: Wed, 24 Dec 2014 15:40:53 +0100 [thread overview]
Message-ID: <CAEySM9En0u9pxNPgjSA7s+RGf8-bZQJ-wAEn-g5wKoyyuCYUUA@mail.gmail.com> (raw)
In-Reply-To: <549ACD51.300@yandex.ru>
Hi Dimitry,
On 24 December 2014 at 15:27, Dmitry Gutov <dgutov@yandex.ru> 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?
>
Not really, if you quote it, it replaces the formulas by the calc-eval
expression :(
Guido
next prev parent reply other threads:[~2014-12-24 14:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-24 14:25 using lisp in replacement string Guido Van Hoecke
2014-12-24 14:27 ` Dmitry Gutov
2014-12-24 14:40 ` Guido Van Hoecke [this message]
2014-12-24 14:52 ` Dmitry Gutov
[not found] ` <CAEySM9GB6z1yBJSy8AzwN4a6LK4KRQBYQZ2-fZRDtmQ0XTCYng@mail.gmail.com>
2014-12-24 16:25 ` Guido Van Hoecke
[not found] ` <mailman.16678.1419438348.1147.help-gnu-emacs@gnu.org>
2014-12-24 16:43 ` Barry Margolin
2014-12-24 21:36 ` ronaldo.mercado
2014-12-24 14:56 ` Nicolas Richard
2014-12-25 9:25 ` Andreas Röhler
2014-12-25 11:50 ` Guido Van Hoecke
[not found] <mailman.16672.1419431131.1147.help-gnu-emacs@gnu.org>
2014-12-29 4:40 ` Emanuel Berg
2014-12-29 17:55 ` Guido Van Hoecke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEySM9En0u9pxNPgjSA7s+RGf8-bZQJ-wAEn-g5wKoyyuCYUUA@mail.gmail.com \
--to=guivho@gmail.com \
--cc=dgutov@yandex.ru \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.