From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Windows port: using Windows' default printer Date: 13 Sep 2003 11:35:19 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <3E54D5AA.4000805@runestig.com> <3E55CCC0.5050408@runestig.com> <7263-Sat13Sep2003120454+0300-eliz@elta.co.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063450732 12412 80.91.224.253 (13 Sep 2003 10:58:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2003 10:58:52 +0000 (UTC) Cc: Peter 'Luna' Runestig , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Sep 13 12:58:50 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 19y878-0000hz-00 for ; Sat, 13 Sep 2003 12:58:50 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 19y88p-0004Bc-00 for ; Sat, 13 Sep 2003 13:00:35 +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 19y7ox-00070g-7D for emacs-devel@quimby.gnus.org; Sat, 13 Sep 2003 06:40:03 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19y7lY-0006Lj-64 for emacs-devel@gnu.org; Sat, 13 Sep 2003 06:36:32 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19y7kw-0006A4-Rh for emacs-devel@gnu.org; Sat, 13 Sep 2003 06:35:55 -0400 Original-Received: from [194.106.33.36] (helo=server0027.freedom2surf.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.22) id 19y7kV-00063V-MI for emacs-devel@gnu.org; Sat, 13 Sep 2003 06:35:27 -0400 Original-Received: from wanchan.jasonr.f2s.com ([195.137.103.251]) by server0027.freedom2surf.net (8.12.6/8.12.6/Debian-7) with ESMTP id h8DAZMit021147; Sat, 13 Sep 2003 10:35:22 GMT Original-Received: from NYAUMO (nyaumo.jasonrumney.net [10.0.0.27]) by wanchan.jasonr.f2s.com (Postfix) with ESMTP id 8862DDDF2B; Sat, 13 Sep 2003 11:34:33 +0100 (BST) Original-To: Eli Zaretskii In-Reply-To: <7263-Sat13Sep2003120454+0300-eliz@elta.co.il> Original-Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:16365 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16365 "Eli Zaretskii" writes: > 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. 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.