Richard Stallman wrote:
Humm, trying the initialization above, I can see that ps-print is loaded before .emacs file is loaded. So, the background is white when ps-print is loaded and, only during .emacs loading, the background is changed.

I suspected as much.  What causes that?
What does the backtrace say?

Well, now I see what causes that, it's my ~/.emacs file.

If the ~/.emacs file have:

   (setq initial-frame-alist (append '((background-color "DarkSlateGray"))
                                     initial-frame-alist))
   (setq default-frame-alist (append '((background-color "DarkSlateGray"))
                                     default-frame-alist))
   (require 'printing) ; or (require 'ps-print)

then ps-print is loaded before initial-frame-alist has any effect, so, ps-default-bg is set to white.

I think that initial-frame-alist will take effect only after ~/.emacs is loaded.


> > 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.
    >     >
    >
    > With your explanation, I now understand that idea, and I think it is a
    > good one.
>
    Ok, could I implement it now in Emacs 22 before the release?

Yes.  But please also investigate what causes ps-print to be loaded
early.

Ok



_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to