From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Peter 'Luna' Runestig" Newsgroups: gmane.emacs.devel Subject: Re: Windows port: using Windows' default printer Date: Sat, 13 Sep 2003 21:44:30 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3F63739E.5010600@runestig.com> References: <3E54D5AA.4000805@runestig.com> <3E55CCC0.5050408@runestig.com> <7263-Sat13Sep2003120454+0300-eliz@elta.co.il> <9743-Sat13Sep2003163932+0300-eliz@elta.co.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1063482401 26722 80.91.224.253 (13 Sep 2003 19:46:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2003 19:46:41 +0000 (UTC) Cc: emacs-devel@gnu.org, Jason Rumney Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Sep 13 21:46: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 19yGLv-0000rL-00 for ; Sat, 13 Sep 2003 21:46: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 19yGNm-0006MI-00 for ; Sat, 13 Sep 2003 21:48:34 +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 19yGL4-0000ZD-E2 for emacs-devel@quimby.gnus.org; Sat, 13 Sep 2003 15:45:46 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19yGKy-0000Yv-Rh for emacs-devel@gnu.org; Sat, 13 Sep 2003 15:45:40 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19yGKx-0000Yk-EH for emacs-devel@gnu.org; Sat, 13 Sep 2003 15:45:39 -0400 Original-Received: from [62.108.199.166] (helo=arthur.runestig.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.22) id 19yGKw-0000Ye-Qg; Sat, 13 Sep 2003 15:45:39 -0400 Original-Received: from runestig.com (h20n2fls34o823.telia.com [217.208.10.20]) by arthur.runestig.com (8.12.9/8.12.1) with ESMTP id h8DJjXVO024192 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 13 Sep 2003 21:45:34 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030809 X-Accept-Language: en-us, en Original-To: Eli Zaretskii In-Reply-To: <9743-Sat13Sep2003163932+0300-eliz@elta.co.il> 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:16381 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16381 On 2003-09-13 16:39, Eli Zaretskii wrote: [...] > But in case there's no way, how about calling the function to update > `printer-name' only on startup--would that be good enough? 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. -- Peter 'Luna' Runestig (fd. Altberg), Sweden PGP Key ID: 0xD07BBE13 Fingerprint: 7B5C 1F48 2997 C061 DE4B 42EA CB99 A35C D07B BE13 AOL Instant Messenger Screen name: PRunestig Yahoo! Messenger profile name: altberg