GNU bug report logs - #21741
24.5; default printer page size can not be changed

Previous Next

Package: emacs;

Reported by: Emilio Sovero <easovero <at> me.com>

Date: Fri, 23 Oct 2015 01:18:02 UTC

Severity: normal

Found in version 24.5

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21741 in the body.
You can then email your comments to 21741 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#21741; Package emacs. (Fri, 23 Oct 2015 01:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Emilio Sovero <easovero <at> me.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 23 Oct 2015 01:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Emilio Sovero <easovero <at> me.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; default printer page size can not be changed
Date: Fri, 23 Oct 2015 00:55:41 +0000 (GMT)
[Message part 1 (text/plain, inline)]
On a Mac running OSX 10.10.5 I am unable to change Emacs to print any
other size but A4.
I have set the ps-page-size to letter
That page size letter is defined in the data base properly. But when I
print a buffer it sends a A4 page. No matter what I change it to it
always prints in A4 (which my printer hangs on).






In GNU Emacs 24.5.1 (x86_64-apple-darwin14.3.0, NS apple-appkit-1347.57)
of 2015-05-30 on new-host-5.home
Windowing system distributor `Apple', version 10.3.1348
Configured using:
`configure --with-ns'

Important settings:
locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
help-fns mail-prsvr mail-utils easymenu printing ps-print ps-def lpr
re-builder time-date tooltip electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process cocoa ns
multi-tty emacs)

Memory information:
((conses 16 85450 5173)
(symbols 48 18200 0)
(miscs 40 77 82)
(strings 32 13532 4417)
(string-bytes 1 402877)
(vectors 16 10025)
(vector-slots 8 383404 10871)
(floats 8 372 221)
(intervals 56 202 0)
(buffers 960 12))


Emilio Sovero

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21741; Package emacs. (Fri, 23 Oct 2015 04:02:02 GMT) Full text and rfc822 format available.

Message #8 received at 21741 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Emilio Sovero <easovero <at> me.com>
Cc: 21741 <at> debbugs.gnu.org
Subject: Re: bug#21741: 24.5; default printer page size can not be changed
Date: Fri, 23 Oct 2015 00:00:57 -0400
Emilio Sovero wrote:

> On a Mac running OSX 10.10.5 I am unable to change Emacs to print any
> other size but A4.

That is odd, since Emacs is a USA-centric application and defaults to
letter paper size AFAIK.

> I have set the ps-page-size to letter

There is no "ps-page-size". There is ps-paper-type, defaulting to 'letter.

Anyway, please do:

emacs -Q
C-u M-x ps-print-buffer RET test.ps RET

and send the file test.ps here as an attachment. Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21741; Package emacs. (Fri, 23 Oct 2015 04:45:03 GMT) Full text and rfc822 format available.

Message #11 received at 21741 <at> debbugs.gnu.org (full text, mbox):

From: Emilio Sovero <easovero <at> me.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 21741 <at> debbugs.gnu.org
Subject: Re: bug#21741: 24.5; default printer page size can not be changed
Date: Thu, 22 Oct 2015 21:44:16 -0700
[Message part 1 (text/plain, inline)]
Yes I meant ps-page-type.
Here is the output you requested.
Thanks
[test.ps (application/postscript, attachment)]
[Message part 3 (text/plain, inline)]
Emilio Sovero

> On Oct 22, 2015, at 9:00 PM, Glenn Morris <rgm <at> gnu.org> wrote:
> 
> Emilio Sovero wrote:
> 
>> On a Mac running OSX 10.10.5 I am unable to change Emacs to print any
>> other size but A4.
> 
> That is odd, since Emacs is a USA-centric application and defaults to
> letter paper size AFAIK.
> 
>> I have set the ps-page-size to letter
> 
> There is no "ps-page-size". There is ps-paper-type, defaulting to 'letter.
> 
> Anyway, please do:
> 
> emacs -Q
> C-u M-x ps-print-buffer RET test.ps RET
> 
> and send the file test.ps here as an attachment. Thanks.


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21741; Package emacs. (Fri, 23 Oct 2015 04:52:02 GMT) Full text and rfc822 format available.

Message #14 received at 21741 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Emilio Sovero <easovero <at> me.com>
Cc: 21741 <at> debbugs.gnu.org
Subject: Re: bug#21741: 24.5; default printer page size can not be changed
Date: Fri, 23 Oct 2015 00:51:17 -0400
Emilio Sovero wrote:

> Here is the output you requested.

Thanks. That PS seems in every way to be letter-sized, so I have no idea
why it prints as A4 for you.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21741; Package emacs. (Fri, 23 Oct 2015 04:58:02 GMT) Full text and rfc822 format available.

Message #17 received at 21741 <at> debbugs.gnu.org (full text, mbox):

From: Emilio Sovero <easovero <at> me.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 21741 <at> debbugs.gnu.org
Subject: Re: bug#21741: 24.5; default printer page size can not be changed
Date: Thu, 22 Oct 2015 21:57:31 -0700
Glenn,
But if you read the test.ps file the margins are set for the A4 paper size. See the fragment below.

%%EndResource

/LandscapeMode       false def
/UpsideDown          false def
/NumberOfColumns     1 def
/LandscapePageHeight 792.0 def
/PrintPageWidth      498.6141732283465 def
/PrintWidth   498.6141732283465 def
/PrintHeight  643.7029732283465 def

