From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.devel Subject: Re: Windows port: using Windows' default printer Date: Sat, 13 Sep 2003 22:32:28 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <86vfrwqvj7.fsf@slowfox.dyndns.org> References: <3E54D5AA.4000805@runestig.com> <3E55CCC0.5050408@runestig.com> <7263-Sat13Sep2003120454+0300-eliz@elta.co.il> <9743-Sat13Sep2003163932+0300-eliz@elta.co.il> <3F63739E.5010600@runestig.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063485221 30071 80.91.224.253 (13 Sep 2003 20:33:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2003 20:33:41 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Sep 13 22:33:39 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 19yH5P-0002II-00 for ; Sat, 13 Sep 2003 22:33:39 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 19yH7I-0006wi-00 for ; Sat, 13 Sep 2003 22:35:36 +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 19yH4k-0002NP-Ml for emacs-devel@quimby.gnus.org; Sat, 13 Sep 2003 16:32:58 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19yH4N-0002Iw-U6 for emacs-devel@gnu.org; Sat, 13 Sep 2003 16:32:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19yH4K-0002BI-02 for emacs-devel@gnu.org; Sat, 13 Sep 2003 16:32:34 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19yH4J-00028a-Gc for emacs-devel@gnu.org; Sat, 13 Sep 2003 16:32:31 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19yH49-0002ve-00 for ; Sat, 13 Sep 2003 22:32:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19yH48-0002vW-00 for ; Sat, 13 Sep 2003 22:32:20 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19yH4H-0007nW-00 for ; Sat, 13 Sep 2003 22:32:29 +0200 Original-Lines: 17 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (berkeley-unix) Cancel-Lock: sha1:JnLRb3ltRzBT9C9nPOZVG/NaUXQ= 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:16382 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16382 "Peter 'Luna' Runestig" writes: > I think it's vital to follow any change to the Windows default printer > during the emacs session, it would be quite annoying otherwise. If you > think fetching the default printer device name all the way, at every use > of the printer, gets you too much overhead (I don't think that's a > problem at all, but...), one could cache the value, and only refresh it > when you actually change the default printer, by catching the > WM_SETTINGCHANGE window message, like it's done in my original draft patch. But if printer-name changes behind the user's back, how could the user choose another printer? How about making a special value for printer-name that means to use the default Windows printer? -- Two cafe au lait please, but without milk.