From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: Windows port: using Windows' default printer Date: Sun, 21 Sep 2003 15:19:19 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <8011-Sun21Sep2003151918+0300-eliz@elta.co.il> References: <3E54D5AA.4000805@runestig.com> <3E55CCC0.5050408@runestig.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1064147050 25191 80.91.224.253 (21 Sep 2003 12:24:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Sep 2003 12:24:10 +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 14:24:07 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 1A13G3-0004kd-00 for ; Sun, 21 Sep 2003 14:24:07 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A13LP-000622-00 for ; Sun, 21 Sep 2003 14:29: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 1A13F0-00020f-W0 for emacs-devel@quimby.gnus.org; Sun, 21 Sep 2003 08:23:02 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A13Es-00020S-Cd for emacs-devel@gnu.org; Sun, 21 Sep 2003 08:22:54 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A13Eq-00020F-Ve for emacs-devel@gnu.org; Sun, 21 Sep 2003 08:22:53 -0400 Original-Received: from [192.114.186.22] (helo=gollum.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A13Eq-00020C-FT for emacs-devel@gnu.org; Sun, 21 Sep 2003 08:22:52 -0400 Original-Received: from zaretski (pns03-196-39.inter.net.il [80.230.196.39]) by gollum.inter.net.il (Mirapoint Messaging Server MOS 3.3.6-GR) with ESMTP id BLX26138; Sun, 21 Sep 2003 15:22:39 +0300 (IDT) Original-To: "Stefan Monnier" X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (monnier@IRO.UMontreal.CA) 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:16530 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16530 > From: "Stefan Monnier" > Date: 15 Sep 2003 10:52:23 -0400 > > I think the C part of the code is fine and the use of `printer-name' > 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.