* bug#3332: 23.0.93; Printing on MS Windows [not found] <001301c9d866$3827b540$a8771fc0$@j.wright@qmul.ac.uk> @ 2009-05-20 0:09 ` Jason Rumney 2009-05-20 17:12 ` Francis Wright 2022-01-31 17:14 ` bug#3332: bug#4275: 23.1; Printing Lars Ingebrigtsen 1 sibling, 1 reply; 10+ messages in thread From: Jason Rumney @ 2009-05-20 0:09 UTC (permalink / raw) To: Francis Wright, 3332 Francis Wright wrote: > 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. > Windows does that behind your back because DOT4_001 is not a real port, so it gets treated as a file name in the default-directory. To print on such a printer directly, you will have to share it and configure Emacs to use the network share name, or I think there is a way to redirect a real port (eg LPT1) to such a USB port. > I see that the same thing happens in Emacs 22.3. (I don't print from > Emacs very often!) > > If Emacs crashed, and you have the Emacs process in the gdb debugger, > please include the output from the following gdb commands: > `bt full' and `xbacktrace'. > If you would like to further debug the crash, please read the file > c:/NTEmacs/emacs-23.0.93/etc/DEBUG for instructions. > > > In GNU Emacs 23.0.93.1 (i386-mingw-nt6.0.6001) > of 2009-05-02 on SOFT-MJASON > Windowing system distributor `Microsoft Corp.', version 6.0.6001 > configured using `configure --with-gcc (3.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: ENG > value of $XMODIFIERS: nil > locale-coding-system: cp1252 > default-enable-multibyte-characters: t > > Major mode: Lisp Interaction > > 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> <help-echo> > <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> > <help-echo> <menu-bar> <file> <print-buffer> <help-echo> > <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> > <help-echo> <help-echo> <menu-bar> <help-menu> <se > nd-emacs-bug-report> > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > Spooling with options (page headers are not supported)... > direct-print-region-helper: Opening output file: permission denied, > c:/DOT4_001 > > > > > > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#3332: 23.0.93; Printing on MS Windows 2009-05-20 0:09 ` bug#3332: 23.0.93; Printing on MS Windows Jason Rumney @ 2009-05-20 17:12 ` Francis Wright 0 siblings, 0 replies; 10+ messages in thread From: Francis Wright @ 2009-05-20 17:12 UTC (permalink / raw) To: 'Jason Rumney', 3332 > From: Jason Rumney [mailto:jasonrumney@gmail.com] On Behalf Of Jason > Rumney > Sent: Wednesday 20 May 2009 1:10 am > To: Francis Wright; 3332@emacsbugs.donarmstrong.com > Subject: Re: bug#3332: 23.0.93; Printing on MS Windows > > Francis Wright wrote: > > 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. > > > > Windows does that behind your back because DOT4_001 is not a real port, > so it gets treated as a file name in the default-directory. To print on > such a printer directly, you will have to share it and configure Emacs > to use the network share name, or I think there is a way to redirect a > real port (eg LPT1) to such a USB port. OK, thanks. Could Emacs detect that DOT4_001 is not a real port and not use it as the default? The fact that Emacs picked it up automatically gave me some hope that it would work. The Emacs Manual entry for printing on Windows seems to suggest that connecting a printer to a USB port is "rare", but I doubt that it's possible to buy a printer that uses any other kind of connection (other than perhaps wireless). So I think it would be helpful if there were some specific guidance in the manual along the lines of what you wrote above. The bit about sharing and redirecting is there (although I haven't managed to get it to work yet) but there is nothing about USB ports. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#3332: bug#4275: 23.1; Printing [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 @ 2022-01-31 17:14 ` Lars Ingebrigtsen 2022-01-31 18:56 ` Arash Esbati 1 sibling, 1 reply; 10+ messages in thread From: Lars Ingebrigtsen @ 2022-01-31 17:14 UTC (permalink / raw) To: Francis Wright; +Cc: 3332, 4275 "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? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#3332: bug#4275: 23.1; Printing 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-02-01 12:41 ` Francis Wright 0 siblings, 2 replies; 10+ messages in thread From: Arash Esbati @ 2022-01-31 18:56 UTC (permalink / raw) To: Lars Ingebrigtsen; +Cc: Francis Wright, 3332, 4275 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#3332: bug#4275: 23.1; Printing 2022-01-31 18:56 ` Arash Esbati @ 2022-01-31 19:19 ` Eli Zaretskii 2022-01-31 19:40 ` Arash Esbati 2022-02-02 16:50 ` bug#4275: " Lars Ingebrigtsen 2022-02-01 12:41 ` Francis Wright 1 sibling, 2 replies; 10+ messages in thread From: Eli Zaretskii @ 2022-01-31 19:19 UTC (permalink / raw) To: Arash Esbati; +Cc: f.j.wright, larsi, 3332, 4275 > From: Arash Esbati <arash@gnu.org> > Date: Mon, 31 Jan 2022 19:56:09 +0100 > Cc: Francis Wright <f.j.wright@qmul.ac.uk>, 3332@debbugs.gnu.org, > 4275@debbugs.gnu.org > > 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. 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. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#3332: bug#4275: 23.1; Printing 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 1 sibling, 1 reply; 10+ messages in thread From: Arash Esbati @ 2022-01-31 19:40 UTC (permalink / raw) To: Eli Zaretskii; +Cc: f.j.wright, larsi, 3332, 4275 Eli Zaretskii <eliz@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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#3332: bug#4275: 23.1; Printing 2022-01-31 19:40 ` Arash Esbati @ 2022-01-31 19:50 ` Eli Zaretskii 0 siblings, 0 replies; 10+ messages in thread From: Eli Zaretskii @ 2022-01-31 19:50 UTC (permalink / raw) To: Arash Esbati; +Cc: f.j.wright, larsi, 3332, 4275 > From: Arash Esbati <arash@gnu.org> > Cc: larsi@gnus.org, f.j.wright@qmul.ac.uk, 3332@debbugs.gnu.org, > 4275@debbugs.gnu.org > Date: Mon, 31 Jan 2022 20:40:03 +0100 > > Eli Zaretskii <eliz@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. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#4275: bug#3332: bug#4275: 23.1; Printing 2022-01-31 19:19 ` Eli Zaretskii 2022-01-31 19:40 ` Arash Esbati @ 2022-02-02 16:50 ` Lars Ingebrigtsen 2022-02-02 17:07 ` Eli Zaretskii 1 sibling, 1 reply; 10+ messages in thread From: Lars Ingebrigtsen @ 2022-02-02 16:50 UTC (permalink / raw) To: Eli Zaretskii; +Cc: f.j.wright, Arash Esbati, 3332, 4275 Eli Zaretskii <eliz@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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#4275: bug#3332: bug#4275: 23.1; Printing 2022-02-02 16:50 ` bug#4275: " Lars Ingebrigtsen @ 2022-02-02 17:07 ` Eli Zaretskii 0 siblings, 0 replies; 10+ messages in thread From: Eli Zaretskii @ 2022-02-02 17:07 UTC (permalink / raw) To: Lars Ingebrigtsen; +Cc: f.j.wright, arash, 3332, 4275 > From: Lars Ingebrigtsen <larsi@gnus.org> > Cc: Arash Esbati <arash@gnu.org>, f.j.wright@qmul.ac.uk, > 3332@debbugs.gnu.org, 4275@debbugs.gnu.org > Date: Wed, 02 Feb 2022 17:50:59 +0100 > > Eli Zaretskii <eliz@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. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#3332: bug#4275: 23.1; Printing 2022-01-31 18:56 ` Arash Esbati 2022-01-31 19:19 ` Eli Zaretskii @ 2022-02-01 12:41 ` Francis Wright 1 sibling, 0 replies; 10+ messages in thread From: Francis Wright @ 2022-02-01 12:41 UTC (permalink / raw) To: Arash Esbati, Lars Ingebrigtsen Cc: 3332@debbugs.gnu.org, 4275@debbugs.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 ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-02-02 17:07 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [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
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).