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: Windows port: using Windows' default printer Date: Thu, 20 Feb 2003 14:18:34 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E54D5AA.4000805@runestig.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1045747588 31232 80.91.224.249 (20 Feb 2003 13:26:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2003 13:26:28 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18lqiY-00087c-00 for ; Thu, 20 Feb 2003 14:26:26 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18lqw5-00008t-00 for ; Thu, 20 Feb 2003 14:40:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18lqgV-0003ne-0A for emacs-devel@quimby.gnus.org; Thu, 20 Feb 2003 08:24:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18lqbx-00027e-00 for emacs-devel@gnu.org; Thu, 20 Feb 2003 08:19:37 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18lqaz-0001Sj-00 for emacs-devel@gnu.org; Thu, 20 Feb 2003 08:18:39 -0500 Original-Received: from arthur.runestig.com ([62.108.199.166]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18lqaz-0001RJ-00 for emacs-devel@gnu.org; Thu, 20 Feb 2003 08:18:37 -0500 Original-Received: from runestig.com (fw.kldata.cc [62.108.199.163]) by arthur.runestig.com (8.12.1/8.12.1) with ESMTP id h1KDIZHR001825 for ; Thu, 20 Feb 2003 14:18:35 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030207 X-Accept-Language: en-us, en Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11789 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11789 Hi all, I've had a patch lying around for a while, that adds two lisp variables: 'w32-default-printer-device' and 'w32-printer-name-follows-default-device'. 'w32-default-printer-device' contains Windows' default printer's device name, which is either the printer port name (for locally connected printers), or an UNC path (for remote printers). You can then have something like this in .emacs: (setq printer-name w32-default-printer-device) If 'w32-printer-name-follows-default-device' is set to 't', 'printer-name' is updated, if you change the default printer while emacs is running. I mentioned this patch on bug-gnu-emacs@gnu.org almost a year ago, but I now realize that this probably is a more appropriate forum, so I just thought I'll mention it here. The link: ftp://ftp.runestig.com/pub/emacs/emacs-20030219-w32-default-printer-device.patch http://ftp.runestig.com/pub/emacs/emacs-20030219-w32-default-printer-device.patch Cheers, - Peter -- 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