unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: printing from within emacs
Date: Tue, 13 Jul 2004 09:58:07 -0600	[thread overview]
Message-ID: <40F4068F.5060803@yahoo.com> (raw)
In-Reply-To: m38ydoydap.fsf@eric.rossnet.com

Michael Slass wrote:
 > Lowell Kirsh <lkirsh@cs.ubc.ca> writes:
 >>I'm having trouble printing to a remote printer from within emacs. The
 >>command I normally use from the cmd line is 'ssh host print'. How can
 >>I get emacs to use this command?
 >
 > Check out docs for the variable lpr-command
 > ,----[ C-h v lpr-command RET ]
 > | lpr-command's value is "lpr"
 > |
 > | Documentation:
 > | *Name of program for printing a file.
...

Although the variable is named with a -command suffix, it's doc string
accurately describes its value as a program name.  That is, it is
invoked via call-process (actually, call-process-region) not via a
shell-command.  So I think what Lowell needs is

(setq lpr-command "ssh"
       lpr-switches '("host" "print")
       lpr-add-switches nil)

-- 
Kevin Rodgers

  reply	other threads:[~2004-07-13 15:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-12 22:29 printing from within emacs Lowell Kirsh
2004-07-13  0:13 ` Michael Slass
2004-07-13 15:58   ` Kevin Rodgers [this message]
2004-07-14  2:06     ` Lowell Kirsh

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=40F4068F.5060803@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /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).