emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ps-print-buffer-with-faces doesn't use selected frame's background


From: Vinicius Jose Latorre
Subject: Re: ps-print-buffer-with-faces doesn't use selected frame's background
Date: Thu, 11 Jan 2007 22:43:17 -0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061211 SeaMonkey/1.0.7

Richard Stallman wrote:
I made some tests and it is not possible to use frame-parameter in the ps-default-fg and ps-default-bg initialization, because, during Emacs initilization, ps-print is loaded before the frame parameters are set.

1. Why is ps-print loaded before the frame parameters are set?
In what case is that so?

Well, I don't know why, but when the initialization code for ps-default-bg and ps-default-fg include frame-parameter, the result is always:

   ps-default-bg   "#ffffff" (white)
   ps-default-fg   "#222222" (gray98)

It doesn't matter if the background-color frame parameter is set to "white", "DarkSlateGray", "black" or any other color in the initial-frame-alist variable, the initialization value is always as above.


2. It would be possible to avoid computing the defaults for
ps-default-fg and ps-default-bg until a command is given to print
something.  Would that solve the problem?

Well, it could solve the problem.

If the variables have a value (let's say, 'frame-parameter), the value of them is calculated when any ps-print command is activated. And it's used frame-parameter function to get the color value.

Could I implement this now in Emacs 22 or wait until after release?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]