[Top][All Lists]

[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: Richard Stallman
Subject: Re: ps-print-buffer-with-faces doesn't use selected frame's background
Date: Thu, 18 Jan 2007 12:27:05 -0500

    Well, the ps-print commands have a comment:


    just before the command definition.

Yes.  So when you run one of these commands, it will load ps-print.
However, if you type C-h v ps-default-bg before that, it will not see
that the variable even exists.

    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?

    >     >     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

reply via email to

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