From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.devel Subject: Re: Printing Date: Sat, 28 Mar 2009 16:30:17 -0400 Message-ID: References: <5f0660120903280331y780c80b7i57a8115dc4b029eb@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1238272306 2538 80.91.229.12 (28 Mar 2009 20:31:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2009 20:31:46 +0000 (UTC) Cc: =?utf-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 28 21:33:03 2009 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 1LnfDC-00073w-39 for ged-emacs-devel@m.gmane.org; Sat, 28 Mar 2009 21:33:02 +0100 Original-Received: from localhost ([127.0.0.1]:50596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnfBo-00024X-KZ for ged-emacs-devel@m.gmane.org; Sat, 28 Mar 2009 16:31:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnfBi-00024S-No for emacs-devel@gnu.org; Sat, 28 Mar 2009 16:31:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnfBe-00021k-7u for emacs-devel@gnu.org; Sat, 28 Mar 2009 16:31:30 -0400 Original-Received: from [199.232.76.173] (port=41666 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnfBe-00021h-2C for emacs-devel@gnu.org; Sat, 28 Mar 2009 16:31:26 -0400 Original-Received: from eagle.jhcloos.com ([207.210.242.212]:1945) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LnfBd-0007I2-M6 for emacs-devel@gnu.org; Sat, 28 Mar 2009 16:31:25 -0400 Original-Received: by eagle.jhcloos.com (Postfix, from userid 10) id 1CAB040202; Sat, 28 Mar 2009 20:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=eagle; t=1238272283; bh=1Mx5JbIaIwqWEpv4ZZL10dTSBZd4HJ8KuSpillZ92Jw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=pe9necXH5axpastB45fP/AbdyAt7w06Vwvs1HGEMYT8uCL2z9r6VsnbJpvmRraoFD +0G1AzVyt+EE4UwZUd3G3/SBpCxZOq3z2uGB8hw/Q58MNm2c9u0I5jPeGnOYQojPbM 62CU/Iu6aVnslUqBFh7kFCrZr0KlF3e+R0qsfq+E= Original-Received: by lugabout.jhcloos.org (Postfix, from userid 500) id 93C09D04F6; Sat, 28 Mar 2009 20:30:42 +0000 (UTC) In-Reply-To: <5f0660120903280331y780c80b7i57a8115dc4b029eb@mail.gmail.com> (=?utf-8?B?ItCQ0L3QtNGA0LXQuSDQn9Cw0YDQsNC80L7QvdC+0LIiJ3M=?= message of "Sat, 28 Mar 2009 13:31:05 +0300") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.90 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAI1J REFUOE+lU9ESgCAIg64P1y+ngUdxhl5H8wFbbM0OmUiEhKkCYaZThXCo6KE5sCbA1DDX3genvO4d eBQgEMaM5qy6uWk4SfBYfdu9jvBN9nSVDOKRtwb+I3epboOsOX5pZbJNsBJFvmQQ05YMfieIBnYX FK2N6dOawd97r/e8RjkTLzmMsiVgrAoEugtviCM3v2WzjgAAAABJRU5ErkJggg== Copyright: Copyright 2009 James Cloos OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 Original-Lines: 32 X-Hashcash: 1:29:090328:emacs-devel@gnu.org::vZJxBtirXyxUz6S4:00000000000000000000000000000000000000000Abx1k X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:109898 Archived-At: This is indeed a real issue. Some slightly random thoughts: Using the gtk print dialog when emacs is compiled --with-x-toolkit-gtk and is in GUI mode would be a useful improvement. (Using the toolkit's print dialog is generally the way to go, but of the x-toolkits emacs currently supports only gtk has a useful print dialog.) The cups-based workflow is changing from postscript to pdf. It would be useful for emacs to have pdf-(print|spool)-(buffer|region)(-with-faces)? commands. A pdf-print.el similar to ps-print.el is therefore desired. Work is underway on a pan-toolkit print dialog. One of the deliverables is an application which can be used in place of lp(1) or lpr(1). This will be similar to xpp(1) or gtklp(1), but using the new dialog. I expect there will be separate apps for each toolkit linked against the pan-toolkit lib. It would be useful for ps-lpr-command to default to such an app when using gtk and in GUI mode. Until that app is available gtklp might be a useful option. Anything which outputs pdf can be trivially expanded to support ps output as well; it requires only a simple ps procset and a few small conditionals in the code. Most of the ps output looks identical to the pdf output. Improving ps-print.el to support all of the UCS is not outrageously difficult. I'm confident patches would be welcomed. There are a large number of acceptably-licensed apps and libs in the wild which one could use as inspiration. Cairo's pdf backend is a good example. -JimC -- James Cloos OpenPGP: 1024D/ED7DAEA6