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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Francis Wright" <f.j.wright@HIDDEN>; merged with #4275; dated Tue, 19 May 2009 09:50:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 3332 4275. Request was from Jason Rumney <jasonr@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug reassigned from package `emacs' to `emacs,w32,documentation'. Request was from Jason Rumney <jasonr@HIDDEN> to control@HIDDEN. Full text available.

Message received at 3332@HIDDEN:


Received: (at 3332) by emacsbugs.donarmstrong.com; 20 May 2009 17:12:47 +0000
From f.j.wright@HIDDEN Wed May 20 10:12:47 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-0.6 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER,
	MSGID_MULTIPLE_AT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4KHChQf004141
	for <3332@HIDDEN>; Wed, 20 May 2009 10:12:45 -0700
Received: from smtp.qmul.ac.uk ([138.37.6.40])
	by mail2.qmul.ac.uk with esmtp (Exim 4.66)
	(envelope-from <f.j.wright@HIDDEN>)
	id 1M6pL3-0001Vs-1C; Wed, 20 May 2009 18:12:42 +0100
Received: from centaur.maths.qmul.ac.uk ([138.37.80.58] helo=Centaur)
	by smtp.qmul.ac.uk with esmtp (Exim 4.69)
	(envelope-from <f.j.wright@HIDDEN>)
	id 1M6pL2-0003kP-UF; Wed, 20 May 2009 18:12:20 +0100
From: "Francis Wright" <f.j.wright@HIDDEN>
To: "'Jason Rumney'" <jasonr@HIDDEN>, <3332 <at> debbugs.gnu.org>
References: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN> <4A134A4C.10800@HIDDEN>
In-Reply-To: <4A134A4C.10800@HIDDEN>
Subject: RE: bug#3332: 23.0.93; Printing on MS Windows
Date: Wed, 20 May 2009 18:12:21 +0100
Organization: Maths, Queen Mary, University of London
Message-ID: <009101c9d96e$2340f7a0$69c2e6e0$@j.wright@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
thread-index: AcnY35N1MyRvrY+vSji4aF8hgoljdQAjXElg
Content-Language: en-gb
X-Sender-Host-Address: 138.37.80.58
X-QM-SPAM-Info: Sender has good ham record.  :)
X-QM-Body-MD5: 6662a317bba831fc89fc49dc03400179 (of first 20000 bytes)
X-QM-Scan-Virus: ClamAV says the message is clean
X-QM-Scan-Virus: virusscan says the message is clean

> From: Jason Rumney [mailto:jasonrumney@HIDDEN] On Behalf Of Jason
> Rumney
> Sent: Wednesday 20 May 2009 1:10 am
> To: Francis Wright; 3332@HIDDEN
> 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.





Acknowledgement sent to "Francis Wright" <f.j.wright@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3332; Package emacs. Full text available.

Message received at 3332@HIDDEN:


Received: (at 3332) by emacsbugs.donarmstrong.com; 20 May 2009 00:10:26 +0000
From jasonrumney@HIDDEN Tue May 19 17:10:25 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-3.0 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.232])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4K0AJfK018978
	for <3332@HIDDEN>; Tue, 19 May 2009 17:10:20 -0700
Received: by rv-out-0506.google.com with SMTP id f9so34875rvb.1
        for <3332@HIDDEN>; Tue, 19 May 2009 17:10:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:sender:message-id:date:from
         :user-agent:mime-version:to:subject:references:in-reply-to
         :content-type:content-transfer-encoding;
        bh=QXPpiqRGfKdeLF5ZTyyCeJPu3scA/cEsXyuzi7WZUE4=;
        b=Cvl/jyHn2UdGZbPwJcgsEN1ayiJMgTARh+mnko/K5Dv7LJFq3h4AXS/lGi09Ejs9KR
         Pb6lH31EGJLcidkZ/Q8l+LUf2LygDVKriClkqAH11ZbL8XxBucDrDewGmWw4D8RqZo44
         OQIbN3XqyZA/ukvxns1/OoXJU7tKL5HZhTnAE=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=sender:message-id:date:from:user-agent:mime-version:to:subject
         :references:in-reply-to:content-type:content-transfer-encoding;
        b=CLXE19a6+6cZUDwGcFLnPYWJEbpzu/8TvHoYJHssgmRaoXDiXWHdYUwzXBBxFvQaNS
         agk6sKRV/1kpatZ0mHw11aiAQzQYmQYxAV1/xswmATfdqF+tFUVuYNSM8mfgPP9RleLT
         v6oOKQMtj9cuE3/XYyXjJ8MpZTvHa4yHuYCP0=
