From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: can't set both mode-line color and default frame font? Date: Mon, 17 Sep 2007 08:18:01 +0200 Message-ID: <46EE1C19.7070704@swipnet.se> References: <87ejhcmgp2.fsf@baldur.tsdh.de> <200709062116.l86LGWnO000262@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1190009916 26837 80.91.229.12 (17 Sep 2007 06:18:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2007 06:18:36 +0000 (UTC) Cc: emacs-devel@gnu.org, =?ISO-8859-15?Q?Johan_Bockg=E5rd?= To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 17 08:18:35 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IX9wI-0005dp-Kz for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 08:18:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IX9wH-0005N6-BJ for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 02:18:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IX9wD-0005Lh-TT for emacs-devel@gnu.org; Mon, 17 Sep 2007 02:18:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IX9wB-0005IW-9u for emacs-devel@gnu.org; Mon, 17 Sep 2007 02:18:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IX9wB-0005IO-2E for emacs-devel@gnu.org; Mon, 17 Sep 2007 02:18:27 -0400 Original-Received: from av11-1-sn2.hy.skanova.net ([81.228.8.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IX9w6-0002sX-H4; Mon, 17 Sep 2007 02:18:22 -0400 Original-Received: by av11-1-sn2.hy.skanova.net (Postfix, from userid 502) id 7F6FD385E6; Mon, 17 Sep 2007 08:18:21 +0200 (CEST) Original-Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av11-1-sn2.hy.skanova.net (Postfix) with ESMTP id 6B14537F07; Mon, 17 Sep 2007 08:18:21 +0200 (CEST) Original-Received: from husetbladh.homeip.net (90-231-102-24-no59.tbcn.telia.com [90.231.102.24]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id 55ABD37E49; Mon, 17 Sep 2007 08:18:21 +0200 (CEST) User-Agent: Thunderbird 2.0.0.6 (X11/20070728) In-Reply-To: X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79086 Archived-At: Richard Stallman skrev: > Unfortunately, I don't see any way to distinguish settings made > by the GNOME settings demon from those made by the user. > > I know that X stores resources in various places. Perhaps > some of these places should have higher priority than others. > > The file xrdb.c, which I have never really understood, seems > to try to merge X resources from various places. Perhaps > that points a way to such a solution. > > Would someone like to study xrdb.c and report on what is possible? > xrdb.c merges resources from various sources. They are read in this order (which is what X11 recommends): - builtin - system application file (.../X11/app-defaults/Emacs) - user application file (XUSERFILESEARCHPATH is searched) - user database (RESOURCE_MANAGER property or ~/.Xdefaults, and screen specific property SCREEN_RESOURCES) - file pointed to by environment variable XENVIRONMENT - command line (-xrm) Nowdays the users X resources (~/.Xdefaults) are more often than not merged into the RESOURCE_MANAGER property of the root X window (see XResourceManagerString). This is what you see if you do xrdb -query. The Gnome settings daemon also puts stuff here. That is, resources from the users .Xdefaults/.Xresources and the resources from the Gnome settings daemon are not possible to distinguish. To further complicate matters, system and application files can be set with the environment variables XFILESEARCHPATH, XAPPLRESDIR and XUSERFILESEARCHPATH. So it is practically impossible to know the source for an individual resource, except perhaps the command line. Jan D.