From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Linux: .Xdefaults, geometry not recognized Date: Thu, 8 Jan 2015 11:03:01 -0700 Message-ID: <20150108105400399067647@bob.proulx.com> References: <8761ci5m5a.fsf@mat.ucm.es> <20150107152841757917829@bob.proulx.com> <87bnm97hip.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1420741717 19632 80.91.229.3 (8 Jan 2015 18:28:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2015 18:28:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Uwe Brauer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 08 19:28:32 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y9Hnw-00060C-B2 for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jan 2015 19:27:32 +0100 Original-Received: from localhost ([::1]:47638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Hnv-0004Dy-Pi for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jan 2015 13:27:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9HQK-0004Il-QD for help-gnu-emacs@gnu.org; Thu, 08 Jan 2015 13:03:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9HQE-00019d-WD for help-gnu-emacs@gnu.org; Thu, 08 Jan 2015 13:03:08 -0500 Original-Received: from joseki.proulx.com ([216.17.153.58]:53270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9HQE-00019M-Oz for help-gnu-emacs@gnu.org; Thu, 08 Jan 2015 13:03:02 -0500 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 66CB92185D; Thu, 8 Jan 2015 11:03:01 -0700 (MST) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 5A0282DC45; Thu, 8 Jan 2015 11:03:01 -0700 (MST) Mail-Followup-To: Uwe Brauer , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87bnm97hip.fsf@mat.ucm.es> User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.17.153.58 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101949 Archived-At: Uwe Brauer wrote: > Well I always run xrdb -merge ~/.Xdefaults I guess that is one way to ensure that the values are used. :-) (The typical expectation is to use .Xresources for this. The reason it was moved to a different file is because xrdb runs the file through the cpp and so comments and conditionals may occur in it that are stripped out of the result. Those can't exist in the .Xdefaults though or they will produce errors when that file is read normally.) > Emacs.geometry: 105x63+20+5 > > xrdb -q | grep -i emacs I was hoping you would find an emacs.geometry that was overriding your Emacs.geometry. > > For debugging I would try it explicitly on the command line. Then > > with the -q option. > > emacs --xrm Emacs.geometry:105x63+20+5 > > emacs -q --xrm Emacs.geometry:105x63+20+5 > > emacs -q --xrm emacs.geometry:105x63+20+5 > > All work! Well... At least that is something. You know it can work if the conditions are right. > But again when I change > > Emacs.geometry: 105x63+20+5 > > To > Emacs.geometry: 105x63+20+5 I don't see any difference there between those two samples. > in my .Xdefaults file > run xrdb -merge .Xdefaults > check whether the change is updated (which it is) > > And then start emacs without the xrm option the geometry setting is > ignored!!! Last thing I can think of is to double check that whitespace. For debugging I would try it without. Just in case something strange is happening there. Plus I would try it using the window name rather than the application class. If you are calling emacs as "emacs" then use that name. emacs.geometry:105x63+20+5 [The name is there for other uses. For example I can name a window to be "debug" and then debug.geometry and debug.background and so forth applies specifically to the window named debug overriding the more general class. Just for debugging I would try using the specific name.] > So all xrdb setting seen by xrbd -q | grep -i emacs > are used but not the Emacs.geometry (emacs.geometry) parameter > > Very odd. It is very odd. And I am pretty much out of ideas. Hopefully one of the other folks on the list will come up with an idea. Bob