From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.devel Subject: Re: What is the proper way to set the default font these days? Date: Mon, 8 Jun 2009 16:59:30 +0200 Message-ID: <7b501d5c0906080759wba474b4re93ecbfdf94c9629@mail.gmail.com> References: <7b501d5c0906060758n3113b6cdr37a5635b389428b8@mail.gmail.com> <87ab4k3g04.fsf@catnip.gol.com> <4A2BB621.201@harpegolden.net> <8763f6g61q.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1244474235 29127 80.91.229.12 (8 Jun 2009 15:17:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jun 2009 15:17:15 +0000 (UTC) Cc: David De La Harpe Golden , emacs-devel@gnu.org, Miles Bader To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 08 17:17:12 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 1MDgaz-00072B-Fx for ged-emacs-devel@m.gmane.org; Mon, 08 Jun 2009 17:17:09 +0200 Original-Received: from localhost ([127.0.0.1]:39352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDgay-0000pJ-Jt for ged-emacs-devel@m.gmane.org; Mon, 08 Jun 2009 11:17:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDgK5-0001HQ-Mp for emacs-devel@gnu.org; Mon, 08 Jun 2009 10:59:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDgK0-0001Dq-O6 for emacs-devel@gnu.org; Mon, 08 Jun 2009 10:59:40 -0400 Original-Received: from [199.232.76.173] (port=43089 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDgK0-0001Dk-EK for emacs-devel@gnu.org; Mon, 08 Jun 2009 10:59:36 -0400 Original-Received: from mail-fx0-f217.google.com ([209.85.220.217]:37692) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDgJz-0003Wy-0k; Mon, 08 Jun 2009 10:59:35 -0400 Original-Received: by fxm17 with SMTP id 17so904981fxm.42 for ; Mon, 08 Jun 2009 07:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ZTGkhVD5GbWSpccGZLHdXLKKnGd2aRSa32hZK3+GiLY=; b=wpeLzfDAoa4fGtOu69tTu+GOLe0z9EjzUerOE85CoBUf0qix1C9Ya+Fhru8cPWiEVq Lyupcv+Rf/R75jkusstu4YoDQ3qNfnfOgYsVb1O1Ka+fdOfxSj9iFqfohsJpvzKnxN0Z CH+HziV6PvgVxyX/LUMko+Bu240vGJm/EulRI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=oVh+BmJz4B5CvoJ+nH8XhnyS1UTrSgqtE5Zk3X4+I/ztWVzJhx8QbaSunmwXYwWRfN R/5ldselCNvK3c/cQAtT077bDxGln6Owpz7Gw2j7XnNmu/bc2Z/kFLzZjP+aHdDlV3CM wR0MQXocOUkm/tK78aunScW29pEZynG12fIlU= Original-Received: by 10.86.91.10 with SMTP id o10mr7343285fgb.13.1244473170423; Mon, 08 Jun 2009 07:59:30 -0700 (PDT) In-Reply-To: <8763f6g61q.fsf@uwakimon.sk.tsukuba.ac.jp> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:111375 Archived-At: 2009/6/8 Stephen J. Turnbull : > Miles Bader writes: > > =A0> David De La Harpe Golden writes: > =A0> > ? =A0It was my understanding (which could be flawed) that applicat= ions > =A0> > never look at .Xdefaults, it's up to you to do an > =A0> > > =A0> > xrdb -merge .Xdefaults > =A0> > =A0> 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. > > =A0> The "rules" (by my observation) are a bit bizarre: =A0If there's > =A0> _anything_ in the server's database, even entries for an unrelated > =A0> application, then ~/.Xdefaults is completely ignored, and only entri= es > =A0> from the server database are used; otherwise ~/.Xdefaults is used. > > That's is indeed the defined behavior. =A0Specifically, Xlib reads > ~/.Xdefaults if and only if *no resources at set at all* in the > RESOURCE_MANAGER property on the server's root window. > > =A0> You'd think it would be more useful to automagically _merge_ the ser= ver > =A0> database with the contents of ~/.Xdefaults, but that's not what the = X > =A0> 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? > > > > So if we go back to the original question... What is the proper way to set the font? :) --=20 Deniz Dogan