From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Printing from WindowXP version of emacs Date: Tue, 20 Dec 2005 01:05:28 +0200 Message-ID: References: <431813e4315b3a.4315b3a431813e@net.lu.se> <43A72FF5.7000505@student.lu.se> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1135033629 20117 80.91.229.2 (19 Dec 2005 23:07:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2005 23:07:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 20 00:07:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EoU4Y-0005LD-Ae for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2005 00:05:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoU5P-0001vt-Pc for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Dec 2005 18:06:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EoU5E-0001vo-A1 for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 18:06:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EoU5C-0001vc-I7 for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 18:06:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoU5C-0001vZ-Da for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 18:06:18 -0500 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EoU8D-0004vU-K9 for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 18:09:25 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-80-85.inter.net.il [80.230.80.85]) by nitzan.inter.net.il (MOS 3.7.2-GA) with ESMTP id CGF63292 (AUTH halo1); Tue, 20 Dec 2005 01:05:22 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: <43A72FF5.7000505@student.lu.se> (message from Lennart Borgman on Mon, 19 Dec 2005 23:11:01 +0100) 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:32081 Archived-At: > Date: Mon, 19 Dec 2005 23:11:01 +0100 > From: Lennart Borgman > CC: help-gnu-emacs@gnu.org > > >You can use the "net use" command to arrange for some port, like LPT2, > >to redirect its output to this printer. (I think this is explained in > >the Emacs manual.) Then all you need to do to print is to set > >printer-name to "LPT2", > > > > > I will try, but is there any technical reason to assume that this works > differently? I don't know, it's hard to tell without taking a good look at how your printers are configured on that specific system. > I guess I can then do > > copy file.txt lpt2: Yes (but lose the colon after "lpt2", it's redundant). > or should not this work too? It should. > Also, when accessing the printer on this level, as Iliya said, there > might be some problems. What Ilya said made no sense. You can try it yourself: send any printable ASCII character to the printer (on a system where Emacs _can_ refer to a printer by its //share/printer style name), and see if that character gets printed. Then, if your printer supports Latin-1 characters, say, send some Latin-1 characters and see whether it makes any difference. > It was a long time ago I looked into this more in details, but what > about the reset of the printer for example? What ``reset of the printer''? what does that have to do with this thread? We were talking about printing text; by contrast, Reset is a command that you send via some kind of managerial interface that has nothing to do with Emacs or its way to send text to the printer. Please don't make a mistake of taking Ilya's deliberations seriously. > Can we be sure this is done here? Why should it be done? There's no need to reset the printer before, after, or during sending text to it. > Does someone has a good link to an overview of the printer reset, entry > points to the printer queue etc on MS Windows? I'm sure the Windows print spooler operation is a fascinating subject, but it has nothing to do with what we were discussing, which is how to send text from Emacs to a printer. These are two orthogonal issues, in the sense that when I send text from Emacs, I don't need to know anything about the spooler's operation.