From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: BRUCE INGALLS Newsgroups: gmane.emacs.help Subject: Re: Printing from WindowXP version of emacs Date: Mon, 2 Jan 2006 19:49:40 -0500 Message-ID: <534d19de0601021649n108b853bw46569129d0b82ce9@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0865976485==" X-Trace: sea.gmane.org 1136249416 6136 80.91.229.2 (3 Jan 2006 00:50:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2006 00:50:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 03 01:50:14 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EtaNM-0008Lt-2Z for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Jan 2006 01:50:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtaOw-0000TX-VW for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jan 2006 19:51:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EtaOZ-0000SR-OY for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 19:51:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EtaOX-0000QC-VQ for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 19:51:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtaOX-0000Px-Qw for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 19:51:21 -0500 Original-Received: from [64.233.184.200] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EtaPg-0002lO-61 for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 19:52:32 -0500 Original-Received: by wproxy.gmail.com with SMTP id i30so373495wra for ; Mon, 02 Jan 2006 16:49:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ZlZPnZqlKgg5YVZ2PoBRayTSXKnHMzXTqkqmi3PcR+iL9P0e03nGBYcNPnKnz0Ed9X/uCMld2ZcK4fHCPyTmWuO8Hu9f0iip0HJKzAYaarAMwgf4+snnWuur/2FyYHw2hArE/OpT8nXlSt8kxCm8/zP3SPY55mlju9U1nR2aPYM= Original-Received: by 10.54.152.17 with SMTP id z17mr617076wrd; Mon, 02 Jan 2006 16:47:33 -0800 (PST) Original-Received: by 10.54.127.3 with HTTP; Mon, 2 Jan 2006 16:49:40 -0800 (PST) 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:32359 Archived-At: --===============0865976485== Content-Type: multipart/alternative; boundary="----=_Part_9358_9796603.1136249380538" ------=_Part_9358_9796603.1136249380538 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I had been looking for a way to script the MS Windows Printing Common Dialo= g Box, to make it available for Emacs. It looks that it requires some C(++) code, which I had been avoiding, to make a no-arch package. Perhaps I shall write a command-line, or otherwise Emacs usable wrapper, on= e day. Windows version 2000 and higher, are bundled with VBScript & JScript, by default. I had posted code to gnu.emacs.sources, in Sept. 2005, a way to retrieve th= e default printer port into Emacs: http://groups.google.com/group/gnu.emacs.sources/browse_thread/thread/a9f1a= 308223bc3b9/e2cf485072e3164b#e2cf485072e3164b You can easily query all manner of Windows printer properties, and customize the code above, to bring such into Emacs. Htmlview & notepad make fine stop-gap measures, to make w32 emacs printing easier. However, I don't believe there has been a good explanation, as to why some zealously believe that printing must be embedded in, or dedicated to, Emacs. Essentially, this violates the principle of coupling (and cohesion). Say, you use Emacs to print ESS spreadsheets, or 132 column code dumps. This makes sense to do in landscape mode. However, you might be surprised, when your browser stops printing web pages in portrait mode. Next, imagine the impact of intermediate print filter programs, such as a2ps. That said, yet another hack is available: there already is code to export emacs buffers to PDF. I don't know, if a command-line pdf printing program exists. I suspect that this will be a slow solution, that leaves garbage files strewn about. ------=_Part_9358_9796603.1136249380538 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I had been looking for a way to script the MS Windows Printing Common Dialo= g Box, to make it available for Emacs.
It looks that it requires some C(++) code, which I had been avoiding, to ma= ke a no-arch package.
Perhaps I shall write a command-line, or otherwise Emacs usable wrapper, on= e day.

Windows version 2000 and higher, are bundled with VBScript & JScript, b= y default.
I had posted code to gnu.emacs.sources, in Sept. 2005, a way to retrieve th= e default printer port into Emacs:

http://groups.goo= gle.com/group/gnu.emacs.sources/browse_thread/thread/a9f1a308223bc3b9/e2cf4= 85072e3164b#e2cf485072e3164b

You can easily query all manner of Windows printer properties,
and customize the code above, to bring such into Emacs.

Htmlview & notepad make fine stop-gap measures, to make w32 emacs print= ing easier.
However, I don't believe there has been a good explanation, as to why some = zealously believe
that printing must be embedded in, or dedicated to, Emacs.

Essentially, this violates the principle of coupling (and cohesion).
Say, you use Emacs to print ESS spreadsheets, or 132 column code dumps.
This makes sense to do in landscape mode.

However, you might be surprised, when your browser stops printing web pages= in portrait mode.
Next, imagine the impact of intermediate print filter programs, such as a2p= s.

That said, yet another hack is available: there already is code to export e= macs buffers to PDF.
I don't know, if a command-line pdf printing program exists.
I suspect that this will be a slow solution, that leaves garbage files stre= wn about.

------=_Part_9358_9796603.1136249380538-- --===============0865976485== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0865976485==--