all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: James Cloos <cloos@jhcloos.com>
To: rustom <rustompmody@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacs not finding Xdefaults
Date: Wed, 28 Nov 2007 15:07:40 -0500	[thread overview]
Message-ID: <m3ejea2kws.fsf@lugabout.jhcloos.org> (raw)
In-Reply-To: <b9d2e506-2ecf-40b5-a276-f1ee7991942f@d27g2000prf.googlegroups.com> (rustom's message of "Wed, 28 Nov 2007 06:10:24 -0800 (PST)")

>>>>> "rustom" == rustom <rustompmody@gmail.com> 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 <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6

  parent reply	other threads:[~2007-11-28 20:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-28 14:10 emacs not finding Xdefaults rustom
2007-11-28 15:00 ` Peter Dyballa
     [not found] ` <mailman.4248.1196262037.18990.help-gnu-emacs@gnu.org>
2007-11-28 15:42   ` rustom
2007-11-28 20:07 ` James Cloos [this message]
     [not found] ` <mailman.4270.1196280526.18990.help-gnu-emacs@gnu.org>
2007-11-29 14:13   ` rustom
2007-12-07  3:54     ` rustom
2007-12-07  9:25       ` Peter Dyballa
2007-12-07 17:11       ` reader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3ejea2kws.fsf@lugabout.jhcloos.org \
    --to=cloos@jhcloos.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rustompmody@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.