all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bob Proulx <bob@proulx.com>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Linux: .Xdefaults, geometry not recognized
Date: Thu, 8 Jan 2015 11:03:01 -0700	[thread overview]
Message-ID: <20150108105400399067647@bob.proulx.com> (raw)
In-Reply-To: <87bnm97hip.fsf@mat.ucm.es>

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



  reply	other threads:[~2015-01-08 18:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-07 21:14 Linux: .Xdefaults, geometry not recognized Uwe Brauer
2015-01-07 22:40 ` Bob Proulx
2015-01-08  9:23   ` Uwe Brauer
2015-01-08 18:03     ` Bob Proulx [this message]
2015-01-08 20:56       ` Uwe Brauer
     [not found] <mailman.17431.1420665379.1147.help-gnu-emacs@gnu.org>
2015-01-07 23:04 ` Will Parsons

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=20150108105400399067647@bob.proulx.com \
    --to=bob@proulx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=oub@mat.ucm.es \
    /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.