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: Wed, 22 Oct 2003 12:15:21 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3F9666C9.7040004@gnu.org> References: <3E54D5AA.4000805@runestig.com> <3E55CCC0.5050408@runestig.com> <8011-Sun21Sep2003151918+0300-eliz@elta.co.il> <3F7074C8.5010206@runestig.com> <2719-Wed24Sep2003202507+0300-eliz@elta.co.il> <3F965D61.4020509@runestig.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1066822312 27494 80.91.224.253 (22 Oct 2003 11:31:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2003 11:31:52 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Oct 22 13:31: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 1ACHDS-00080U-00 for ; Wed, 22 Oct 2003 13:31: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 1ACHDR-0004o2-00 for ; Wed, 22 Oct 2003 13:31:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACHDF-0004p1-IJ for emacs-devel@quimby.gnus.org; Wed, 22 Oct 2003 07:31:37 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ACHBg-0004Mu-ND for emacs-devel@gnu.org; Wed, 22 Oct 2003 07:30:00 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ACH5B-00032x-Oo for emacs-devel@gnu.org; Wed, 22 Oct 2003 07:23:49 -0400 Original-Received: from [209.61.173.204] (helo=integrasp.com) by monty-python.gnu.org with smtp (Exim 4.24) id 1ACGyx-0001vc-G3 for emacs-devel@gnu.org; Wed, 22 Oct 2003 07:16:51 -0400 Original-Received: (qmail 28871 invoked from network); 22 Oct 2003 11:07:13 -0000 Original-Received: from host217-37-167-241.in-addr.btopenworld.com (HELO ntserver.altio.com) (217.37.167.241) by 66.216.96.43 with SMTP; 22 Oct 2003 11:07:13 -0000 Original-Received: from gnu.org (ALTIOJR [192.168.111.42]) by ntserver.altio.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id RLBVSVQB; Wed, 22 Oct 2003 12:15:15 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-gb, en, ja Original-To: Peter 'Luna' Runestig In-Reply-To: <3F965D61.4020509@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:17331 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17331 Peter 'Luna' Runestig wrote: > Hi all! Is there anything more I should do to get this patch accepted? > When it comes to the issue about calling default-printer-name each time > we print something, I can see several options: > > o Leave as is (my favorite). > o Only call default-printer-name on start-up. > o Make the use of the above two ways run-time configurable. > o Add some caching functionality to default-printer-name, and trigger > the "cache update" on WM_SETTINGCHANGE. I favour the first option too. Worrying about a few milliseconds overhead for a system call on an operation like printing, that takes orders of magnitude longer, is not worth it IMHO. Caching would make the code overly complicated and difficult to maintain.