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 16:39:32 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <9743-Sat13Sep2003163932+0300-eliz@elta.co.il> References: <3E54D5AA.4000805@runestig.com> <3E55CCC0.5050408@runestig.com> <7263-Sat13Sep2003120454+0300-eliz@elta.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1063460604 24907 80.91.224.253 (13 Sep 2003 13:43:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2003 13:43:24 +0000 (UTC) Cc: peter@runestig.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Sep 13 15:43:22 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 19yAgM-0005Lz-00 for ; Sat, 13 Sep 2003 15:43:22 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 19yAi6-00051s-00 for ; Sat, 13 Sep 2003 15:45:10 +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 19yAex-0006rp-To for emacs-devel@quimby.gnus.org; Sat, 13 Sep 2003 09:41:55 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19yAef-0006r7-I5 for emacs-devel@gnu.org; Sat, 13 Sep 2003 09:41:37 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19yAee-0006qm-3z for emacs-devel@gnu.org; Sat, 13 Sep 2003 09:41:36 -0400 Original-Received: from [192.114.186.24] (helo=legolas.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.22) id 19yAed-0006qe-Ny; Sat, 13 Sep 2003 09:41:35 -0400 Original-Received: from zaretski (pns03-208-85.inter.net.il [80.230.208.85]) by legolas.inter.net.il (Mirapoint Messaging Server MOS 3.3.5-GR) with ESMTP id AHW44357; Sat, 13 Sep 2003 16:41:15 +0300 (IDT) Original-To: Jason Rumney X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Jason Rumney on 13 Sep 2003 11:35:19 +0100) 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:16371 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16371 > From: Jason Rumney > Date: 13 Sep 2003 11:35:19 +0100 > > > > 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. > > I think that is something like the original approach Peter took, but > the problem I saw with that is that you cannot distinguish between > printer-name that has been set to the default printer at startup, and > printer-name that has been customized by the user. So changing it > automatically later would potentially be a mistake. You are probably right, although I think there's some way to make this distinction (I vaguely recall that some code pulls such a trick). But in case there's no way, how about calling the function to update `printer-name' only on startup--would that be good enough?