From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.devel Subject: Re: Mode-line face bug Date: Fri, 09 Mar 2007 11:24:00 -0500 Message-ID: <87fy8ez8pr.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173457548 22995 80.91.229.12 (9 Mar 2007 16:25:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2007 16:25:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: emacs-pretest-bug@gnu.org Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Fri Mar 09 17:25:34 2007 Return-path: Envelope-to: gebp-emacs-pretest-bug@gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPhuL-0002qr-P5 for gebp-emacs-pretest-bug@gmane.org; Fri, 09 Mar 2007 17:25:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPhud-0006E5-PH for gebp-emacs-pretest-bug@gmane.org; Fri, 09 Mar 2007 11:25:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPhuH-000640-R5 for emacs-pretest-bug@gnu.org; Fri, 09 Mar 2007 11:25:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPhuG-00063W-DI for emacs-pretest-bug@gnu.org; Fri, 09 Mar 2007 11:25:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPhuG-00063L-30 for emacs-pretest-bug@gnu.org; Fri, 09 Mar 2007 11:25:24 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HPhtt-0003zl-H0 for emacs-pretest-bug@gnu.org; Fri, 09 Mar 2007 11:25:02 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HPhtO-0006yH-IR for emacs-pretest-bug@gnu.org; Fri, 09 Mar 2007 17:24:30 +0100 Original-Received: from main-twelve-two-fifty-six.mit.edu ([18.19.6.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Mar 2007 17:24:30 +0100 Original-Received: from cyd by main-twelve-two-fifty-six.mit.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Mar 2007 17:24:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main-twelve-two-fifty-six.mit.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:wTlgYXRaihGXGKPHU7CSmkinjbI= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for CVS Emacs." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.pretest.bugs:17486 gmane.emacs.devel:67630 Archived-At: Richard Stallman writes: > ,---- > | Emacs.mode-line.attributeBackground: #fbf8f1 > | Emacs.mode-line.attributeForeground: #101010 > `---- > > but I don't have such settings in my ~/.Xresources. > > The window manager makes those, but you've identified an Emacs bug. > The bug is that, for frames other than the first, > the X resources override your customization: > > Can someone please fix that, then ack? The behavior where X resources override Custom (and all other Elisp face settings) seems to have been around since forever --- it can be seen in Emacs 21 --- and there is no easy clean way to fix it. One possibility is for the relevant code in faces.el to look for a 'theme-face, and not apply X resources if so. This is a kludge since the faces code should ideally be independent of custom, but maybe it will suffice for now. Another possibility is to stop the window manager from automatically setting a face resource for the mode-line. There would then be no problem with the convention that X resources override Elisp, since X resources would be set by the user. I don't know how to do this, though. In the first place, why does the window manager automagically set the mode-line face resource?