unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: rajeshthomas@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Using PrintFile to substitute print commands in the menu in Windows XP
Date: 10 May 2007 06:16:19 -0700	[thread overview]
Message-ID: <1178802979.640711.48010@q75g2000hsh.googlegroups.com> (raw)

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.

             reply	other threads:[~2007-05-10 13:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-10 13:16 rajeshthomas [this message]
2007-05-11 18:34 ` Using PrintFile to substitute print commands in the menu in Windows XP Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1178802979.640711.48010@q75g2000hsh.googlegroups.com \
    --to=rajeshthomas@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).