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

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

Re: [h-e-w] Adding to ps-print-hook problems


From: Dr Francis J. Wright
Subject: Re: [h-e-w] Adding to ps-print-hook problems
Date: Tue, 17 Sep 2002 10:41:11 +0100

Also, I think that standard hook functions cannot take any arguments, which
is probably what caused the original error message.

Francis

----- Original Message -----
From: "David Vanderschel" <address@hidden>
To: <address@hidden>
Sent: Monday, September 16, 2002 8:20 PM
Subject: Re: [h-e-w] Adding to ps-print-hook problems


> On Monday, September 16, "Jeff Rancier" <address@hidden>
wrote:
> >Hi all.  I wanted to create a simple function to prompt me for the n-up
> >number of pages to print when I run the function,
> >ps-print-buffer-with-faces.  Here's what I came up with:
>
> >(defun jbr-ps-print-n-up-hook (number-of-pages)
> >  (interactive "nN-up number of pages: ")
> >  (setq ps-n-up-printing number-of-pages))
>
> >(add-hook 'ps-print-hook 'jbr-ps-print-n-up-hook)
>
> I think the problem is that you are _not_ invoking it
> interactively, so the interaction does not work right.
> I'd suggest dropping the call to "interactive", using
> the "message" function for the prompt, and explicitly
> reading input.  You could also write your own function
> to substitute for (whichever) ps-print and it could be
> interactive.
>
> Regard,
>   David V.
>
>
>





reply via email to

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