GNU bug report logs - #3332
23.0.93; Printing on MS Windows

Previous Next

Package: emacs;

Reported by: "Francis Wright" <f.j.wright <at> qmul.ac.uk>

Date: Tue, 19 May 2009 09:50:04 UTC

Severity: normal

Merged with 4275

Full log


View this message in rfc822 format

From: Arash Esbati <arash <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Francis Wright <f.j.wright <at> qmul.ac.uk>, 3332 <at> debbugs.gnu.org, 4275 <at> debbugs.gnu.org
Subject: bug#3332: bug#4275: 23.1; Printing
Date: Mon, 31 Jan 2022 19:56:09 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> "Francis Wright" <f.j.wright <at> qmul.ac.uk> writes:
>
>> direct-print-region-helper: Opening output file: permission denied,
>> c:/DOT4_001
>>
>> My printer is an hp LaserJet 1010 connected via USB and the printer
>> driver properties show that it is connect to the port DOT4_001. I
>> think the problem is that "c:/" has been prepended to the port name.
>>
>> I see that the same thing happens in Emacs 22.3. (I don't print from
>> Emacs very often!)
>
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
>
> Do you still see this problem in recent versions of Emacs/Windows?

I see this problem: I did 'M-x view-hello-file RET' and from the menu
bar, I did 'File->Print->Print buffer', said YES when asked to use the
default printer, and this is the backtrace:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (permission-denied "Opening output file" "Permission denied" "c:/WSD-5bc23311-7bc5-46f6-a594-1552b4df353d")
  w32-direct-print-region-helper("WSD-5bc23311-7bc5-46f6-a594-1552b4df353d" 1 #<marker at 5393 in  *spool temp*> "" nil #<buffer  *temp*> nil ("(page headers are not supported)"))
  w32-direct-print-region-function(1 #<marker at 5393 in  *spool temp*> "" nil #<buffer  *temp*> nil "(page headers are not supported)")
  apply(w32-direct-print-region-function 1 #<marker at 5393 in  *spool temp*> "" nil #<buffer  *temp*> nil "(page headers are not supported)")
  lpr-print-region(1 #<marker at 5393 in  *spool temp*> ("(page headers are not supported)") "HELLO Emacs buffer")
--8<---------------cut here---------------end--------------->8---

I have a HP Laserjet on network connected via WSD Port (hence the name
WSD-5bc...).  This is Emacs 29.0.50 (3ca32105d2) on Win10.

Best, Arash




This bug report was last modified 3 years and 103 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.