From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#3332: bug#4275: 23.1; Printing Date: Mon, 31 Jan 2022 21:19:50 +0200 Message-ID: <838ruv90h5.fsf@gnu.org> References: <001301c9d866$3827b540$a8771fc0$@j.wright@qmul.ac.uk> <87ee4nyghu.fsf@gnus.org> <86r18nzqd2.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2475"; mail-complaints-to="usenet@ciao.gmane.io" Cc: f.j.wright@qmul.ac.uk, larsi@gnus.org, 3332@debbugs.gnu.org, 4275@debbugs.gnu.org To: Arash Esbati Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 31 20:47:27 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEce7-0000LZ-06 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jan 2022 20:47:27 +0100 Original-Received: from localhost ([::1]:52302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEce3-00088w-Qn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jan 2022 14:47:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEcFZ-0001KT-ER for bug-gnu-emacs@gnu.org; Mon, 31 Jan 2022 14:22:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47958) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEcFY-00049l-2F for bug-gnu-emacs@gnu.org; Mon, 31 Jan 2022 14:22:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nEcFV-0000gQ-Ov for bug-gnu-emacs@gnu.org; Mon, 31 Jan 2022 14:22:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jan 2022 19:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3332 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 3332-submit@debbugs.gnu.org id=B3332.16436568922571 (code B ref 3332); Mon, 31 Jan 2022 19:22:01 +0000 Original-Received: (at 3332) by debbugs.gnu.org; 31 Jan 2022 19:21:32 +0000 Original-Received: from localhost ([127.0.0.1]:40860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEcF1-0000fK-Qj for submit@debbugs.gnu.org; Mon, 31 Jan 2022 14:21:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEcEs-0000ep-59; Mon, 31 Jan 2022 14:21:22 -0500 Original-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 ) 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==; Original-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 ) id 1nEcDR-00062X-F5; Mon, 31 Jan 2022 14:19:57 -0500 In-Reply-To: <86r18nzqd2.fsf@gnu.org> (message from Arash Esbati on Mon, 31 Jan 2022 19:56:09 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:225719 Archived-At: > From: Arash Esbati > Date: Mon, 31 Jan 2022 19:56:09 +0100 > Cc: Francis Wright , 3332@debbugs.gnu.org, > 4275@debbugs.gnu.org > > Lars Ingebrigtsen writes: > > > "Francis Wright" 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 # "" nil # nil ("(page headers are not supported)")) > w32-direct-print-region-function(1 # "" nil # nil "(page headers are not supported)") > apply(w32-direct-print-region-function 1 # "" nil # nil "(page headers are not supported)") > lpr-print-region(1 # ("(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.