From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: u450286865@spawnkill.ip-mobilphone.net (Bruce_Ingalls) Newsgroups: gmane.emacs.help Subject: Default printer Date: Sun, 09 Oct 2005 16:04:54 GMT Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1128875269 22482 80.91.229.2 (9 Oct 2005 16:27:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 9 Oct 2005 16:27:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 09 18:27:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EOdzw-0007CH-RR for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Oct 2005 18:26:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOdzw-0007ZI-73 for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Oct 2005 12:26:04 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.freenet.de!not-for-mail Original-Newsgroups: gnu.emacs.help X-NNTP-Posting-Host-before-Post: 216.49.220.131 X-Mailer: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 - ur X-Path-before-Post: NNTPPostFeeder.ip-mobilphone.net!news1.ip-mobilphone.net!news2.ip-mobilphone.net!u450286865@spawnkill.ip-mobilphone.net Original-Lines: 28 Original-NNTP-Posting-Host: e44c5bc7.news.freenet.de Original-X-Trace: DXC=lG_IO>lPM8jLUMb<0P7kLnKZSdekToV0bGV3kXi3MCoabC0kYb17NmfnPdlMB]0Q=kZ@?0SQ?l[Ul Original-X-Complaints-To: abuse@freenet.de Original-Xref: shelby.stanford.edu gnu.emacs.help:134503 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30081 Archived-At: I recently posted code on gnu.emacs.sources, on how to determine the default printer on modern Microsoft Windows systems. This code could certainly be improved, to, say, list *all* known printers, for M-x customize to select from. I'm sure one of our inclined readers could do this far more efficiently, than could I. Any thoughts, on good strategies for determining default printers, or lists of known printers, on (GNU) Linux compatible systems, (e.g. Solaris, BSD), or on OSX, VMS, etc? Should we leave /dev/lp0 as a good guess? How about scanning /etc/printcap? I suspect Red Hat leaves something in /etc/sysconfig/ What about CUPS & IPP? While my intent is to use this, to make Emacs easier to use, perhaps I should ask this on comp.unix.shell, or other suggestion? Thanks, Bruce. -- Sent by bruce.ingalls from gmail subpart from com This is a spam protected message. Please answer with reference header. Posted via http://www.usenet-replayer.com