all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Miles Bader <miles@gnu.org>
Cc: emacs-devel@gnu.org, David De La Harpe Golden <david@harpegolden.net>
Subject: Re: What is the proper way to set the default font these days?
Date: Mon, 08 Jun 2009 23:21:21 +0900	[thread overview]
Message-ID: <8763f6g61q.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <buoiqj7e1vi.fsf@dhlpc061.dev.necel.com>

Miles Bader writes:

 > David De La Harpe Golden <david@harpegolden.net> writes:
 > > ?  It was my understanding (which could be flawed) that applications
 > > never look at .Xdefaults, it's up to you to do an
 > >
 > > xrdb -merge .Xdefaults
 > 
 > No, ~/.Xdefaults is read directly by applications,

A behavior deprecated as of X11R5 in favor of using xrdb, which is
handled on the server side.

I guess there's nothing wrong with depending on Emacs reading
.Xdefaults if you want to (except for the fact that GNOME will not
respect your wishes), but that behavior has been obsolete for a long
time.

 > The "rules" (by my observation) are a bit bizarre:  If there's
 > _anything_ in the server's database, even entries for an unrelated
 > application, then ~/.Xdefaults is completely ignored, and only entries
 > from the server database are used; otherwise ~/.Xdefaults is used.

That's is indeed the defined behavior.  Specifically, Xlib reads
~/.Xdefaults if and only if *no resources at set at all* in the
RESOURCE_MANAGER property on the server's root window.

 > You'd think it would be more useful to automagically _merge_ the server
 > database with the contents of ~/.Xdefaults, but that's not what the X
 > libraries do.

The intent was to encourage users to migrate to the modern style,
which uniformly applies to remote clients as well as local ones (which
obviously the .Xdefaults file can't, since it's read by the client).

Why not just put

(lambda () (shell-command "xrdb -merge ~/.Xresources"))

on your save hook in xrdb buffers?





  reply	other threads:[~2009-06-08 14:21 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-06 14:58 What is the proper way to set the default font these days? Deniz Dogan
2009-06-06 19:11 ` Stefan Monnier
2009-06-07  0:25   ` Deniz Dogan
2009-06-07  3:00 ` Miles Bader
2009-06-07 12:44   ` David De La Harpe Golden
2009-06-08  5:22     ` Miles Bader
2009-06-08 14:21       ` Stephen J. Turnbull [this message]
2009-06-08 14:59         ` Deniz Dogan
2009-06-08 15:50           ` Chong Yidong
2009-06-08 16:17             ` Stephen J. Turnbull
2009-06-08 16:19               ` Chong Yidong
2009-06-08 16:28                 ` Deniz Dogan
2009-06-08 16:50                   ` Chong Yidong
2009-06-10  9:17                   ` Deniz Dogan
2009-06-10 13:37                     ` Miles Bader
2009-06-10 14:08                       ` Deniz Dogan
2009-06-10 15:52                     ` Chong Yidong
2009-06-10 15:59                       ` Deniz Dogan
2009-06-29 11:44                       ` gtk toolbar bug (was Re: What is the proper way to set the default font these days?) Bruce Stephens
2009-06-29 17:49                         ` Deniz Dogan
2009-06-29 19:30                           ` gtk toolbar bug Bruce Stephens
2009-06-29 21:37                             ` Bruce Stephens
2009-06-30 14:42                               ` Jan Djärv
2009-07-01 14:10                                 ` Jan Djärv
2009-07-01 15:25                                   ` Bruce Stephens
2009-06-08 22:15             ` What is the proper way to set the default font these days? Chad Brown
2009-06-08 22:40               ` David Reitter
2009-06-09  0:42                 ` Miles Bader
2009-06-10 22:07                   ` Stefan Monnier
2009-06-11  0:25                     ` Miles Bader
2009-06-09  3:04               ` Eli Zaretskii
2009-06-08 22:03       ` Johan Bockgård
2009-06-12 17:14       ` James Cloos
2009-06-12 21:00         ` Stefan Monnier
2009-06-15  3:29         ` Miles Bader
2009-07-01 22:35           ` Deniz Dogan
2009-07-02  6:44             ` Jan Djärv
2009-07-02  7:45               ` Deniz Dogan
2009-07-02  8:23                 ` Jan Djärv
2009-07-02  9:19                   ` YAMAMOTO Mitsuharu
2009-07-02 10:59                     ` Jan Djärv
2009-07-02 12:31                       ` Jan Djärv
2009-07-02  7:54               ` Jan Djärv
2009-07-02  8:02                 ` Deniz Dogan
2009-07-02 10:38                   ` Jan Djärv
2009-07-02 11:58                     ` Deniz Dogan
2009-07-21 15:14                 ` Bruce Stephens
2009-07-21 18:48                   ` Jan Djärv
2009-07-21 19:10                     ` Bruce Stephens

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=8763f6g61q.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=david@harpegolden.net \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    /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.