From xemacs-m  Tue Jul  8 07:44:42 1997
Received: from steadfast.teradyne.com (steadfast.teradyne.com [131.101.1.200])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id HAA29260
	for <xemacs-beta@xemacs.org>; Tue, 8 Jul 1997 07:44:42 -0500 (CDT)
Received: from engine.ecf.teradyne.com (engine.ecf.teradyne.com [131.101.192.6]) by steadfast.teradyne.com (8.7.1/8.7.1) with ESMTP id IAA22416 for <xemacs-beta@xemacs.org>; Tue, 8 Jul 1997 08:48:48 -0400 (EDT)
Received: from midnight.eng.ecf.teradyne.com (midnight.ecf.teradyne.com [131.101.192.49]) by engine.ecf.teradyne.com (8.7.1/8.7.1) with SMTP id OAA17143; Tue, 8 Jul 1997 14:44:07 +0200 (MET DST)
Received: by midnight.eng.ecf.teradyne.com (SMI-8.6/SMI-SVR4)
	id OAA25355; Tue, 8 Jul 1997 14:44:06 +0200
To: xemacs-beta@xemacs.org
Subject: Re: XEmacs internal corruption integer `0' plist -- test case
References: <m2k9jeppxm.fsf@altair.xemacs.org> <QQcvxt03404.199706281921@crystal.WonderWorks.COM> <m2zpsay0t2.fsf@altair.xemacs.org> <kigzpsatrzb.fsf@jagor.srce.hr> <19970628223549.33959@iria.mines.u-nancy.fr> <m2k9jdon1u.fsf@altair.xemacs.org> <kig4tah7hsp.fsf@jagor.srce.hr> <m2wwndmdpa.fsf@altair.xemacs.org> <rxs3eppq0oz.fsf@midnight.ecf.teradyne.com> <m2iuylwy1c.fsf@altair.xemacs.org>
X-Face: 4[iHdXiTu\V3u[~\I)<f9HC);%~nG8`oUqv#uzvs6=\V{AjN6Sn
 c/qi;YLwRmEbt8Y*=j5n(urqY@chPh@J'D"QlqD!C8>*}#kYF[-tYl3VZga/HSOP|K,{L
 Rtu@f0y/=O&Cu}\:~d|P$JON?pn?j,&CnPb1z#/TL9bkAJwyol&a:SvYj-VYbM=Dtxhk9
 =w|R6U3_;SH&B<Mfy6Q%#
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=ISO-8859-1
From: Adrian Aichner <aichner@ecf.teradyne.com>
Date: 08 Jul 1997 14:44:05 +0200
In-Reply-To: Steven L Baur's message of "08 Jul 1997 05:03:59 -0700"
Message-ID: <rxsvi2ln27e.fsf@midnight.ecf.teradyne.com>
Lines: 54
X-Mailer: Gnus v5.4.62/XEmacs 20.3(beta11) - "Stockholm"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by xemacs.org id HAA29270

>>>>> "sb" == Steven L Baur <steve@xemacs.org> writes:

    sb> The #'(lambda syntax is completely implemented in C so it is
    sb> equally good.  Better somewhat because it is easier to type.

Thanks for the insight.

    >> I have lpr-switches set via Customize:

    sb>  ...
    >> lpr-switches: * '(lambda nil (list "--nup=2" "--borders"
    >> "--fancy-header" (format "--header=%s" (buffer-name))))
    >> [State]: this option has been set and saved. (lisp) List of
    >> strings to pass as extra options for the printer program. * See
    >> `lpr-command'.  Parent groups: [Lpr]

    >> Should I rewrite this variable?

    sb> Try

    sb> '("--nup=2" "--borders" "--fancy-header" #'(lambda () (format
    sb> "--header=%s" (buffer-name))))

    sb> and see how that works.

    sb> [rereading the lpr-switches processing code ...]

    sb> Sigh.  Dumb blonde!  Dumb blonde!  I see the problem now.  Fix
    sb> definitely by beta13, hopefully by beta12.  The lpr-switches
    sb> processing (and ps-lpr-switches) doesn't handle bytecode
    sb> objects.  -- steve@calag.com baur Unsolicited commercial
    sb> e-mail will be billed at $250/message.

Actually, Steven, I lied. I have it working as:

 '(lpr-switches (quote ((lambda nil (list "--nup=2" "--borders" "--fancy-header" (format "--header=%s" (buffer-name)))))))

So I did'nt have to quote the lambda form, just the top-level list
which contains it. Doc says `lpr-switches' is a list of option
strings, source told me it supports lambdas as well--but, not quite it 
seems.

Thanks,

Adrian

-- 
                            Adrian Aichner
                        Applications Engineer
  Teradyne GmbH
  Semiconductor Test Group    Telephone +49/89/41861(0)-208
  Dingolfinger Strae 2       Fax       +49/89/41861-217
  D-81673 MNCHEN             E-mail    aichner@ecf.teradyne.com

