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.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 3332 <at> debbugs.gnu.org:


Received: (at 3332) by debbugs.gnu.org; 2 Feb 2022 17:08:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 02 12:08:05 2022
Received: from localhost ([127.0.0.1]:53288 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nFJ6y-000062-Pz
	for submit <at> debbugs.gnu.org; Wed, 02 Feb 2022 12:08:04 -0500
Received: from eggs.gnu.org ([209.51.188.92]:41030)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1nFJ6v-00005E-P2; Wed, 02 Feb 2022 12:08:02 -0500
Received: from [2001:470:142:3::e] (port=38656 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1nFJ6l-0002VG-Gw; Wed, 02 Feb 2022 12:07:55 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=dHtkDqSnbevWp/zN5f6W9QROoJNPnEwOfwRgFQ677/I=; b=KmDgh4ZUGRpG
 0HNlhzK3cFltQSF2teYgeZpKqADtWjtFUUDlyPp/0pCtDI92Era9MxqEmptUzyYAuZl/DfhHXUWCU
 RtkLn3aeg9yqCw7Z+aARmXzU2U4a9f3jk3zvjh70HWPVw98PdOt6fTxzjBG9M6kKsx7hzCZk17FCi
 VYT1weFJVVHeug8dzEIHZDVyT/vSulpTgsSkvLQW6idaDOz0NKGaYW61VkVb3Mon01sV4dHHUcbKc
 XXsGzzkczuNf9vTlHu0v1Yn01HdO7hzUbHUGmxtu/0k+TpiEC8ft0jkb9dSmJ/jRO3cY4UI+EIwpg
 FDkbV+/wwKeG+qBqeDe5dg==;
Received: from [87.69.77.57] (port=4710 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1nFJ6i-0005ZU-TU; Wed, 02 Feb 2022 12:07:49 -0500
Date: Wed, 02 Feb 2022 19:07:51 +0200
Message-Id: <83y22t5h94.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <878rutus98.fsf@HIDDEN> (message from Lars Ingebrigtsen on Wed, 
 02 Feb 2022 17:50:59 +0100)
Subject: Re: bug#3332: bug#4275: 23.1; Printing
References: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN>
 <87ee4nyghu.fsf@HIDDEN> <86r18nzqd2.fsf@HIDDEN>
 <838ruv90h5.fsf@HIDDEN> <878rutus98.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 3332
Cc: f.j.wright@HIDDEN, arash@HIDDEN, 3332 <at> debbugs.gnu.org,
 4275 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: Arash Esbati <arash@HIDDEN>,  f.j.wright@HIDDEN,
>   3332 <at> debbugs.gnu.org,  4275 <at> debbugs.gnu.org
> Date: Wed, 02 Feb 2022 17:50:59 +0100
> 
> Eli Zaretskii <eliz@HIDDEN> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#3332; Package emacs. Full text available.

Message received at 3332 <at> debbugs.gnu.org:


Received: (at 3332) by debbugs.gnu.org; 2 Feb 2022 16:51:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 02 11:51:16 2022
Received: from localhost ([127.0.0.1]:53231 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nFIqh-00081V-Qa
	for submit <at> debbugs.gnu.org; Wed, 02 Feb 2022 11:51:16 -0500
Received: from quimby.gnus.org ([95.216.78.240]:41530)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>)
 id 1nFIqe-000817-Ou; Wed, 02 Feb 2022 11:51:14 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=ml4JmmG5NDxfJ35hEK8GcnwMf39b6gRVvv0msSpdD/g=; b=DIqKqY1+IBuRLHDmr3ukGgj9fZ
 mIfPwlO/IKNAOCnj/lAWNDYTjXmXX96B7aJn/zRtTjWSnZt8tjZstfWpR6JDoMOL94DjvKuCoWUyA
 VeaqGJPMP1GsppnUTZUE2o7+e3k1o1yqysxiUeoao3g0ia8KAhi5IpsiV6iGtUh6t3Es=;
Received: from [84.212.220.105] (helo=giant)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nFIqU-0005o0-J3; Wed, 02 Feb 2022 17:51:05 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#3332: bug#4275: 23.1; Printing
References: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN>
 <87ee4nyghu.fsf@HIDDEN> <86r18nzqd2.fsf@HIDDEN>
 <838ruv90h5.fsf@HIDDEN>
X-Now-Playing: Mice Parade's _Nights Wave EP_: "Nights Wave"
Date: Wed, 02 Feb 2022 17:50:59 +0100
In-Reply-To: <838ruv90h5.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 31 Jan
 2022 21:19:50 +0200")
Message-ID: <878rutus98.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> 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 [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 3332
Cc: f.j.wright@HIDDEN, Arash Esbati <arash@HIDDEN>, 3332 <at> debbugs.gnu.org,
 4275 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> 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@HIDDEN:
bug#3332; Package emacs. Full text available.

Message received at 3332 <at> debbugs.gnu.org:


Received: (at 3332) by debbugs.gnu.org; 1 Feb 2022 12:41:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 01 07:41:21 2022
Received: from localhost ([127.0.0.1]:41993 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nEsTJ-0001Hf-7x
	for submit <at> debbugs.gnu.org; Tue, 01 Feb 2022 07:41:21 -0500
Received: from mail-vi1eur05on2054.outbound.protection.outlook.com
 ([40.107.21.54]:22848 helo=EUR05-VI1-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <f.j.wright@HIDDEN>)
 id 1nEsTG-0001HN-Nq; Tue, 01 Feb 2022 07:41:19 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=L074bWLajQAf80PbaFCepwccDpyMoc/IqG1y6zM7xrFqHpbn4na5UcFACWfC5XB2QDvSmSGOgZiu1dqv3fp1IGkWbsmfri0LJxqyU+ASOMPAaDRKtx5hxN3eZ8UerzINRYtiFl0xIBi+ImyRIU3AkqSHVCqptQTqUKbUgI9FF826Yxo2KDIxtjCGpS13RjBGuifUFfw4w9ZOYkC40avO4uwQWELIXFkS3NLxTjttDAe9UIuLirGO5UbJ36HQJB30SXLpfsQBdfwFDqh1g6m4Nc1SwJ7SBCLvg3BGlbz16EeCq2ocWDlfA6Bs7ofQpTvSU2tOJdD5SXlSO4s0ZYvYcA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=lX86JoHEFNQU8UVpxfnYZw2+2AntD43LINk3v62FOaY=;
 b=mxoKzmvwlB1uwSzzRn0Wn9kJMinaxt7yQcr61niY2/P8RrhkYZG+7RzPUVZjmyukXElu7NmQHjVpGSGXbhJirnB9o+EdeQO0GVCXtKcljWEITea2qH9Wb4i1hbYCXlpXrZGM9aLUxjNPpmWJEVr23iRmr9GrSPgwlvUwS1JIQRh7dX6VeXXpvTlDqtKvtPAwkY280YHk5N/53JOBwKdq2JV1UxZGjrmY0zvXQZHloSen5OXOiRh6vAyPnz5EbY6QZYgDDovlpVLLA8zIUXbkVLJYUY0nF4kVuK1qNfXsMd1T70nCqT7q5lrfabmR8+Om3xRyQGjkTH3U6jvGXGumTQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qmul.ac.uk;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=lX86JoHEFNQU8UVpxfnYZw2+2AntD43LINk3v62FOaY=;
 b=dA8MHlLQRPsMfck7fg9OtMVqBuds3EY1M/NZ/YgElYWfMwYIe0ocjpjPmjQvSt1iKHS2DuwWWp5dEmOwpChSzLiNpPJSd7QS7+gylmSkZtDcEz6O35KI1yFf9dr+vlbZ885tNaAi2jp+MYya7sO2NGDSvxgKJBp8PuLQdpecbeU=
Received: from PR3PR07MB6875.eurprd07.prod.outlook.com (2603:10a6:102:7e::13)
 by PR3PR07MB8244.eurprd07.prod.outlook.com (2603:10a6:102:17b::17)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.6; Tue, 1 Feb
 2022 12:41:11 +0000
Received: from PR3PR07MB6875.eurprd07.prod.outlook.com
 ([fe80::f06d:569:f203:241]) by PR3PR07MB6875.eurprd07.prod.outlook.com
 ([fe80::f06d:569:f203:241%4]) with mapi id 15.20.4951.006; Tue, 1 Feb 2022
 12:41:11 +0000
From: Francis Wright <f.j.wright@HIDDEN>
To: Arash Esbati <arash@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>
Subject: RE: bug#3332: bug#4275: 23.1; Printing
Thread-Topic: bug#3332: bug#4275: 23.1; Printing
Thread-Index: AQHYFsYKGHO+nsc3/UK+JZbhEZhvwax9e2aTgAEhv7A=
Date: Tue, 1 Feb 2022 12:41:11 +0000
Message-ID: <PR3PR07MB687555DEE03743908E9FFC7CF8269@HIDDEN>
References: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN>
 <87ee4nyghu.fsf@HIDDEN> <86r18nzqd2.fsf@HIDDEN>
In-Reply-To: <86r18nzqd2.fsf@HIDDEN>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=qmul.ac.uk;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: fc6dc9d3-47b0-417d-2366-08d9e580207a
x-ms-traffictypediagnostic: PR3PR07MB8244:EE_
x-microsoft-antispam-prvs: <PR3PR07MB824423684CDB3905C79E44E9F8269@HIDDEN>
x-loop: 1
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: Q3q7yd4iq1zkklv6SazZs7tTYJmEgIWazpw6tFlK9yIVVA5Aqc5JtsnKeIM/0cQZPNYv+n2taAb2gdV8ttgrfSbIJ+CNiOlJ4D4apMewQtU0+Eh48SW95T3FeXF3xBxyWFVq+2wM9/ZUx+YhY1SVlSUnGOOWcYc0N8IvXFHRMAVKiwP6BQrsgzj3qJ7vujUAFm4hgZ6TKCu9ClXKMg0Up7dUXkIToHuvtRV9ZZGFs1sUp91MbgutoOuKaj0o/bCgbB8lslIXzM+HkSziGy4wW5HlUIrmnMuj6sWmCDEbfj7L7Jvj96SwI7TyhEBCcPm4Kr0rtZyY8Hq848v1dW8I31RKwjSmVgpiwNM+AkK4djcmaa6z9teAU7TX+L6NxMQxI7hq9P8HD/a+9rVSPrCqP/zL58LylwCoXlduN8XIJGGc4efKhTwwNkUl7kAtst7Zs58/zuKtGLodh1D+Xa4QGUTU0x77wZaWpsegSFfc4p4SPUgeCs7UKPxUF8h5aG5HAcNKBSFGoiuoR7QeQQ1hJEjNLkt6zxHuQc1cBgZoVWg9ipKNuy0b3i9ixqNCsJbUB35MNl6fgqUE8ABI33YdGCyaA/eO1xygdqRyz+W9z8IWKkbhPsFAViNt0mcpG9aLg7zE7mX6Qvu+LDw6dLHCI9Is1qWMr/9+uZNSBddqgLst4050UlLn3oWkgP4uDVXTDTJ7a8iKOJw9eCYe/X+ZA/qtYkhECMxZOhZ9dpp2QR/60kkUW/lmgIIG9jIJ3Pxx
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:PR3PR07MB6875.eurprd07.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230001)(4636009)(366004)(66574015)(71200400001)(26005)(186003)(83380400001)(38070700005)(38100700002)(122000001)(86362001)(66476007)(5660300002)(66946007)(66556008)(786003)(55016003)(316002)(54906003)(76116006)(2906002)(66446008)(4326008)(64756008)(52536014)(8676002)(9686003)(53546011)(6506007)(7696005)(508600001)(8936002)(110136005)(33656002)(20210929001);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?wNoPrja0Cwo2BZDbzBSsHd5UeuBm7Bs17DX589WFcKHPInVvev+HLNm31aVW?=
 =?us-ascii?Q?HU+oNFLyFaJrNljbyToAamW0T1eAiZHXInZR4l8bOF0cCjRkAczOoijW1mOi?=
 =?us-ascii?Q?QwvnGDpH31L9r3kBG/5TlAFQZdwU9Ui0ux0z86DE0+1YcfNuLGmggasFOBUi?=
 =?us-ascii?Q?+f6NP9hCYMxWbtdLhjZqALTCc+3aMic+Nu4iN5zleyaenrUy7y8GVsEFfWZm?=
 =?us-ascii?Q?O97+njTQU4ILe9X3N5GKOUBngekrB2AYLF2f/+QGp2rhzdwuETiHFAPCj/LC?=
 =?us-ascii?Q?Y2kk6Eu8mvttA7Vg+FziXmRL9G9c5nnEfADPEncRrjLibhWeUipPaKyuRQ6B?=
 =?us-ascii?Q?ycEBQ68iLuxHmIqA/kUBd+JVMVlWSR1m4v4fy8KqmfvoAW/gRENBWpm7w0Ja?=
 =?us-ascii?Q?MZ/qFR0j9VLfQAHGuVdnKKT7m9XNUumIpjbrX5zYtEFMS//QbKF7+Nj3s3tx?=
 =?us-ascii?Q?EeMAvTehpYLgmtK9ga7D8Ko5fFTORrHu/iItLgx4t4lEtoDvqLsUShItZMXr?=
 =?us-ascii?Q?9xnTKsaNgUVLaG5+TGCuuIOivB7rsiJ4J58a3H+2x3SjZOCtGZvGQ21o4mhO?=
 =?us-ascii?Q?BpHFvOKimCFvybCAfWUz6FJ/QHnZtBGdETumwEuf43Ojo9p0YcCL2DXO7dPA?=
 =?us-ascii?Q?/YYxcHD+ZY+Bcpp7WOeHrmUcge5oPsRXFDn51UEYEX6/lfI/tsUjgDalYlNu?=
 =?us-ascii?Q?4abiThF+KKLOYqDJAb6fdURckU+09uEKW3Goz/h/t7T31U3HXajk2FWmGbLL?=
 =?us-ascii?Q?BbEvQ/xvqdMZqNDSA/HrDviX8kfJfKTU0WdIptXfFMDE+g2ZrSwljMhKduiJ?=
 =?us-ascii?Q?kj1JtXfODGz4jrNEII2ltPsNZGm7CTt3pDnlRM4RTOUcSaBw/igcDC5s2hoW?=
 =?us-ascii?Q?x82/nyO5cVi0NxjcOP2JO5RQW7/nhp5BqbtbFhHOZfTiD1ggtsek9IVcB0zf?=
 =?us-ascii?Q?lKI9Ux1pXhahkJg89pGv8Wd6+lthWcZgoX2NU6s4DEilWmmoAywGhvQLOHUz?=
 =?us-ascii?Q?FABbnx6PDnnuBwkFwIHClC78QsKkU5AvhWxkBDkoO0FbieIzqkATMbKChCHA?=
 =?us-ascii?Q?T/iqTT6PiKUzI/EAnDwrNwK2C43OTt6wiNm6u0yKIQ4/kIUB1HDmlyvoZSvF?=
 =?us-ascii?Q?IpEhH8K56KAw4gSp2tL0onVlzwYm1Ss2f95joveJCCoEBrJQBw/8tEFaoy9Z?=
 =?us-ascii?Q?5yXWtMheiKsP/H120n+Y1lhU2T8J6iwg00C/S4wzrfdPBpXzUKkqh//JXvJj?=
 =?us-ascii?Q?1ZkYBIL62USB1Erjp6M8lg2OXBNp3aOlkgw9KSKjfmkWRk53ydBsOsB3mxr1?=
 =?us-ascii?Q?YZNBf0ZZKq7gnizoSU/oStGrdXUJ+QUYtMmuF7Cczot+Z3GyS2gIZeGkq8/9?=
 =?us-ascii?Q?Y64DW17m38QSwGjHm/iUElE52PvNKwebmhellUucrMV4fZr+nUD8yZLZ4uBs?=
 =?us-ascii?Q?9GamW7UiRDs3gcgLQ6rYIdfTp4mJFms1DuNuj1fKgQKkPcfwLg3/IzCfM7/J?=
 =?us-ascii?Q?XXqnx5PIVYmPEEyiycksydEbqFz5lr78ivMyTt6aga3D4wi0NKVwDUVAkjE8?=
 =?us-ascii?Q?pVJZXENXGccEmy9eYapySgEysV8BPgSVV/JV599FnppMCWof8H12BkYQFYC2?=
 =?us-ascii?Q?gw=3D=3D?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: qmul.ac.uk
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: PR3PR07MB6875.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: fc6dc9d3-47b0-417d-2366-08d9e580207a
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2022 12:41:11.1824 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 569df091-b013-40e3-86ee-bd9cb9e25814
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: ZvgNfP64G4CBqmyUPslQjRbqbegt6txNv8pFQUDW99NrKLZxv2YDO+bRpsM5c9MRbqS4zaKaRbE9XFVqWOfoZA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR07MB8244
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 3332
Cc: "3332 <at> debbugs.gnu.org" <3332 <at> debbugs.gnu.org>,
 "4275 <at> debbugs.gnu.org" <4275 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

I no longer have access to the printer I referred to in my initial bug repo=
rt. My current printer is connected using WiFi via the Internet. I tried th=
e recipe described by Arash and got essentially the same result. To be prec=
ise, 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@HIDDEN>=20
Sent: Monday, 31 January 2022 6:58 pm
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: Francis Wright <f.j.wright@HIDDEN>; 3332 <at> debbugs.gnu.org; 4275@debb=
ugs.gnu.org
Subject: Re: bug#3332: bug#4275: 23.1; Printing

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> "Francis Wright" <f.j.wright@HIDDEN> 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=20
>> driver properties show that it is connect to the port DOT4_001. I=20
>> 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=20
>> Emacs very often!)
>
> (I'm going through old bug reports that unfortunately weren't resolved=20
> 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 p=
rinter, and this is the backtrace:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (permission-denied "Opening output file" "Per=
mission 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@HIDDEN:
bug#3332; Package emacs. Full text available.

Message received at 3332 <at> debbugs.gnu.org:


Received: (at 3332) by debbugs.gnu.org; 31 Jan 2022 19:50:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 31 14:50:30 2022
Received: from localhost ([127.0.0.1]:41025 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nEch4-0001cU-K6
	for submit <at> debbugs.gnu.org; Mon, 31 Jan 2022 14:50:30 -0500
Received: from eggs.gnu.org ([209.51.188.92]:60752)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1nEch0-0001c3-D8; Mon, 31 Jan 2022 14:50:26 -0500
Received: from [2001:470:142:3::e] (port=53754 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1nEcgs-00018m-VD; Mon, 31 Jan 2022 14:50:19 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=gscWjKp/G7/JOrpve2jppg0JEUj4I3RChMKwUsUoDwI=; b=PHCp0ceZ9lgO
 uKs9nlrHhkhawmkQWEEX1I7PXMbQ/sFgXM82q+oQnHxIWUIlKZyjXuRZwBCuLXQDBGV2n4VCtz6xr
 UEEDRQuDCxOSuuA9hVtcJGFb5KUbHnexxckQrqXmbq5fdCwTfGAbwGK3B8O56r93dKyepS5ItvsCw
 M0ECLlWlQIdPGfQTz35ERY2AsSqnJKpoajiSNopx+jvO2P2QD4BXSahvCh0MBXnrW+xpltsNmNcpD
 1wVximRsHOim1+kXqFeQ1tEkZd6KLQHqPfpvWOtvnjDMS6k1Eaj5HgCK69z+LwM+JpBGISC/rlbfW
 kJNOSRiEOVBdFBnFqbYzEQ==;
Received: from [87.69.77.57] (port=4895 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1nEcgf-0000Ja-Nj; Mon, 31 Jan 2022 14:50:16 -0500
Date: Mon, 31 Jan 2022 21:50:03 +0200
Message-Id: <834k5j8z2s.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Arash Esbati <arash@HIDDEN>
In-Reply-To: <861r0nn17w.fsf@HIDDEN> (message from Arash Esbati on Mon, 31
 Jan 2022 20:40:03 +0100)
Subject: Re: bug#3332: bug#4275: 23.1; Printing
References: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN>
 <87ee4nyghu.fsf@HIDDEN> <86r18nzqd2.fsf@HIDDEN>
 <838ruv90h5.fsf@HIDDEN> <861r0nn17w.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 3332
Cc: f.j.wright@HIDDEN, larsi@HIDDEN, 3332 <at> debbugs.gnu.org,
 4275 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Arash Esbati <arash@HIDDEN>
> Cc: larsi@HIDDEN,  f.j.wright@HIDDEN,  3332 <at> debbugs.gnu.org,
>   4275 <at> debbugs.gnu.org
> Date: Mon, 31 Jan 2022 20:40:03 +0100
> 
> Eli Zaretskii <eliz@HIDDEN> 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@HIDDEN:
bug#3332; Package emacs. Full text available.

Message received at 3332 <at> debbugs.gnu.org:


Received: (at 3332) by debbugs.gnu.org; 31 Jan 2022 19:40:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 31 14:40:41 2022
Received: from localhost ([127.0.0.1]:41012 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nEcXY-0001Iq-U5
	for submit <at> debbugs.gnu.org; Mon, 31 Jan 2022 14:40:41 -0500
Received: from eggs.gnu.org ([209.51.188.92]:58296)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>)
 id 1nEcXW-0001IV-H1; Mon, 31 Jan 2022 14:40:39 -0500
Received: from [2001:470:142:3::e] (port=53446 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>)
 id 1nEcXQ-00083V-NT; Mon, 31 Jan 2022 14:40:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=MHlDTdqvbIXiruP497Fd+v/Lq613yurLv2n0ofnt1wo=; b=sEjBDetfvQp2tFfR1QPa
 l0FmD3GlQK9NnP0ZJ2F9fHQ8OLcmZKysVNO5jUFzUB+eueK2HGBtCOQXy6AN+3o/3KCNYp9Qdtfh8
 UstkEr3+ND7EYXyNGMFXBjO03mTAOCvJozDfXzdthVFUV77TXCPv39QAmekvgiXTliIjNE7e1G3kJ
 hzqbKJAiJRXwHf+HlN/Lxn6YWX1dUwrBr14RoWlsb22giaeecM7wE3VXv2+gDgHji0lbKOfqbwqyJ
 D9gsQwHUtqc2JAXRMwCzPO2IkpnkDInD5rfdBfUtf7LVQATXXy14Eey1rzN2WWjWy9hkrI0LXY8Pr
 fhGk9cYE7AnAag==;
Received: from p4fe3e9f7.dip0.t-ipconnect.de ([79.227.233.247]:54601
 helo=MUTANT)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>)
 id 1nEcXB-0007UI-N7; Mon, 31 Jan 2022 14:40:32 -0500
From: Arash Esbati <arash@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#3332: bug#4275: 23.1; Printing
References: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN>
 <87ee4nyghu.fsf@HIDDEN> <86r18nzqd2.fsf@HIDDEN>
 <838ruv90h5.fsf@HIDDEN>
Date: Mon, 31 Jan 2022 20:40:03 +0100
In-Reply-To: <838ruv90h5.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 31 Jan
 2022 21:19:50 +0200")
Message-ID: <861r0nn17w.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 3332
Cc: f.j.wright@HIDDEN, larsi@HIDDEN, 3332 <at> debbugs.gnu.org,
 4275 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> 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@HIDDEN:
bug#3332; Package emacs. Full text available.

Message received at 3332 <at> debbugs.gnu.org:


Received: (at 3332) by debbugs.gnu.org; 31 Jan 2022 19:21:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 31 14:21:32 2022
Received: from localhost ([127.0.0.1]:40860 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nEcF1-0000fK-Qj
	for submit <at> debbugs.gnu.org; Mon, 31 Jan 2022 14:21:32 -0500
Received: from eggs.gnu.org ([209.51.188.92]:48792)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1nEcEs-0000ep-59; Mon, 31 Jan 2022 14:21:22 -0500
Received: from [2001:470:142:3::e] (port=53228 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1nEcEl-0003zf-Go; Mon, 31 Jan 2022 14:21:16 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=p9Jrig2jMLYOQGsUr2yj4+HfCFblG2wPKaJYhieTDN4=; b=IwLZ7QAuwNYZ
 VlotboxVp4VaHwRVCT9XJvlwZYPkaIx8qLNvTPT+uHA6rNxy74CFP5mPFzFl4118GBMNAivAlWGq+
 6823d794QKmiOVxv+ZnaLoSTOQuJ5TvtsODpS5rAi3GXizgiRpgbs89Ql0wpNzZGWchya5+lopbQt
 9o/+8vjpH/gTEg4KUg9K6G8LF1miI+R/A6KVU/EF7XkeoffKEjlDxWzangPvjEmWoD4xLB8B5B528
 qgy1rAc2W+Nc36QJG/7Oboj6wnqDh2YAc7NkNq7fYwlxVH8FB+Zr5f0WWFpcVjDnkZhAMf5oTmP++
 HzQoc6WdhVUpGFCccfG1ZQ==;
Received: from [87.69.77.57] (port=3057 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1nEcDR-00062X-F5; Mon, 31 Jan 2022 14:19:57 -0500
Date: Mon, 31 Jan 2022 21:19:50 +0200
Message-Id: <838ruv90h5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Arash Esbati <arash@HIDDEN>
In-Reply-To: <86r18nzqd2.fsf@HIDDEN> (message from Arash Esbati on Mon, 31
 Jan 2022 19:56:09 +0100)
Subject: Re: bug#3332: bug#4275: 23.1; Printing
References: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN>
 <87ee4nyghu.fsf@HIDDEN> <86r18nzqd2.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 3332
Cc: f.j.wright@HIDDEN, larsi@HIDDEN, 3332 <at> debbugs.gnu.org,
 4275 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Arash Esbati <arash@HIDDEN>
> Date: Mon, 31 Jan 2022 19:56:09 +0100
> Cc: Francis Wright <f.j.wright@HIDDEN>, 3332 <at> debbugs.gnu.org,
>  4275 <at> debbugs.gnu.org
> 
> Lars Ingebrigtsen <larsi@HIDDEN> writes:
> 
> > "Francis Wright" <f.j.wright@HIDDEN> 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@HIDDEN:
bug#3332; Package emacs. Full text available.

Message received at 3332 <at> debbugs.gnu.org:


Received: (at 3332) by debbugs.gnu.org; 31 Jan 2022 18:58:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 31 13:58:18 2022
Received: from localhost ([127.0.0.1]:40807 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nEbsY-00069W-9w
	for submit <at> debbugs.gnu.org; Mon, 31 Jan 2022 13:58:18 -0500
Received: from eggs.gnu.org ([209.51.188.92]:41166)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>)
 id 1nEbsK-000689-Tc; Mon, 31 Jan 2022 13:58:16 -0500
Received: from [2001:470:142:3::e] (port=52886 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>)
 id 1nEbsE-0008Gw-Ro; Mon, 31 Jan 2022 13:57:58 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=qeqQwczrINfEXolRIJ+Y35DrJY7xLgUyRntTmkOCUlc=; b=kK8ceTTOsFDaWTsj5HSZ
 lWaTkqZipJkC2uwxuChNFUff0PKYMCgxJQ67V6+YJl25IBF+3TCGQKi+Xwhzq2XiHPvrSZle9aAmc
 F2WCNz9/G7QcSRol7yJgJUyn7+J+w4d/cHkBKrCsaDCgO76Mb/MwtYXQ3yWOXISWraGMKaOzxtoyK
 TJdBvpZZNtH8JRU/0tTTVDdzxcrkibuNoQAqkUajRAvrfOs4AuOuQCr5X/mulAoaSU0/iKNh09LXe
 k9aERQnB+fog6gVZIUiGrQpLMnq+Tl6Ye7JvG1YuoYY8REHMBU+Ykj9ovAA5yCg8XWWJBOMBDirdz
 Mnkz/XGCukt/vQ==;
Received: from p4fe3e9f7.dip0.t-ipconnect.de ([79.227.233.247]:53627
 helo=MUTANT)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>)
 id 1nEbsE-0004bH-Bc; Mon, 31 Jan 2022 13:57:58 -0500
From: Arash Esbati <arash@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#3332: bug#4275: 23.1; Printing
References: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN>
 <87ee4nyghu.fsf@HIDDEN>
Date: Mon, 31 Jan 2022 19:56:09 +0100
In-Reply-To: <87ee4nyghu.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Mon,
 31 Jan 2022 18:14:37 +0100")
Message-ID: <86r18nzqd2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 3332
Cc: Francis Wright <f.j.wright@HIDDEN>, 3332 <at> debbugs.gnu.org,
 4275 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> "Francis Wright" <f.j.wright@HIDDEN> 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@HIDDEN:
bug#3332; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 3332 <at> debbugs.gnu.org:


Received: (at 3332) by debbugs.gnu.org; 31 Jan 2022 17:14:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 31 12:14:49 2022
Received: from localhost ([127.0.0.1]:40585 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nEaGP-0004ZE-5j
	for submit <at> debbugs.gnu.org; Mon, 31 Jan 2022 12:14:49 -0500
Received: from quimby.gnus.org ([95.216.78.240]:48324)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>)
 id 1nEaGN-0004Yu-AG; Mon, 31 Jan 2022 12:14:47 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=DUe89DwyT0mYxXH6vE72w77GNak4cm46ND3cTZG0yAA=; b=ApR6EAehhY+NUOMLz0z6fcPkze
 8M0/HHMCCJCN1VfzYttPnGlSQL3zbgGrVl2KzyUN3rTlVqwoGeWPx805ettctYm6pIUnETAlTMyoh
 ISNc8KPRczfySZg9+0z1i+X9eI3Zyn6dIuRk7ETb6x5DRrzwZuAR8jt7cCzLrY9r5rv0=;
Received: from [84.212.220.105] (helo=giant)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nEaGE-0004sh-Fd; Mon, 31 Jan 2022 18:14:40 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: "Francis Wright" <f.j.wright@HIDDEN>
Subject: Re: bug#4275: 23.1; Printing
References: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN>
X-Now-Playing: Moor Mother's _Fetish Bones_: "Creation Myth"
Date: Mon, 31 Jan 2022 18:14:37 +0100
In-Reply-To: <001301c9d866$3827b540$a8771fc0$@j.wright@HIDDEN> (Francis
 Wright's message of "Tue, 19 May 2009 10:43:09 +0100")
Message-ID: <87ee4nyghu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: "Francis Wright" <f.j.wright@HIDDEN> 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 [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 3332
Cc: 3332 <at> debbugs.gnu.org, 4275 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#3332; Package emacs. Full text available.
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: Thu, 3 Mar 2022 21:45:01 UTC

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