Received: by 10.141.82.20 with SMTP id j20mr260453rvl.138.1242778218900;
        Tue, 19 May 2009 17:10:18 -0700 (PDT)
Received: from ?10.1.1.112? ([61.4.103.130])
        by mx.google.com with ESMTPS id f42sm1619355rvb.1.2009.05.19.17.10.16
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Tue, 19 May 2009 17:10:18 -0700 (PDT)
Sender: Jason Rumney <jasonrumney@HIDDEN>
Message-ID: <4A134A4C.10800@HIDDEN>
Date: Wed, 20 May 2009 08:09:48 +0800
From: Jason Rumney <jasonr@HIDDEN>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: Francis Wright <f.j.wright@HIDDEN>, 3332 <at> debbugs.gnu.org
Subject: Re: bug#3332: 23.0.93; Printing on MS Windows
References: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN>
In-Reply-To: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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





Acknowledgement sent to Jason Rumney <jasonr@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3332; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 19 May 2009 09:43:19 +0000
From f.j.wright@HIDDEN Tue May 19 02:43:19 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: *
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=1.5 required=4.0 tests=FOURLA,MSGID_MULTIPLE_AT
	autolearn=no version=3.2.5-bugs.debian.org_2005_01_02
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4J9hEig015720
	for <submit@HIDDEN>; Tue, 19 May 2009 02:43:16 -0700
Received: from mx10.gnu.org ([199.232.76.166]:40580)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <f.j.wright@HIDDEN>)
	id 1M6Lqs-00048G-CF
	for emacs-pretest-bug@HIDDEN; Tue, 19 May 2009 05:43:14 -0400
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <f.j.wright@HIDDEN>)
	id 1M6Lqq-0004uq-SL
	for emacs-pretest-bug@HIDDEN; Tue, 19 May 2009 05:43:13 -0400
Received: from mail2.qmul.ac.uk ([138.37.6.6]:38340)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <f.j.wright@HIDDEN>)
	id 1M6Lqq-0004uP-GT
	for emacs-pretest-bug@HIDDEN; Tue, 19 May 2009 05:43:12 -0400
Received: from smtp.qmul.ac.uk ([138.37.6.40])
	by mail2.qmul.ac.uk with esmtp (Exim 4.66)
	(envelope-from <f.j.wright@HIDDEN>)
	id 1M6Lqn-0005ZC-5n
	for emacs-pretest-bug@HIDDEN; Tue, 19 May 2009 10:43:09 +0100
Received: from centaur.maths.qmul.ac.uk ([138.37.80.58] helo=Centaur)
	by smtp.qmul.ac.uk with esmtp (Exim 4.69)
	(envelope-from <f.j.wright@HIDDEN>)
	id 1M6Lqn-0001S5-2d
	for emacs-pretest-bug@HIDDEN; Tue, 19 May 2009 10:43:09 +0100
From: "Francis Wright" <f.j.wright@HIDDEN>
To: <emacs-pretest-bug@HIDDEN>
Subject: 23.0.93; Printing on MS Windows
Date: Tue, 19 May 2009 10:43:09 +0100
Organization: Maths, Queen Mary, University of London
Message-ID: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
thread-index: AcnYZjgZyYqnKJy+Q/SkQDRvg2saoA==
Content-Language: en-gb
X-Sender-Host-Address: 138.37.80.58
X-QM-SPAM-Info: Sender has good ham record.  :)
X-QM-Body-MD5: beca79acbc752e23ced834eb67332cd8 (of first 20000 bytes)
X-QM-Scan-Virus: ClamAV says the message is clean
X-QM-Scan-Virus: Allowing message to pass.
X-detected-operating-system: by monty-python.gnu.org: Solaris 9

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@HIDDEN mailing
list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I started Emacs with the -Q option, then clicked on Print Buffer in
the File menu. This gave the error message

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!)

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





Acknowledgement sent to "Francis Wright" <f.j.wright@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3332; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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