From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carson Chittom Newsgroups: gmane.emacs.help Subject: ps-print using PDFCreator on WinXP Date: Thu, 23 Aug 2012 10:34:10 -0500 Organization: A noiseless patient Spider Message-ID: <4pmx1l4o7h.fsf@mspb.ms.gov> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1345736121 28461 80.91.229.3 (23 Aug 2012 15:35:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2012 15:35:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 23 17:35:21 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T4ZRI-0005fm-Qu for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Aug 2012 17:35:20 +0200 Original-Received: from localhost ([::1]:36257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4ZRH-00022c-3v for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Aug 2012 11:35:19 -0400 Original-Received: by 10.180.24.202 with SMTP id w10mr498912wif.0.1345736058583; Thu, 23 Aug 2012 08:34:18 -0700 (PDT) X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.116.97 Original-Path: usenet.stanford.edu!7no39340495wig.0!news-out.google.com!n2ni277391150win.0!nntp.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nntpfeed.proxad.net!dedibox.gegeweb.org!gegeweb.eu!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Injection-Info: mx04.eternal-september.org; posting-host="f6618bd26ac04f6011a4df74e0a7552e"; logging-data="26061"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193qBM8/S+NmC9yPkkVK0J2wPtuA7Nin5w=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (windows-nt) Cancel-Lock: sha1:Yvts8af6hAOIpHlA0ggN+EbA0Fc= sha1:YXqwO9rNxwtLwr8t0RWBTXMm9J4= Original-Xref: usenet.stanford.edu gnu.emacs.help:194123 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86488 Archived-At: I've used Emacs for a while now, but I'm still very inexperienced when it comes to direct customizations, and I'm not a programmer. With that said: I'm using Emacs 24 on Windows XP, and I'm attempting to use PDFCreator with ps-print. I'm on a work computer I don't control, so I can't install additional software (like Cygwin[1] or a standalone Ghostscript[2]). By putting in .emacs (setq ps-printer-name t) (setq ps-lpr-command "C:/Program Files/PDFCreator/PDFCreator.exe") I can get the PDFCreator window to popup, but I can't seem to find the right thing to put as ps-lpr-switches. PDFCreator wants the filename passed to it on the command line as /if"C:\Filename.txt" I'm guessing that I need to somehow update the value of ps-lpr-switches to include the current value of buffer-file-name as I switch to each buffer, but I have no idea how to go about that. Can somebody point me in the right direction, or tell me a better way to go about it? [1] http://www.emacswiki.org/emacs/PrintingFromEmacs#toc5 [2] http://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-Printing.html#Windows-Printing