Date: Thu, 5 Nov 1998 09:18:44 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "J. Paul Bruns-Bielkowicz" cc: djgpp AT delorie DOT com Subject: Re: I can't print from emacs, help. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.