Bug 196389 - emacs forgets face color customizations with FC5 Xserver?
emacs forgets face color customizations with FC5 Xserver?
Product: Fedora
Classification: Fedora
Component: emacs (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Chip Coldwell
Depends On:
  Show dependency treegraph
Reported: 2006-06-22 17:22 EDT by James Ralston
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-06-13 18:26:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
My .emacs file. (815 bytes, text/plain)
2006-06-22 17:23 EDT, James Ralston
no flags Details
My xorg.conf file. (2.68 KB, text/plain)
2006-06-22 17:24 EDT, James Ralston
no flags Details

  None (edit)
Description James Ralston 2006-06-22 17:22:47 EDT
I've customized (and saved) my mode-line using customize-face.  Here's what's in
my .emacs:

  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(mode-line ((t (:background "navy" :foreground "yellow" :box (:line-width -1
:style released-button))))))

If I start up a new Emacs window (under X11), that initial window contains a
correctly-customized mode-line, and if I examine the values via customize-face,
they are correct:

[X] Foreground: Value Menu Color: yellow      (sample)
[X] Background: Value Menu Color: navy        (sample)

The problem is that *only* that initial window contains the correct mode-line
customizations.  If I open any other X11 windows, the mode-line customizations
are lost.  In such a window, if I examine the values via customize-face, they
are incorrect:

[X] Foreground: Value Menu Color: #000000     (sample)
[X] Background: Value Menu Color: #ede9e3     (sample)

I can change the values to what they should be (yellow and navy, respectively),
which will reset the window in question, but the same thing happens if I open
another window.

This behavior is new with Fedora Core 5.  Furthermore, from experimenting, the
problem actually follows the X server, not Emacs.  That is, all versions of
Emacs (FC4, FC5, RHEL4, et. al.) exhibit this behavior when displaying on my FC5
X server.  On any other platform's X server (e.g., FC4, RHEL4), no version of
Emacs displays this behavior.

So, it would appear to be that there's some quality to the FC5 X server that
Emacs doesn't like.  Unfortunately, I don't know what that would be, or how to
fix it.  :(

$ rpm -q emacs xorg-x11-server-Xorg
Comment 1 James Ralston 2006-06-22 17:23:35 EDT
Created attachment 131391 [details]
My .emacs file.
Comment 2 James Ralston 2006-06-22 17:24:26 EDT
Created attachment 131392 [details]
My xorg.conf file.
Comment 3 James Ralston 2007-06-13 18:26:08 EDT
This is fixed in emacs-22.0.990-2.fc7 and xorg-x11-server-Xorg-, in F7.

This problem was actually a new (but broken) feature: Emacs was trying to ensure
that only the Emacs window which had the focus had color decorations on the mode
line; non-active windows had a grey mode line.  But something was broken; Emacs
would never color the mode line on any other window but the first one which was

At any rate, this works properly in F7; the Emacs window with the focus honors
the color customizations for the mode line; non-active windows are grey. 
(There's probably a way to disable the "only the window with the focus gets
color" feature, but I don't mind it.)

Note You need to log in before you can comment on or make changes to this bug.