help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ps-right-footer interactive setting (was: ps-print variables interac


From: Barry Margolin
Subject: Re: ps-right-footer interactive setting (was: ps-print variables interactive setting)
Date: Thu, 04 Sep 2008 21:19:53 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <87aben37np.fsf@gmail.com>,
 Rodolfo Medina <rodolfo.medina@gmail.com> wrote:

> Rodolfo Medina <rodolfo.medina@gmail.com> writes:
> 
> > I wish to set some ps-print variables in an interactive way, i.e. be
> > prompted for the value that I want to set.
> 
> 
> 
> 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 <page number>)
> 
> .  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?
> 
> Thanks
> Rodolfo

It should be (list my-page number).  Quoting prevents the variable from 
being evaluated.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


reply via email to

[Prev in Thread] Current Thread [Next in Thread]