GNU bug report logs - #4275
23.1; Printing

Previous Next

Package: emacs;

Reported by: "Timothy P. M. Johnson" <tpmj <at> MIT.EDU>

Date: Thu, 27 Aug 2009 22:35:06 UTC

Severity: normal

Merged with 3332

To reply to this bug, email your comments to 4275 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4275; Package emacs. (Thu, 27 Aug 2009 22:35:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Timothy P. M. Johnson" <tpmj <at> MIT.EDU>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 27 Aug 2009 22:35:07 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Timothy P. M. Johnson" <tpmj <at> MIT.EDU>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 23.1; Printing
Date: Thu, 27 Aug 2009 18:29:56 -0400
[Message part 1 (text/plain, inline)]
*** E-Mail body has been placed on clipboard, please paste them here! *** 

I try to print the current buffer to my network printer (via an IP address)
using the icon at the top of the window, but receive the following error: 

 

Spooling with options (page headers are not supported)...

direct-print-region-helper: Opening output file: permission denied,
c:/HPDIU_10.38.0.127

 

It seems as though emacs is trying to print to a file with the printer name
rather than the printer itself.   If I change the default printer I get the
same error but with the new IP address.  Is this a bug or an error in my
configuartion? I am new to emacs and any help would be greatly appreciated.

 

Sincerely,

Timothy Johnson

 

 

In GNU Emacs 23.1.1 (i386-mingw-nt6.0.6002)

 of 2009-07-30 on SOFT-MJASON

Windowing system distributor `Microsoft Corp.', version 6.0.6002

configured using `configure --with-gcc (4.4)'

 

Important settings:

  value of $LC_ALL: nil

  value of $LC_COLLATE: nil

  value of $LC_CTYPE: nil

  value of $LC_MESSAGES: nil

  value of $LC_MONETARY: nil

  value of $LC_NUMERIC: nil

  value of $LC_TIME: nil

  value of $LANG: ENU

  value of $XMODIFIERS: nil

  locale-coding-system: cp1252

  default-enable-multibyte-characters: t

 

Major mode: Fundamental

 

Minor modes in effect:

  tooltip-mode: t

  tool-bar-mode: t

  mouse-wheel-mode: t

  menu-bar-mode: t

  file-name-shadow-mode: t

  global-font-lock-mode: t

  font-lock-mode: t

  blink-cursor-mode: t

  global-auto-composition-mode: t

  auto-composition-mode: t

  auto-encryption-mode: t

  auto-compression-mode: t

  line-number-mode: t

  transient-mark-mode: t

 

Recent input:

<help-echo> <help-echo> <help-echo> <help-echo> <down-mouse-1> 

<mouse-2> <help-echo> <tool-bar> <print-buffer> <tool-bar> 

<print-buffer> <help-echo> <help-echo> <help-echo> 

<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 

<tool-bar> <print-buffer> <help-echo> <help-echo> <help-echo> 

<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 

<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 

<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 

<help-echo> <help-echo> <menu-bar> <help-menu> <send-emacs-bug-report> 

p r <backspace> <backspace> <backspace> <help-echo> 

<help-echo> <tool-bar> <print-buffer> <help-echo> <help-echo> 

<escape> <escape> <escape> <escape> <help-echo> <tool-bar> 

<print-buffer> <help-echo> <escape> <help-echo> <tool-bar> 

<print-buffer> <help-echo> <escape> <help-echo> <down-mouse-1> 

<mouse-1> <down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> 

<help-echo> <tool-bar> <print-buffer> <help-echo> <help-echo> 

<down-mouse-1> <drag-mouse-1> <help-echo> <help-echo> 

<help-echo> <down-mouse-1> <mouse-1> <down-mouse-1> 

<mouse-1> <double-down-mouse-1> <double-mouse-1> <help-echo> 

C-x C-b <help-echo> <down-mouse-1> <mouse-movement> 

<drag-mouse-1> <help-echo> <down-mouse-1> <help-echo> 

<mouse-2> <help-echo> C-x C-b <help-echo> <help-echo> 

<help-echo> <help-echo> <down-mouse-1> <mouse-2> <down-mouse-1> 

<mouse-movement> <mouse-movement> <drag-mouse-1> <help-echo> 

<help-echo> <help-echo> <tool-bar> <copy> <help-echo> 

<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 

<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 

<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 

<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 

<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 

<send-emacs-bug-report>

 

Recent messages:

direct-print-region-helper: Opening output file: permission denied,
c:/HPDIU_10.38.0.127

Spooling with options (page headers are not supported)...

direct-print-region-helper: Opening output file: permission denied,
c:/HPDIU_10.38.0.127

Spooling with options (page headers are not supported)...

direct-print-region-helper: Opening output file: permission denied,
c:/HPDIU_10.38.0.127

call-interactively: Text is read-only

Spooling with options (page headers are not supported)...

direct-print-region-helper: Opening output file: permission denied,
c:/HPDIU_10.38.0.127

Quit

Spooling with options (page headers are not supported)...

direct-print-region-helper: Opening output file: permission denied,
c:/HPDIU_10.38.0.127

[Message part 2 (text/html, inline)]

bug reassigned from package 'emacs' to 'emacs,w32'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Sat, 29 Aug 2009 01:25:08 GMT) Full text and rfc822 format available.

