From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: zeroconf.el Date: Mon, 07 Apr 2008 22:54:20 +0200 Message-ID: <87od8lv11f.fsf@gmx.de> References: <87skxxv5yl.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207601574 24520 80.91.229.12 (7 Apr 2008 20:52:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Apr 2008 20:52:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 07 22:53:27 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JiyL3-0001ND-RB for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2008 22:53:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiyKQ-0007W6-MY for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2008 16:52:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JiyKN-0007Vx-9G for emacs-devel@gnu.org; Mon, 07 Apr 2008 16:52:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JiyKI-0007Tk-Kw for emacs-devel@gnu.org; Mon, 07 Apr 2008 16:52:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiyKI-0007Th-HW for emacs-devel@gnu.org; Mon, 07 Apr 2008 16:52:26 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JiyKH-0003Se-UT for emacs-devel@gnu.org; Mon, 07 Apr 2008 16:52:26 -0400 Original-Received: (qmail invoked by alias); 07 Apr 2008 20:52:24 -0000 Original-Received: from p57A21B37.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.27.55] by mail.gmx.net (mp001) with SMTP; 07 Apr 2008 22:52:24 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+Pq0EsB0WPr2+TGP3xkoXcxOLwkgRKdmZgTwle/G /lWIzSKd27fp+O In-Reply-To: (Stefan Monnier's message of "Mon, 07 Apr 2008 15:38:15 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94621 Archived-At: Stefan Monnier writes: >> As demonstration of this feature, I've written few lines of example >> code, which updates dynamically the "Postscript Printer" menu as local >> or network printers appear or disappear. This code could go into >> ps-samp.el. > > Sounds good. Do we know that this list of "printers available on the > network" has any relationship to the list of printers that `lpr' (or > `lp') will accept? For local printers, I configure "lpr -Pqueue", with queue taken from the txt fields zeroconf reports. Network printers are configured as "cupsdoprint -H address:port", address and port also provided by zeroconf. It works with all dozen printers detected @work; I was surprised to see them - I even didn't know some of them before. Of course, it is just sample code, and I'm not a CUPS expert. I hope people could improve it. >> Any objections to install this in the trunk? > > Feel free to install it under lisp/net/ OK, tomorrow, tonight is too late for me. My average day starts at 6am (you know, I am in Germany). > Stefan Best regards, Michael.