From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rustom Newsgroups: gmane.emacs.help Subject: Re: emacs not finding Xdefaults Date: Thu, 29 Nov 2007 06:13:00 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196347334 12439 80.91.229.12 (29 Nov 2007 14:42:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2007 14:42:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 29 15:42:21 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 1IxkaS-0000KG-Cm for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2007 15:41:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxkaC-0001eU-Qx for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2007 09:41:40 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s12g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: 59.95.50.59 Original-X-Trace: posting.google.com 1196345580 12465 127.0.0.1 (29 Nov 2007 14:13:00 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 29 Nov 2007 14:13:00 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s12g2000prg.googlegroups.com; posting-host=59.95.50.59; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070508 Iceweasel/2.0.0.4 (Debian-2.0.0.4-0etch1), gzip(gfe), gzip(gfe) Content-Disposition: inline Original-Xref: shelby.stanford.edu gnu.emacs.help:154255 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:49683 Archived-At: On Nov 29, 1:07 am, James Cloos wrote: > >>>>> "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. Cant say I understand all the subtleties. What I can say is that this is one single PC. So how separated client and server issues should arise is not clear. > > I usually keep a symlink ~/.Xdefaults-$(hostname) pointing to .Xdefaults > to make management easier. Well I can do that. But as I said I dont fully understand what you've said (and the problem solved itself (not something a programmer feels too happy about (sorry for the lispy () ))) so rather I'll bear your advice in mind and the next time I have a similar problem I'll try this. Thanks Rustom