Merged 3332 4275. Request was from Jason Rumney <jasonr <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 15 Jul 2011 14:20:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4275; Package emacs. (Mon, 31 Jan 2022 17:15:02 GMT) Full text and rfc822 format available.

Message #12 received at 4275 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Francis Wright" <f.j.wright <at> qmul.ac.uk>
Cc: 3332 <at> debbugs.gnu.org, 4275 <at> debbugs.gnu.org
Subject: Re: bug#4275: 23.1; Printing
Date: Mon, 31 Jan 2022 18:14:37 +0100
"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?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 31 Jan 2022 17:15:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4275; Package emacs. (Mon, 31 Jan 2022 18:59:02 GMT) Full text and rfc822 format available.

Message #17 received at 4275 <at> debbugs.gnu.org (full text, mbox):

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: Re: 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4275; Package emacs. (Mon, 31 Jan 2022 19:22:04 GMT) Full text and rfc822 format available.

Message #20 received at 4275 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Arash Esbati <arash <at> gnu.org>
Cc: f.j.wright <at> qmul.ac.uk, larsi <at> gnus.org, 3332 <at> debbugs.gnu.org,
 4275 <at> debbugs.gnu.org
Subject: Re: bug#3332: bug#4275: 23.1; Printing
Date: Mon, 31 Jan 2022 21:19:50 +0200
> From: Arash Esbati <arash <at> gnu.org>
> Date: Mon, 31 Jan 2022 19:56:09 +0100
> Cc: Francis Wright <f.j.wright <at> qmul.ac.uk>, 3332 <at> debbugs.gnu.org,
>  4275 <at> debbugs.gnu.org
> 
> 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.

See the node "Windows Printing" in the Emacs manual, which explains
that the default setting of the printer on MS-Windows isn't guaranteed
to work, and provides a few alternative suggestions for setting up the
printer.

I don't think we can do anything with these problems beyond describing
the various tricks of the trade.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4275; Package emacs. (Mon, 31 Jan 2022 19:41:02 GMT) Full text and rfc822 format available.

Message #23 received at 4275 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: f.j.wright <at> qmul.ac.uk, larsi <at> gnus.org, 3332 <at> debbugs.gnu.org,
 4275 <at> debbugs.gnu.org
Subject: Re: bug#3332: bug#4275: 23.1; Printing
Date: Mon, 31 Jan 2022 20:40:03 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> See the node "Windows Printing" in the Emacs manual, which explains
> that the default setting of the printer on MS-Windows isn't guaranteed
> to work, and provides a few alternative suggestions for setting up the
> printer.

I tried that once long time ago and I did that again briefly before I
answered Lars.  None of them worked (which is not a big deal for me).

> I don't think we can do anything with these problems beyond describing
> the various tricks of the trade.

Understood.

Best, Arash




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4275; Package emacs. (Mon, 31 Jan 2022 19:51:02 GMT) Full text and rfc822 format available.

Message #26 received at 4275 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Arash Esbati <arash <at> gnu.org>
Cc: f.j.wright <at> qmul.ac.uk, larsi <at> gnus.org, 3332 <at> debbugs.gnu.org,
 4275 <at> debbugs.gnu.org
