all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Quoting of macros with eval
@ 2018-12-11 10:08 Jens Lechtenboerger
  2018-12-11 16:30 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Jens Lechtenboerger @ 2018-12-11 10:08 UTC (permalink / raw)
  To: emacs-orgmode

Hi there,

given a macro like

#+MACRO: foo (eval (message "%s" $1))

I need to call {{{foo("text")}}} with Org mode 9.1.14-9-g131531-elpa.

On the master branch, that call will include the quotation marks as
part of the string, so I need to call {{{foo(text)}}} (documented in
the manual, but I didn’t notice that until now).

Could the master branch offer backward compatible functionality,
please?  I’m thinking about checking for and removing leading and
trailing quotation marks...

Best wishes
Jens

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Quoting of macros with eval
  2018-12-11 10:08 Quoting of macros with eval Jens Lechtenboerger
@ 2018-12-11 16:30 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2018-12-11 16:30 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Jens Lechtenboerger <lechten@wi.uni-muenster.de> writes:

> Hi there,
>
> given a macro like
>
> #+MACRO: foo (eval (message "%s" $1))
>
> I need to call {{{foo("text")}}} with Org mode 9.1.14-9-g131531-elpa.
>
> On the master branch, that call will include the quotation marks as
> part of the string, so I need to call {{{foo(text)}}} (documented in
> the manual, but I didn’t notice that until now).
>
> Could the master branch offer backward compatible functionality,
> please?  I’m thinking about checking for and removing leading and
> trailing quotation marks...

A simple function replacing such occurrences should be easy to write.
I suggest to do that.

It is in "Incompatible changes" for a reason :)

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-11 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-11 10:08 Quoting of macros with eval Jens Lechtenboerger
2018-12-11 16:30 ` Nicolas Goaziou

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.