From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lowell Kirsh Newsgroups: gmane.emacs.help Subject: Re: printing from within emacs Date: Tue, 13 Jul 2004 19:06:23 -0700 Organization: Department of Computer Science, UBC Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <40F4068F.5060803@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1089770875 28769 80.91.224.253 (14 Jul 2004 02:07:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Jul 2004 02:07:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 14 04:07:46 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BkZBR-0005Fo-00 for ; Wed, 14 Jul 2004 04:07:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkZDq-0001ye-Na for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jul 2004 22:10:14 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!cs.ubc.ca!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: cascade.cs.ubc.ca Original-X-Trace: mughi.cs.ubc.ca 1089770783 18530 142.103.7.7 (14 Jul 2004 02:06:23 GMT) Original-X-Complaints-To: usenet@cs.ubc.ca Original-NNTP-Posting-Date: Wed, 14 Jul 2004 02:06:23 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040322 X-Accept-Language: en-us, en In-Reply-To: <40F4068F.5060803@yahoo.com> Original-Xref: shelby.stanford.edu gnu.emacs.help:124287 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19622 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19622 This works great. Thanks :) Kevin Rodgers wrote: > Michael Slass wrote: > > Lowell Kirsh 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) >