[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 ***
- Re: How to define a `multiple prompt' function?, (continued)
- Re: How to define a `multiple prompt' function?, Barry Margolin, 2008/09/03
- ps-print variables interactive setting (was: How to define a `multiple prompt' function?), Rodolfo Medina, 2008/09/03
- Re: ps-print variables interactive setting, Lennart Borgman (gmail), 2008/09/03
- Re: ps-print variables interactive setting, Andreas Politz, 2008/09/03
- `are-you-fine' function definition (was: ps-print variables interactive setting), Rodolfo Medina, 2008/09/04
- Re: `are-you-fine' function definition, Kevin Rodgers, 2008/09/04
- Message not available
- Re: `are-you-fine' function definition, Rodolfo Medina, 2008/09/06
- `y-or-n-p' function definition (was: `are-you-fine' function definition), Rodolfo Medina, 2008/09/06
- Re: `y-or-n-p' function definition, Nikolaj Schumacher, 2008/09/08
- ps-right-footer interactive setting (was: ps-print variables interactive setting), Rodolfo Medina, 2008/09/04
- Re: ps-right-footer interactive setting (was: ps-print variables interactive setting),
Barry Margolin <=
- Re: ps-right-footer interactive setting, Rodolfo Medina, 2008/09/05
- Re: ps-right-footer interactive setting, Chetan, 2008/09/05
- Re: ps-right-footer interactive setting, Rodolfo Medina, 2008/09/06
- A `my-ps-print-setting' function (was: ps-print variables interactive setting), Rodolfo Medina, 2008/09/07
- Re: A `my-ps-print-setting' function, Andreas Politz, 2008/09/07
- defchoice macro (was: A `my-ps-print-setting' function), Rodolfo Medina, 2008/09/07
Re: How to define a `multiple prompt' function?, Evans Winner, 2008/09/03