emacs-devel
[Top][All Lists]
Advanced

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

Re: Windows port: using Windows' default printer


From: Peter 'Luna' Runestig
Subject: Re: Windows port: using Windows' default printer
Date: Tue, 23 Sep 2003 18:28:56 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030809

On 2003-09-21 21:51, Stefan Monnier wrote:
>>> is fine as well, but I wish that the use of default-printer-name could be
>>> confined to a single spot (in Unix, it's in `lpr' so Emacs doesn't know
>>> about it).  We probably need to create a function that either calls `lpr'
>>> or calls windows' printing code (using default-printer-name if necessary)
>>> and then have both lpr.el and ps-print.el use this function.
> 
>> If I understand you correctly, we already have such a function in
>> lpr.el: it's `print-region-function'.  dos-w32.el defines it for the
>> Windows and the DOS ports.
> 
> Does ps-print.el use it ?
> If so, great, we just need to add the `default-printer-name' stuff
> to it and be done with Itô,

Isn't this what my patch does?

dos-w32.el: Add `default-printer-name' stuff to
`direct-print-region-function' and `direct-ps-print-region-function'.

I also tampered with the following files, but maybe that isn't necessary:

lpr.el: Add `default-printer-name' stuff to `print-region-1'.
ps-print.el: Add `default-printer-name' stuff to `ps-do-despool'.
play/handwrite.el: Add `default-printer-name' stuff to `handwrite'.


-- 
Peter 'Luna' Runestig (fd. Altberg), Sweden <address@hidden>
PGP Key ID: 0xD07BBE13
Fingerprint: 7B5C 1F48 2997 C061 DE4B  42EA CB99 A35C D07B BE13
AOL Instant Messenger Screen name: PRunestig
Yahoo! Messenger profile name: altberg





reply via email to

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