Emilio

> On Oct 22, 2015, at 9:51 PM, Glenn Morris <rgm <at> gnu.org> wrote:
> 
> Emilio Sovero wrote:
> 
>> Here is the output you requested.
> 
> Thanks. That PS seems in every way to be letter-sized, so I have no idea
> why it prints as A4 for you.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21741; Package emacs. (Fri, 23 Oct 2015 17:06:02 GMT) Full text and rfc822 format available.

Message #20 received at 21741 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Emilio Sovero <easovero <at> me.com>
Cc: 21741 <at> debbugs.gnu.org
Subject: Re: bug#21741: 24.5; default printer page size can not be changed
Date: Fri, 23 Oct 2015 13:05:32 -0400
Emilio Sovero wrote:

> But if you read the test.ps file the margins are set for the A4 paper
> size. See the fragment below.
>
> %%EndResource
>
> /LandscapeMode       false def
> /UpsideDown          false def
> /NumberOfColumns     1 def
> /LandscapePageHeight 792.0 def
> /PrintPageWidth      498.6141732283465 def
> /PrintWidth   498.6141732283465 def
> /PrintHeight  643.7029732283465 def


Which bit of this is supposed to be A4?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21741; Package emacs. (Fri, 23 Oct 2015 17:30:04 GMT) Full text and rfc822 format available.

Message #23 received at 21741 <at> debbugs.gnu.org (full text, mbox):

From: Emilio Sovero <easovero <at> me.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 21741 <at> debbugs.gnu.org
Subject: Re: bug#21741: 24.5; default printer page size can not be changed
Date: Fri, 23 Oct 2015 17:29:18 +0000 (GMT)
[Message part 1 (text/plain, inline)]
The 
/PrintPageWidth 498.6141732283465 def
Dimensions are in points.

I will dig into the Postscript code this week.
The problem for me is that at work we have a Large shared printer server that if the job asks for a paper size it does not have (A4), the only option the printer offers me is to load the missing paper size (which is not practical). There is not way (that I know) to override it and print on a letter sized paper.
At home I have two printers HP2605dn that has a similar message but allows me override the paper size, and a Brother MFC7860DW that prints without problem 

Thanks for the help. I hope I am not causing too much distraction for you.
Emilio

On Oct 23, 2015, at 10:05 AM, Glenn Morris <rgm <at> gnu.org> wrote:

Emilio Sovero wrote:

But if you read the test.ps file the margins are set for the A4 paper
size. See the fragment below.

%%EndResource

/LandscapeMode false def
/UpsideDown false def
/NumberOfColumns 1 def
/LandscapePageHeight 792.0 def
/PrintPageWidth 498.6141732283465 def
/PrintWidth 498.6141732283465 def
/PrintHeight 643.7029732283465 def


Which bit of this is supposed to be A4?
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21741; Package emacs. (Fri, 23 Oct 2015 17:37:01 GMT) Full text and rfc822 format available.

Message #26 received at 21741 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Emilio Sovero <easovero <at> me.com>
Cc: 21741 <at> debbugs.gnu.org
Subject: Re: bug#21741: 24.5; default printer page size can not be changed
Date: Fri, 23 Oct 2015 13:36:38 -0400
Emilio Sovero wrote:

> The 
>
>     /PrintPageWidth 498.6141732283465 def
>
> Dimensions are in points.

?
Letter page is 8.5 inches wide = 612 points.

ps-left-margin = ps-right-margin = 2cm = 56.7 points

612 - 2 * 56.7 = 498.6

So everything looks fine to me. (Surely the margins can't influence the
physical paper size anyway?)

gv tells me the resulting ps is letter-sized.
ps-print hasn't changed in time immemorial, AFAIK.




Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Sun, 19 Sep 2021 22:30:03 GMT) Full text and rfc822 format available.

Notification sent to Emilio Sovero <easovero <at> me.com>:
bug acknowledged by developer. (Sun, 19 Sep 2021 22:30:04 GMT) Full text and rfc822 format available.

Message #31 received at 21741-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 21741-done <at> debbugs.gnu.org, Emilio Sovero <easovero <at> me.com>
Subject: Re: bug#21741: 24.5; default printer page size can not be changed
Date: Sun, 19 Sep 2021 15:29:47 -0700
Glenn Morris <rgm <at> gnu.org> writes:

> Emilio Sovero wrote:
>
>> The
>>
>>     /PrintPageWidth 498.6141732283465 def
>>
>> Dimensions are in points.
>
> ?
> Letter page is 8.5 inches wide = 612 points.
>
> ps-left-margin = ps-right-margin = 2cm = 56.7 points
>
> 612 - 2 * 56.7 = 498.6
>
> So everything looks fine to me. (Surely the margins can't influence the
> physical paper size anyway?)
>
> gv tells me the resulting ps is letter-sized.
> ps-print hasn't changed in time immemorial, AFAIK.

The last reply here has Glenn saying "everything looks fine to me", and
there have been no further replies within six years.  I'm therefore
closing this bug report.

If this conclusion is incorrect and this is still an issue, please reply
to this email (use "Reply to all" in your email client) and we can
reopen the bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 18 Oct 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 244 days ago.

Previous Next


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