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: Sat, 13 Sep 2003 12:04:54 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <7263-Sat13Sep2003120454+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 1063444275 3593 80.91.224.253 (13 Sep 2003 09:11:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2003 09:11:15 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Sep 13 11:11: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 19y6Qz-0006UJ-00 for ; Sat, 13 Sep 2003 11:11: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 19y6Se-0001nj-00 for ; Sat, 13 Sep 2003 11:12:56 +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 19y6OA-0007p8-UE for emacs-devel@quimby.gnus.org; Sat, 13 Sep 2003 05:08:18 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19y6Mz-0006bG-T7 for emacs-devel@gnu.org; Sat, 13 Sep 2003 05:07:05 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19y6Mp-0006CC-4p for emacs-devel@gnu.org; Sat, 13 Sep 2003 05:06:59 -0400 Original-Received: from [192.114.186.18] (helo=bilbo.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.22) id 19y6Mj-00065a-QY for emacs-devel@gnu.org; Sat, 13 Sep 2003 05:06:50 -0400 Original-Received: from zaretski (pns03-208-85.inter.net.il [80.230.208.85]) by bilbo.inter.net.il (Mirapoint Messaging Server MOS 3.3.5-GR) with ESMTP id BLD63851; Sat, 13 Sep 2003 12:06:37 +0300 (IDT) Original-To: "Peter 'Luna' Runestig" X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (peter@runestig.com) 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:16364 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16364 > Date: 12 Sep 2003 21:34:17 +0200 > From: "Peter 'Luna' Runestig" > > This is a reworked version of the `w32-default-printer-device' variable > patch I posted in March 2002. After a private mail exchange with Jason > Rumney, I followed his ideas, and instead implemented a > `default-printer-name' function, that is to be used if `printer-name' > is nil. Ouch! Yet another symbol whose name is SOMETHING-printer-name, and yet another way of specifying the default printer? > +DEFUN ("default-printer-name", Fdefault_printer_name, Sdefault_printer_name, > + 0, 0, 0, doc: /* Return the name of Windows default printer device. */) I understand the need for this function, but why does it need to be called each time we want to print? Does the default printer get changed that often? How about if we call this function only once, at startup, and put the result into `printer-name'? Would that be okay? If Windows sends some kind of message when the default printer changes, perhaps you could arrange for NTEmacs to listen to that message and update `printer-name' automatically when it comes. Failing that, we could tell the user to do that manually (after all, a change in the default printer is something the user should be aware of, right?). WDYT?