From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: Meta-code confusion Date: Mon, 13 Aug 2012 14:04:52 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA98268CCDA0@DAKIYA1.pegasus.local> References: <155DEC68569B714B86C2C7075F5EDA98268CCCBB@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1344866694 32577 80.91.229.3 (13 Aug 2012 14:04:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2012 14:04:54 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 13 16:04:54 2012 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 1T0vG7-0007CZ-K6 for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Aug 2012 16:04:43 +0200 Original-Received: from localhost ([::1]:51526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0vG6-0007T5-LT for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Aug 2012 10:04:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0vFw-0007Qn-Bj for help-gnu-emacs@gnu.org; Mon, 13 Aug 2012 10:04:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0vFt-0001Ls-Kf for help-gnu-emacs@gnu.org; Mon, 13 Aug 2012 10:04:32 -0400 Original-Received: from mailhost.shubertorg.com ([207.246.209.200]:32850 helo=webmail.shubertorg.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0vFt-0001LZ-Gs for help-gnu-emacs@gnu.org; Mon, 13 Aug 2012 10:04:29 -0400 Original-Received: from dakiya1.pegasus.local ([::1]) by DAKIYA1.pegasus.local ([::1]) with mapi id 14.01.0339.001; Mon, 13 Aug 2012 10:04:53 -0400 Thread-Topic: Meta-code confusion Thread-Index: AQHNd0PnSqBA04+IQu6lBdkZpBjCxpdXydXw In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows XP/2000 (RFC1323+, w+, tstamp-) X-Received-From: 207.246.209.200 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:86328 Archived-At: > -----Original Message----- > From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.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 >=20 > In article , > Doug Lewan wrote: >=20 > > 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. >=20 > 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 >=20 > 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