From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rajeshthomas@gmail.com Newsgroups: gmane.emacs.help Subject: Using PrintFile to substitute print commands in the menu in Windows XP Date: 10 May 2007 06:16:19 -0700 Organization: http://groups.google.com Message-ID: <1178802979.640711.48010@q75g2000hsh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1178906779 3720 80.91.229.12 (11 May 2007 18:06:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 May 2007 18:06:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 11 20:06:17 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HmZVL-0007PU-OZ for geh-help-gnu-emacs@m.gmane.org; Fri, 11 May 2007 20:06:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HmZcn-0008TJ-1y for geh-help-gnu-emacs@m.gmane.org; Fri, 11 May 2007 14:13:53 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 196.27.88.239 Original-X-Trace: posting.google.com 1178802980 2652 127.0.0.1 (10 May 2007 13:16:20 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 10 May 2007 13:16:20 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 CP2 Complaints-To: groups-abuse@google.com Injection-Info: q75g2000hsh.googlegroups.com; posting-host=196.27.88.239; posting-account=bcjuHw0AAADT4FQdsV253r2Xvj13mdav Original-Xref: shelby.stanford.edu gnu.emacs.help:148265 X-Mailman-Approved-At: Fri, 11 May 2007 14:12:04 -0400 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:43883 Archived-At: Hi Emacs people, how can i use the PrintFile utility to print from emacs. i am running emacs version 22 on Windows XP. i have installed the PrintFile program and now i want to get the print-buffer and print-region commands to work with the PrintFile utility. i downloaded the below lisp code that i got through google, and it works fine, but it doesn't substitute the print-region and print-buffer commands. (defun jjprintfile () "Print _from disk_ the file named the same as the current buffer using the great PrintFile freeware program. Be sure to save the file first to print with the latest changes." (interactive) (shell-command (format "PRFILE32.EXE %s" (buffer-file-name)))) can some please, give me the lisp code? i am not fluent in elisp. Thanks, mac.