Subject: Re: bug#3332: bug#4275: 23.1; Printing
Date: Mon, 31 Jan 2022 21:50:03 +0200
> From: Arash Esbati <arash <at> gnu.org>
> Cc: larsi <at> gnus.org,  f.j.wright <at> qmul.ac.uk,  3332 <at> debbugs.gnu.org,
>   4275 <at> debbugs.gnu.org
> Date: Mon, 31 Jan 2022 20:40:03 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > See the node "Windows Printing" in the Emacs manual, which explains
> > that the default setting of the printer on MS-Windows isn't guaranteed
> > to work, and provides a few alternative suggestions for setting up the
> > printer.
> 
> I tried that once long time ago and I did that again briefly before I
> answered Lars.  None of them worked (which is not a big deal for me).

One solution that works for me on any Windows system is to find a lpr
workalike that knows how to print to the system default printer.
There are several such workalikes floating around.

The "net view" method also works in many cases.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4275; Package emacs. (Tue, 01 Feb 2022 12:42:02 GMT) Full text and rfc822 format available.

Message #29 received at 4275 <at> debbugs.gnu.org (full text, mbox):

From: Francis Wright <f.j.wright <at> qmul.ac.uk>
To: Arash Esbati <arash <at> gnu.org>, Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: "3332 <at> debbugs.gnu.org" <3332 <at> debbugs.gnu.org>,
 "4275 <at> debbugs.gnu.org" <4275 <at> debbugs.gnu.org>
Subject: RE: bug#3332: bug#4275: 23.1; Printing
Date: Tue, 1 Feb 2022 12:41:11 +0000
I no longer have access to the printer I referred to in my initial bug report. My current printer is connected using WiFi via the Internet. I tried the recipe described by Arash and got essentially the same result. To be precise, I got this message

w32-direct-print-region-helper: Opening output file: Permission denied, c:/WSD-cdd02b81-88de-4da9-ac0b-52cc3703cc62

I'm running
GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)
 of 2021-03-26
on Windows 10.

So it's still a problem. Thanks for looking into it again.

Francis

-----Original Message-----
From: Arash Esbati <arash <at> gnu.org> 
Sent: Monday, 31 January 2022 6:58 pm
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: Re: bug#3332: bug#4275: 23.1; Printing

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4275; Package emacs. (Wed, 02 Feb 2022 16:52:02 GMT) Full text and rfc822 format available.

Message #32 received at 4275 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: f.j.wright <at> qmul.ac.uk, Arash Esbati <arash <at> gnu.org>, 3332 <at> debbugs.gnu.org,
 4275 <at> debbugs.gnu.org
Subject: Re: bug#3332: bug#4275: 23.1; Printing
Date: Wed, 02 Feb 2022 17:50:59 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> See the node "Windows Printing" in the Emacs manual, which explains
> that the default setting of the printer on MS-Windows isn't guaranteed
> to work, and provides a few alternative suggestions for setting up the
> printer.
>
> I don't think we can do anything with these problems beyond describing
> the various tricks of the trade.

Could this command output a message (on Windows) that points the user to
this manual node when you get this error?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4275; Package emacs. (Wed, 02 Feb 2022 17:09:02 GMT) Full text and rfc822 format available.

Message #35 received at 4275 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: f.j.wright <at> qmul.ac.uk, arash <at> gnu.org, 3332 <at> debbugs.gnu.org,
 4275 <at> debbugs.gnu.org
Subject: Re: bug#3332: bug#4275: 23.1; Printing
Date: Wed, 02 Feb 2022 19:07:51 +0200
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: Arash Esbati <arash <at> gnu.org>,  f.j.wright <at> qmul.ac.uk,
>   3332 <at> debbugs.gnu.org,  4275 <at> debbugs.gnu.org
> Date: Wed, 02 Feb 2022 17:50:59 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > See the node "Windows Printing" in the Emacs manual, which explains
> > that the default setting of the printer on MS-Windows isn't guaranteed
> > to work, and provides a few alternative suggestions for setting up the
> > printer.
> >
> > I don't think we can do anything with these problems beyond describing
> > the various tricks of the trade.
> 
> Could this command output a message (on Windows) that points the user to
> this manual node when you get this error?

Which command? lpr-buffer?

The error comes from very low-level code, but I guess anything's
possible if we want it badly enough.




Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 03 Mar 2022 21:41:02 GMT) Full text and rfc822 format available.

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

Previous Next


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