From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris McMahan Newsgroups: gmane.emacs.help Subject: Re: Printing from WindowXP version of emacs Date: Tue, 03 Jan 2006 08:06:53 -0500 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: <534d19de0601021649n108b853bw46569129d0b82ce9@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136301599 11004 80.91.229.2 (3 Jan 2006 15:19:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2006 15:19:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 03 16:19:55 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 1Etnwr-0001gz-7Q for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Jan 2006 16:19:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtnyU-0002Xe-7h for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Jan 2006 10:21:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.isc.org!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 61 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader2.panix.com 1136293621 18732 166.84.1.5 (3 Jan 2006 13:07:01 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Tue, 3 Jan 2006 13:07:01 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:Q5ET5rcjqP/pdhQ9TibCoRpcdn8= Original-Xref: shelby.stanford.edu gnu.emacs.help:136755 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:32375 Archived-At: Another alternative I just found recently is to use the program gsprint, which is included in the ghostview program you can find here: http://www.cs.wisc.edu/~ghost/ I have these settings, which pop up a standard windows print dialog from which I can select the printer and print. ;;;=================================================== ;; use the ghostscript printer program to open a standard printer ;; dialog, works like a charm!! (setq-default ps-lpr-command (concat UTILS_DIR "/gs/gsview/gsprint.exe")) (setq-default ps-printer-name t) (setq-default ps-printer-name-option nil) (setq ps-lpr-switches '("-query")) ; show printer dialog - Chris Eli Zaretskii writes: >> Date: Mon, 2 Jan 2006 19:49:40 -0500 >> From: BRUCE INGALLS >> >> 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 the >> default printer port into Emacs: >> >> http://groups.google.com/group/gnu.emacs.sources/browse_thread/thread/a9f1a308223bc3b9/e2cf485072e3164b#e2cf485072e3164b >> >> You can easily query all manner of Windows printer properties, >> and customize the code above, to bring such into Emacs. > > Thanks. The question is, will this script find usable ports on > systems where people report they cannot find a port name that Emacs > can use? > >> 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. > > What would be the alternative on Windows, given that an lpr-like > program is not always available? > >> That said, yet another hack is available: there already is code to export >> emacs buffers to PDF. > > Can we have the URL, please? > >> I don't know, if a command-line pdf printing program exists. > > If it did (or does) exist, it could be also used to print plain text. > > -- (. .) =ooO=(_)=Ooo===================================== Chris McMahan | first_initiallastname@one.dot.net =================================================