From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Windows port: using Windows' default printer Date: 21 Sep 2003 15:51:01 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: 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 1064174041 29881 80.91.224.253 (21 Sep 2003 19:54:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Sep 2003 19:54:01 +0000 (UTC) Cc: peter@runestig.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Sep 21 21:53:59 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 1A1AHP-00054q-00 for ; Sun, 21 Sep 2003 21:53:59 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A1AMt-0007cG-00 for ; Sun, 21 Sep 2003 21:59:39 +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 1A1AFD-0007tF-C8 for emacs-devel@quimby.gnus.org; Sun, 21 Sep 2003 15:51:43 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A1AEs-0007ql-MY for emacs-devel@gnu.org; Sun, 21 Sep 2003 15:51:22 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A1AEp-0007q9-9T for emacs-devel@gnu.org; Sun, 21 Sep 2003 15:51:21 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1AEp-0007q0-1f for emacs-devel@gnu.org; Sun, 21 Sep 2003 15:51:19 -0400 Original-Received: from vor.iro.umontreal.ca (vor.iro.umontreal.ca [132.204.24.42]) by mercure.iro.umontreal.ca (8.12.9/8.12.9) with ESMTP id h8LJp1HD032701; Sun, 21 Sep 2003 15:51:02 -0400 Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id 587353C547; Sun, 21 Sep 2003 15:51:01 -0400 (EDT) Original-To: Eli Zaretskii In-Reply-To: <8011-Sun21Sep2003151918+0300-eliz@elta.co.il> Original-Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-MailScanner-DIRO: Found to be clean 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:16534 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16534 >> 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=C3=B4, Stefan