From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: What is the proper way to set the default font these days? Date: Mon, 08 Jun 2009 23:21:21 +0900 Message-ID: <8763f6g61q.fsf@uwakimon.sk.tsukuba.ac.jp> References: <7b501d5c0906060758n3113b6cdr37a5635b389428b8@mail.gmail.com> <87ab4k3g04.fsf@catnip.gol.com> <4A2BB621.201@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244472634 23259 80.91.229.12 (8 Jun 2009 14:50:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jun 2009 14:50:34 +0000 (UTC) Cc: emacs-devel@gnu.org, David De La Harpe Golden To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 08 16:50:30 2009 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 1MDgBB-0003B6-DG for ged-emacs-devel@m.gmane.org; Mon, 08 Jun 2009 16:50:30 +0200 Original-Received: from localhost ([127.0.0.1]:40849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDgBA-0002nB-QZ for ged-emacs-devel@m.gmane.org; Mon, 08 Jun 2009 10:50:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDfgj-0006aL-0J for emacs-devel@gnu.org; Mon, 08 Jun 2009 10:19:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDfgb-0006Ug-2S for emacs-devel@gnu.org; Mon, 08 Jun 2009 10:18:57 -0400 Original-Received: from [199.232.76.173] (port=51335 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDfga-0006UM-Nw for emacs-devel@gnu.org; Mon, 08 Jun 2009 10:18:52 -0400 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]:37595) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDfgU-0000YP-Uf; Mon, 08 Jun 2009 10:18:47 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id EF83D1535AF; Mon, 8 Jun 2009 23:18:20 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 507D11A2664; Mon, 8 Jun 2009 23:21:21 +0900 (JST) In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta28) "fuki" 83e35df20028+ XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:111374 Archived-At: Miles Bader writes: > David De La Harpe Golden 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?