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


From: Chetan
Subject: Re: ps-right-footer interactive setting
Date: Fri, 05 Sep 2008 12:21:55 -0700
User-agent: Emacs Gnus

Rodolfo Medina <address@hidden> writes:

> Rodolfo Medina <address@hidden> 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 <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?
>
>
>
> Barry Margolin <address@hidden> 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
It is a postscript string...
(list (concat "(" (number-to-string my-page-number) ")"))


reply via email to

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