emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Dauer <mick.dauer@gmail.com>
To: Michael Dauer <mick.dauer@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: BUG: eval macros not working anymore
Date: Tue, 25 May 2021 13:55:00 +0200	[thread overview]
Message-ID: <CAP7OBxJ8s00c5TBVqhhAi2yXj75Ptfn3OeFEnnQNOg2mJYPYXg@mail.gmail.com> (raw)
In-Reply-To: <87a6oj6uqu.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

How do you do this with a #+macro keyword with arguments?

The old implementation checked the string for a "(eval" prefix.

Nicolas Goaziou <mail@nicolasgoaziou.fr> schrieb am Di., 25. Mai 2021,
11:14:

> Hello,
>
> Michael Dauer <mick.dauer@gmail.com> writes:
>
> > at least not compatible with before.
> >
> > Probably caused by commit 8abdbbee395f284f2262a89187d662eaf40080b1.
> >
> > originally correct macro ("macroA" . "(eval
> > do-something-dynamically-at-macro-expansion)")
> >
> > How should this be achieved now? (functionp "any-string") is nil
>
> I think you need to write
>
>   ("macroA" . (lambda (&rest _)
> (do-something-dynamically-at-macro-expansion)))
>
> Regards,
> --
> Nicolas Goaziou
>

[-- Attachment #2: Type: text/html, Size: 1244 bytes --]

  reply	other threads:[~2021-05-25 12:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-24 16:42 BUG: eval macros not working anymore Michael Dauer
2021-05-25  9:14 ` Nicolas Goaziou
2021-05-25 11:55   ` Michael Dauer [this message]
2021-05-25 15:51     ` Nicolas Goaziou
2021-05-25 18:32       ` Michael Dauer
2021-05-26 18:37         ` Michael Dauer

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAP7OBxJ8s00c5TBVqhhAi2yXj75Ptfn3OeFEnnQNOg2mJYPYXg@mail.gmail.com \
    --to=mick.dauer@gmail.com \
    --cc=emacs-orgmode@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).