delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/05/02:18:50

Date: Thu, 5 Nov 1998 09:18:44 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "J. Paul Bruns-Bielkowicz" <america AT polbox DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: I can't print from emacs, help.
In-Reply-To: <X4702.11268$54.2178065@news.tpnet.pl>
Message-ID: <Pine.SUN.3.91.981105091812.2883J-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Thu, 5 Nov 1998, J. Paul Bruns-Bielkowicz wrote:

>     I've installed djgpp2, almost all of it, on my computer. The computer
> I'm working on runs Windows98. It uses network printers. When I try to print
> from within emacs (the one which comes with djgpp) in a DOS box I get "Wrong
> type argument: integerp, nil" in the minibuffer. Any suggestion on how to
> print from emacs onto a network printer will be greatly appreciated.

This is described in detail in the on-line manual which comes with
Emacs.  I suggest to read the chapter named "MS-DOS", it explains all
the peculiarities specific to the DJGPP port of Emacs.  In particular,
there's a section called "Printing and MS-DOS".

The short answer is that you need to set the variable dos-printer to
the name of the port which is connected to the printer you want to
use.  For example, if the printer is connected to LPT2, put the
following into your _emacs file:

(setq dos-printer "LPT2")

If you don't set dos-printer, the default is "PRN".

Since you are using a networked printer, you will also have to make
sure it is available to DOS programs under Windows.  This has nothing
to do with Emacs, it is part of the Windows printer installation
procedure.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019