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?




_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to