From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "rgb" Newsgroups: gmane.emacs.help Subject: Re: printing from w32 emacs Date: 9 Nov 2005 21:21:13 -0800 Organization: http://groups.google.com Message-ID: <1131600073.094662.118680@g47g2000cwa.googlegroups.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1131600438 22375 80.91.229.2 (10 Nov 2005 05:27:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Nov 2005 05:27:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 10 06:27:00 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ea4wA-0002dy-Iq for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Nov 2005 06:25:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ea4wA-00016k-0o for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Nov 2005 00:25:26 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g47g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 71.34.3.210 Original-X-Trace: posting.google.com 1131600078 2699 127.0.0.1 (10 Nov 2005 05:21:18 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 10 Nov 2005 05:21:18 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g47g2000cwa.googlegroups.com; posting-host=71.34.3.210; posting-account=C7LM4w0AAAD23IRuMuUUJVCLQTuHhTK8 Original-Xref: shelby.stanford.edu gnu.emacs.help:135364 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: , 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:30958 Archived-At: B. T. Raven wrote: > Has any of you out there been able to print from emacs to your local > printer? My installation is acting as if I am printing to NULL. This is > from an emacs 21.3 on win98 to a Canon i850. Neither PRN (default) or > LPT1 works as 'printer-name, quoted or not. Printer works fine if I > minimize emacs and run any other windows app incorporating a print > function. I had same results with an HP laserjet. > I would appreciate any light any of you could throw on this problem. > > Thanks, > Ed I've still got a Windows 98 machine sitting around so I tried what I've got on my XP machines and it seems to work fine on '98. >>From [start][settings][printers], right click on the printer you want to print to and pick {properties}. Go to the {sharing} tab. Check the {share as} button and fill in a Share Name like Cannon . If you don't know your computer's network name, get it from the {identification} tab in the [start][settings][Control panel][network] dialog. If you don't have one, set one .. like My-PC or whatever. Now in your .emacs add this: (setq printer-name "\\\\My-PC\\Cannon") (setq ps-printer-name "\\\\My-PC\\Cannon") Simply using M-x print-buffer should print the current buffer and ps-print-buffer should work as well.