From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.help Subject: Re: emacs not finding Xdefaults Date: Wed, 28 Nov 2007 15:07:40 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196280562 14627 80.91.229.12 (28 Nov 2007 20:09:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2007 20:09:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: rustom Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 21:09:29 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IxTDi-0003qX-NO for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 21:09:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxTDS-0006r5-UC for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 15:09:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IxTDB-0006qn-IQ for help-gnu-emacs@gnu.org; Wed, 28 Nov 2007 15:08:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IxTD7-0006pF-0Y for help-gnu-emacs@gnu.org; Wed, 28 Nov 2007 15:08:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxTD6-0006pC-TA for help-gnu-emacs@gnu.org; Wed, 28 Nov 2007 15:08:40 -0500 Original-Received: from eagle.jhcloos.com ([207.210.242.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IxTD6-00015N-2J for help-gnu-emacs@gnu.org; Wed, 28 Nov 2007 15:08:40 -0500 Original-Received: by eagle.jhcloos.com (Postfix, from userid 10) id EB31C40146; Wed, 28 Nov 2007 20:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=eagle; t=1196280517; bh=Ui5+mCz1DCSj+p7ugno3qxVwKKYCcm/sBJgcaAbTd xc=; h=From:To:Cc:Subject:In-Reply-To:References:User-Agent:Face: Copyright:OpenPGP:OpenPGP-Fingerprint:X-Hashcash:X-Hashcash:Date: Message-ID:Lines:MIME-Version:Content-Type; b=OPUC385z4sO8RiCiRasO TsKWMF7jRTQjIvPAMikV/IaQ8F6ePQGJdTNvhB3aoO7WXSwTAzqOLZEwYJ6vqZw75z4 Call3b46d7GzIVMc6Hv5dAHbEpld/NfhLU7tZlT24fTzWf1wNss8an96eH1lTiGBAib TqEOnyvgCPsAAn0Uc= Original-Received: by lugabout.jhcloos.org (Postfix, from userid 500) id C2DAA2141EC; Wed, 28 Nov 2007 20:08:03 +0000 (UTC) In-Reply-To: (rustom's message of "Wed, 28 Nov 2007 06:10:24 -0800 (PST)") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAI1J REFUOE+lU9ESgCAIg64P1y+ngUdxhl5H8wFbbM0OmUiEhKkCYaZThXCo6KE5sCbA1DDX3genvO4d eBQgEMaM5qy6uWk4SfBYfdu9jvBN9nSVDOKRtwb+I3epboOsOX5pZbJNsBJFvmQQ05YMfieIBnYX FK2N6dOawd97r/e8RjkTLzmMsiVgrAoEugtviCM3v2WzjgAAAABJRU5ErkJggg== Copyright: Copyright 2007 James Cloos OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 X-Hashcash: 1:23:071128:help-gnu-emacs@gnu.org::PUL8RP1aOadaYFB9:0000000000000000000000000000000000000004mH6 X-Hashcash: 1:23:071128:rustompmody@gmail.com::RB8e0Go50R/FFBz/:0000000000000000000000000000000000000002A25d Original-Lines: 35 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49656 Archived-At: >>>>> "rustom" == rustom writes: rustom> I have a .Xdefaults file containing things like rustom> Strangely when X starts it does not use these settings but if I rustom> start emacs-snapshot-gtk from the shell it finds them. There are two ways an ~/.Xdefaults file can get used. Many server startup script merge any ~/.Xdefaults files into the server's resource db. This finds ~/.Xdefaults files on the box where the X server process runs. (That distinction becomes relevant whenever remote clients are run using the local server for their DISPLAY.) Also, libX11 will load in any ~/.Xdefaults files it finds whenever a client starts up. Except that it will ignore ~/.Xdefaults if any resources are already in the server's resource db. Finally, libX11 will also look for and load resources from any ~/.Xdefaults-$(hostname) files it finds. In the case of remote clients, libX11 of course only sees files on the box where the client is running. If you use ~/.Xdefaults-$(hostname) (of course replacing $(hostname) with the output of /bin/hostname) instead of ~/.Xdefaults you can be sure it is loaded every time a client starts. I usually keep a symlink ~/.Xdefaults-$(hostname) pointing to .Xdefaults to make management easier. -JimC -- James Cloos OpenPGP: 1024D/ED7DAEA6