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: Fri, 19 Jan 2007 00:02:45 -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:
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





reply via email to

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