From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Peter 'Luna' Runestig" Newsgroups: gmane.emacs.devel Subject: Re: Windows port: using Windows' default printer Date: Tue, 23 Sep 2003 18:28:56 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3F7074C8.5010206@runestig.com> References: <3E54D5AA.4000805@runestig.com> <3E55CCC0.5050408@runestig.com> <8011-Sun21Sep2003151918+0300-eliz@elta.co.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1064334795 9567 80.91.224.253 (23 Sep 2003 16:33:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2003 16:33:15 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Sep 23 18:33:13 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A1q6D-0002HD-00 for ; Tue, 23 Sep 2003 18:33:13 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A1qCY-0001S3-00 for ; Tue, 23 Sep 2003 18:39:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1q33-00054R-Id for emacs-devel@quimby.gnus.org; Tue, 23 Sep 2003 12:29:57 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A1q2n-00051j-LK for emacs-devel@gnu.org; Tue, 23 Sep 2003 12:29:41 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A1q2l-000515-IG for emacs-devel@gnu.org; Tue, 23 Sep 2003 12:29:40 -0400 Original-Received: from [62.108.199.166] (helo=arthur.runestig.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.22) id 1A1q2k-000504-H3 for emacs-devel@gnu.org; Tue, 23 Sep 2003 12:29:38 -0400 Original-Received: from runestig.com (h20n2fls34o823.telia.com [217.208.10.20]) by arthur.runestig.com (8.12.10/8.12.1) with ESMTP id h8NGTTgg023842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Sep 2003 18:29:31 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030809 X-Accept-Language: en-us, en Original-To: Stefan Monnier In-Reply-To: X-MIME-Autoconverted: from 8bit to quoted-printable by arthur.runestig.com id h8NGTTgg023842 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16578 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16578 On 2003-09-21 21:51, Stefan Monnier wrote: >>> is fine as well, but I wish that the use of default-printer-name coul= d be >>> confined to a single spot (in Unix, it's in `lpr' so Emacs doesn't kn= ow >>> about it). We probably need to create a function that either calls `= lpr' >>> or calls windows' printing code (using default-printer-name if necess= ary) >>> and then have both lpr.el and ps-print.el use this function. >=20 >> 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. >=20 > 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=C3=B4, 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'. --=20 Peter 'Luna' Runestig (fd. Altberg), Sweden 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