[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Meta-code confusion
From: |
Doug Lewan |
Subject: |
RE: Meta-code confusion |
Date: |
Mon, 13 Aug 2012 14:04:52 +0000 |
> -----Original Message-----
> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
> Behalf Of Barry Margolin
> Sent: Friday, 2012 August 10 18:03
> To: help-gnu-emacs@gnu.org
> Subject: Re: Meta-code confusion
>
> In article <mailman.6744.1344634688.855.help-gnu-emacs@gnu.org>,
> Doug Lewan <dougl@shubertticketing.com> wrote:
>
> > The current work-around is to build a string that looks right and
> then (eval
> > (read THAT-STRING)) and let the results of that be the return value.
>
> That's almost always the wrong thing. Rather than that, you should
> build a list (probably using backquote to fill in a template) and then
> (eval THAT-LIST).
I suspected that. It's certainly not a satisfying solution
>
> But more likely, you probably need to define your own macro rather than
> a function.
And I do suppose that this would be more correct (and satisfying). I'm not
fluent in macros and try to avoid them, but maybe the time has come....
Thanks for the advice.
,Doug