[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ps-print-color-p and the background colour of Emacs' frame
From: |
Christian Schlauer |
Subject: |
Re: ps-print-color-p and the background colour of Emacs' frame |
Date: |
Sun, 05 Aug 2007 22:19:26 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Vinicius Jose Latorre <address@hidden> writes:
> Christian Schlauer wrote:
[...]
>> I'm still using Emacs 22.1 -- I'll test it "soon" ;-)
>>
>
> Ok, please, let me know the results of your tests.
I updated my EMACS_22_BASE checkout and did
emacs -q --no-site-file
C-u M-x ps-print-buffer-with-faces RET C-g
M-x set-variable RET ps-default-bg RET frame-parameter RET
The last line is necessary in Emacs 22.1.50 as `ps-default-bg' is nil
now by default (as you wrote):
>>> PS: I fixed the problems below and also set ps-default-fg and
>>> ps-default-bg to nil, so the default colors are black for foreground
>>> and white for background.
Then I repeated the test sequences mentioned in my original posting.
Everything works as expected: the background of the PS files is white
_unless_ I set `ps-default-bg' to `frame-parameter' _and_
`ps-print-color-p' is t (the default). Thank you!
There is only an inaccurate doc string:
,----[ C-h v ps-default-bg RET ]
| It's used only when `ps-print-color-p' is non-nil.
`----
Correct is "It's used only when `ps-print-color-p' is not nil or
black-white." -- see below:
,----[ C-h v ps-print-color-p RET ]
| ps-print-color-p is a variable defined in `ps-print.el'.
| Its value is t
|
|
| Documentation:
| *Specify how buffer's text color is printed.
|
| Valid values are:
|
| nil Do not print colors.
|
| t Print colors.
|
| black-white Print colors on black/white printer.
| See also `ps-black-white-faces'.
|
| Any other value is treated as t.
|
| You can customize this variable.
`----
- Re: ps-print-color-p and the background colour of Emacs' frame,
Christian Schlauer <=