From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vinicius Jose Latorre Newsgroups: gmane.emacs.devel Subject: Re: IPP under emacs [was: Re: Post-22.1 development?] Date: Sun, 10 Jun 2007 00:47:09 -0300 Message-ID: <466B743D.509@ig.com.br> References: <878xb05ras.fsf@stupidchicken.com> <864plnorgn.fsf@lola.quinscape.zz> <85ps4ap0kh.fsf@lola.goethe.zz> <18023.8888.790251.607253@kahikatea.snap.net.nz> <4667AAD8.5040502@swipnet.se> <18024.20333.913034.347754@localhost.localdomain> <4668EF09.9020405@swipnet.se> <87ps46zziq.fsf_-_@ambire.localdomain> <466966E4.2080405@ig.com.br> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1181447289 20725 80.91.229.12 (10 Jun 2007 03:48:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2007 03:48:09 +0000 (UTC) Cc: ttn@gnuvola.org, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 10 05:48:05 2007 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 1HxEPI-0000VS-QJ for ged-emacs-devel@m.gmane.org; Sun, 10 Jun 2007 05:48:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxEPI-0002Bo-6m for ged-emacs-devel@m.gmane.org; Sat, 09 Jun 2007 23:48:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxEPE-0002Bj-LU for emacs-devel@gnu.org; Sat, 09 Jun 2007 23:47:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxEPB-0002BX-Kj for emacs-devel@gnu.org; Sat, 09 Jun 2007 23:47:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxEPB-0002BU-Fe for emacs-devel@gnu.org; Sat, 09 Jun 2007 23:47:53 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.245]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HxEPB-0005b5-3N for emacs-devel@gnu.org; Sat, 09 Jun 2007 23:47:53 -0400 Original-Received: by an-out-0708.google.com with SMTP id c25so231998ana for ; Sat, 09 Jun 2007 20:47:52 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=IZpmPrb7agq7OytJiQp+8JC40bUG68KQyfNTpzsHi3JoUCozZDLe/rFs5BQoBu5IZwa52ofRT2FphnDw9lYTneNu7KzmeD40GYHZ5Qp8XkSGgOclrYotX2vCmkp1d9AQtqtomgxMGSpkeJExhasnh9PmxoBWKEWkLJH3BmBJtsg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=sF48n6Q3Zu43gAiEWHtqqh1GPSrgCqHUNylkFpf/mD/TLKbiFo9RPNKWmvt/dvVACb92/CwnbSM5A9GuZCXYJItlP2B98HEkeOn1kiC4r8fuGNt0CyiJ+f2ZHmNUul1bQGsxwL+XSpG84Zd4rX01J6KoLTb782lVaqyfJ77mob8= Original-Received: by 10.101.71.16 with SMTP id y16mr2595330ank.1181447271091; Sat, 09 Jun 2007 20:47:51 -0700 (PDT) Original-Received: from ?201.82.15.211? ( [201.82.15.211]) by mx.google.com with ESMTP id d38sm5237072and.2007.06.09.20.47.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 09 Jun 2007 20:47:50 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070509 SeaMonkey/1.1.2 In-Reply-To: X-detected-kernel: Linux 2.6 (newer, 2) 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:72560 Archived-At: Richard Stallman wrote: > Some time ago, Eric Marsden created the ipp.el package, see the links: > > What does this do? > ;; The Internet Printing Protocol is intended to replace the LPD ;; protocol for interacting with network printers. It specifies ;; mechanisms for querying the capabilities of a printer, submitting ;; and cancelling jobs, and queue monitoring. ;; ;; You can find out whether a device is IPP-capable by trying to ;; telnet to port 631. If it accepts the connection it probably ;; understands IPP. You then need to discover the path component of ;; the URI, for example by reading the documentation or from a driver ;; program. Tested or reported to work on the following devices: ;; ;; * Tektronix Phaser 750, with an URI of the form ipp://host:631/ ;; (empty path component) ;; ;; * HP Laserjet 4000, with a path component of /ipp/port1. ;; ;; * Xerox Document Centre 460 ST, with empty path component. ;; ;; * CUPS printer spooler (see ). ;; ;; ;; ;; Usage: load this package by putting in your ~/.emacs.el ;; ;; (require 'ipp) ;; ;; then try printing a file using 'M-x ipp-print'. This will prompt ;; you for a file name (which should be in a format understood by the ;; printer, such as Postscript), and the URI of the printer. There are ;; also two functions for querying the capability of the device ;; `ipp-get-attributes' and examining its queue `ipp-get-jobs'. Until ;; I write display code for these functions you will have to call them ;; from the *scratch* buffer with C-j to examine their return value. ;; ;; ;; The IPP network protocol is based on HTTP/1.1 POST requests, using ;; a special "application/ipp" MIME Content-Type. The data is encoded ;; using simple marshalling rules. ;; ;; The Internet Printing Protocol is described in a number of RFCs: ;; ;; ;; ;; ;; and the Printer Working Group maintain a page at ;; ;; ;; ;; ;; Eventually it would be nice to modify the Emacs printing API to ;; support this type of direct printing, so that a user could set ;; `ps-printer-name' to "ipp://modern-printer:631/" or ;; "lpd://ancient-printer/queue" (it would be easy to write a package ;; similar to this one implementing the LPD protocol at the network ;; level; the LDP protocol is very simple).