From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rodolfo Medina Newsgroups: gmane.emacs.help Subject: Re: ps-right-footer interactive setting Date: Fri, 05 Sep 2008 11:21:04 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <87wshqki5r.fsf_-_@gmail.com> References: <87ej42m64o.fsf@gmail.com> <87ej412cpw.fsf@gmail.com> <87aben37np.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220607716 13621 80.91.229.12 (5 Sep 2008 09:41:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Sep 2008 09:41:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 05 11:42:51 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KbXq0-0001Gy-TL for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Sep 2008 11:42:45 +0200 Original-Received: from localhost ([127.0.0.1]:52569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbXp1-0001X3-EG for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Sep 2008 05:41:43 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:2owtDF6muuQ3XKPw1x1GnwwtXSA= Original-Lines: 41 Original-NNTP-Posting-Host: 151.80.65.152 Original-X-Trace: news.sunsite.dk DXC=oR[ZXL7khB28NX=BCM0\c1YSB=nbEKnk; V`^KZl[Dm9<:AocXk=\=_4T7bXfBO; G:5KAib\KDO`h2m=c5DAkLCD<_gBWOI3KNB8LcEU]UPA3B3 Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:161950 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57293 Archived-At: Rodolfo Medina wrote: >> Now I'm working on the ps-right-footer variable. I wish to be prompted for >> a page number so that the variable is set to: >> >> (list ) >> >> . I did: >> >> (defun my-ps-right-footer () >> (interactive) >> (let ((my-page-number (read-number "page number? "))) >> (setq ps-print-footer t) >> (setq ps-right-footer (list 'my-page-number)) >> ) >> ) >> >> , but it doesn't work. Any suggestion? Barry Margolin writes: > It should be (list my-page number). Quoting prevents the variable from > being evaluated. Unfortunately it doesn't work either: (defun my-ps-right-footer () (interactive) (let ((my-page-number (read-number "page number? "))) (setq ps-print-footer t) (setq ps-right-footer (list my-page-number)) ) ) produces a ps print error. I can't find a solution. Thanks for furhter suggestions. Rodolfo