unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Francis Wright <f.j.wright@qmul.ac.uk>
To: Arash Esbati <arash@gnu.org>, Lars Ingebrigtsen <larsi@gnus.org>
Cc: "3332@debbugs.gnu.org" <3332@debbugs.gnu.org>,
	"4275@debbugs.gnu.org" <4275@debbugs.gnu.org>
Subject: bug#3332: bug#4275: 23.1; Printing
Date: Tue, 1 Feb 2022 12:41:11 +0000	[thread overview]
Message-ID: <PR3PR07MB687555DEE03743908E9FFC7CF8269@PR3PR07MB6875.eurprd07.prod.outlook.com> (raw)
In-Reply-To: <86r18nzqd2.fsf@gnu.org>

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@gnu.org> 
Sent: Monday, 31 January 2022 6:58 pm
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Francis Wright <f.j.wright@qmul.ac.uk>; 3332@debbugs.gnu.org; 4275@debbugs.gnu.org
Subject: Re: bug#3332: bug#4275: 23.1; Printing

Lars Ingebrigtsen <larsi@gnus.org> writes:

> "Francis Wright" <f.j.wright@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





      parent reply	other threads:[~2022-02-01 12:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <001301c9d866$3827b540$a8771fc0$@j.wright@qmul.ac.uk>
2009-05-20  0:09 ` bug#3332: 23.0.93; Printing on MS Windows Jason Rumney
2009-05-20 17:12   ` Francis Wright
2022-01-31 17:14 ` bug#3332: bug#4275: 23.1; Printing Lars Ingebrigtsen
2022-01-31 18:56   ` Arash Esbati
2022-01-31 19:19     ` Eli Zaretskii
2022-01-31 19:40       ` Arash Esbati
2022-01-31 19:50         ` Eli Zaretskii
2022-02-02 16:50       ` bug#4275: " Lars Ingebrigtsen
2022-02-02 17:07         ` Eli Zaretskii
2022-02-01 12:41     ` Francis Wright [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PR3PR07MB687555DEE03743908E9FFC7CF8269@PR3PR07MB6875.eurprd07.prod.outlook.com \
    --to=f.j.wright@qmul.ac.uk \
    --cc=3332@debbugs.gnu.org \
    --cc=4275@debbugs.gnu.org \
    --cc=arash@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).