emacs-devel
[Top][All Lists]
Advanced

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

Re: can't set both mode-line color and default frame font?


From: Jan Djärv
Subject: Re: can't set both mode-line color and default frame font?
Date: Mon, 10 Sep 2007 20:21:40 +0200
User-agent: Thunderbird 1.5.0.13 (X11/20070824)

Richard Stallman skrev:
> Would someone please DTRT, then ack?

This is partly due to the known gnome-settings bug/feature.

Do
% xrdb -query|grep mode

and you will find something like:

Emacs.mode-line.attributeBackground:    #efebe7
Emacs.mode-line.attributeForeground:    #101010

The gnome settings daemon puts those values in there.

Bt why Emacs re-reads those values for the mode-line face when the
default-frame-alist is modifyed, I don't know.

I think it has to with this:

2007-09-07  Johan Bockgård  <address@hidden>

        * cus-face.el (custom-theme-set-faces): Set face attributes
        locally for each frame.

        Jan D.

> 
> 
> Date: Sun, 9 Sep 2007 20:34:16 +0200
> From: "Chris Moore" <address@hidden>
> To: address@hidden
> In-Reply-To: <address@hidden>
> MIME-Version: 1.0
> Cc: 
> Subject: Re: can't set both mode-line color and default frame font?
> Content-Type: multipart/mixed; boundary="===============0892060137=="
> 
> --===============0892060137==
> Content-Type: multipart/alternative; 
>       boundary="----=_Part_8012_22611638.1189362856504"
> 
> ------=_Part_8012_22611638.1189362856504
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
> 
> On 9/9/07, Chris Moore <address@hidden> wrote:
>> My .emacs says:
>>
>> (custom-set-faces '(mode-line ((nil (:background "yellow")))))
>> (custom-set-variables '(default-frame-alist '((font . "10x20"))))
>>
>> but the mode line isn't yellow.
>>
>> If I remove the 2nd line, the mode line is yellow.
>>
>> Setting the font shouldn't stop me setting the mode-line face, should it?
>>
>> This was working fine until a day or two ago, in CVS trunk.
> 
> 
> I was a little hasty there - I just switched from GNOME to XFCE4 and my
> .emacs is working again.  I hardly ever use GNOME, so maybe this hasn't
> changed in the last few days at all.
> 
> Evaluating the (custom-set-faces ...) s-expression once inside Emacs does
> set the mode-line to yellow in GNOME.  It just doesn't work from .emacs if I
> have the other line in my .emacs as well.
> 
> ------=_Part_8012_22611638.1189362856504
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
> 
> On 9/9/07, <b class="gmail_sendername">Chris Moore</b> &lt;<a 
> href="mailto:address@hidden";>address@hidden</a>&gt; wrote:<div><span 
> class="gmail_quote"></span><blockquote class="gmail_quote" 
> style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 
> padding-left: 1ex;">
> My .emacs says:<br><br>(custom-set-faces &#39;(mode-line ((nil (:background 
> &quot;yellow&quot;)))))<br>(custom-set-variables &#39;(default-frame-alist 
> &#39;((font . &quot;10x20&quot;))))<br><br>but the mode line isn&#39;t yellow.
> <br><br>If I remove the 2nd line, the mode line is yellow.<br><br>Setting the 
> font shouldn&#39;t stop me setting the mode-line face, should it?<br><br>This 
> was working fine until a day or two ago, in CVS trunk.</blockquote>
> <div><br>I was a little hasty there - I just switched from GNOME to XFCE4 and 
> my .emacs is working again.&nbsp; I hardly ever use GNOME, so maybe this 
> hasn&#39;t changed in the last few days at all.<br><br>Evaluating the 
> (custom-set-faces ...) s-expression once inside Emacs does set the mode-line 
> to yellow in GNOME.&nbsp; It just doesn&#39;t work from .emacs if I have the 
> other line in my .emacs as well.
> <br></div><br></div><br>
> 
> ------=_Part_8012_22611638.1189362856504--
> 
> 
> 
> --===============0892060137==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
> 
> _______________________________________________
> Emacs-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-devel
> --===============0892060137==--
> 
> 
> 
> 
> 
> _______________________________________________
> Emacs-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-devel





reply via email to

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