unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Rodolfo Medina <rodolfo.medina@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: ps-right-footer interactive setting
Date: Sat, 06 Sep 2008 17:28:09 +0100	[thread overview]
Message-ID: <874p4tnsrq.fsf@gmail.com> (raw)
In-Reply-To: uej3y4cvg.fsf@myhost.sbcglobal.net

Rodolfo Medina <rodolfo.medina@gmail.com> writes:

>>>> 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 <barmar@alum.mit.edu> writes:

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



Rodolfo:

>> 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.




Chetan <Chet.xspam@xspam.sbcglobal.net> writes:

> It is a postscript string...
> (list (concat "(" (number-to-string my-page-number) ")"))



Thanks, this worked!
Rodolfo


  reply	other threads:[~2008-09-06 16:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-03  0:21 How to define a `multiple prompt' function? Rodolfo Medina
2008-09-03  4:08 ` Barry Margolin
2008-09-03 20:31   ` ps-print variables interactive setting (was: How to define a `multiple prompt' function?) Rodolfo Medina
2008-09-03 19:51     ` ps-print variables interactive setting Lennart Borgman (gmail)
2008-09-03 22:32     ` Andreas Politz
2008-09-04 17:24       ` `are-you-fine' function definition (was: ps-print variables interactive setting) Rodolfo Medina
2008-09-05  2:18         ` `are-you-fine' function definition Kevin Rodgers
     [not found]         ` <mailman.18482.1220581140.18990.help-gnu-emacs@gnu.org>
2008-09-06 16:27           ` Rodolfo Medina
2008-09-06 16:32             ` `y-or-n-p' function definition (was: `are-you-fine' function definition) Rodolfo Medina
2008-09-08 10:14               ` `y-or-n-p' function definition Nikolaj Schumacher
2008-09-04 21:47     ` ps-right-footer interactive setting (was: ps-print variables interactive setting) Rodolfo Medina
2008-09-05  1:19       ` Barry Margolin
2008-09-05 10:21         ` ps-right-footer interactive setting Rodolfo Medina
2008-09-05 19:21           ` Chetan
2008-09-06 16:28             ` Rodolfo Medina [this message]
2008-09-07 16:44     ` A `my-ps-print-setting' function (was: ps-print variables interactive setting) Rodolfo Medina
2008-09-07 19:40       ` A `my-ps-print-setting' function Andreas Politz
2008-09-08  1:18         ` defchoice macro (was: A `my-ps-print-setting' function) Rodolfo Medina
2008-09-03 19:43 ` How to define a `multiple prompt' function? Evans Winner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874p4tnsrq.fsf@gmail.com \
    --to=rodolfo.medina@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).