--- Begin Message ---
Subject: |
23.0.60; --daemon: "emacsclient -c" does not honor +Xoffset+Yoffset in ~/.Xdefaults |
Date: |
Tue, 18 Nov 2008 19:47:24 -0500 |
Hi,
the actions:
$ killall emacs-snapshot
$ xrdb ~/.Xdefaults
$ emacs-snapshot -Q --daemon
$ emacsclient.emacs-snapshot -c /home/grfz/.Xdefaults
when started like this Emacs creates a new frame. The frames width
and heigth are determined by the emacs.geometry ressource in
~/.Xdefaults, whereas the -Xoffset+Yoffset values are ignored. Emacs
positions the frame in the top left corner. But I want it in the top
right corner. Therefore I hve the following line in my ~/.Xdefaults
file:
emacs-snapshot.geometry:82x188-0+0
When started like this:
$ killall emacs-snapshot
$ xrdb ~/.Xdefaults
$ emacs-snapshot -Q /home/grfz/.Xdefaults
Emacs creates the frame in the top right corner of the display.
It would be nice if emacs would honor the full geometry settings in
the X ressources.
Thank you for emacs, the awesome --daemon feature and your attention,
Gregor
In GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11)
of 2008-11-18 on del, modified by Debian
(emacs-snapshot package, version 1:20081113-1)
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure '--build' 'i486-linux-gnu' '--host'
'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info'
'--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp'
'--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu'
'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g
-O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''
Important settings:
value of $LC_ALL:
value of $LC_COLLATE: de_DE.utf8
value of $LC_CTYPE: de_DE.utf8
value of $LC_MESSAGES: POSIX
value of $LC_MONETARY: de_DE.utf8
value of $LC_NUMERIC: de_DE.utf8
value of $LC_TIME: de_DE.utf8
value of $LANG:
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Conf[Xdefaults]
Minor modes in effect:
show-paren-mode: t
global-hl-line-mode: t
desktop-save-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
size-indication-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
M-x r e p <tab> o <tab> r <tab> <return>
Recent messages:
.bash_profile has auto save data; consider M-x recover-this-file
Setting up indent for shell type bash
setting up indent stuff
Indentation variables are now local.
Indentation setup for shell type bash
Wrote /home/grfz/.emacs.desktop.lock
Desktop: 9 buffers restored.
Loading /home/grfz/.emms-cache...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [2 times]
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#1373: 23.0.60; --daemon: "emacsclient -c" does not honor +Xoffset+Yoffset in ~/.Xdefaults |
Date: |
Thu, 20 Nov 2008 10:07:34 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> when started like this Emacs creates a new frame. The frames width
> and heigth are determined by the emacs.geometry ressource in
> ~/.Xdefaults, whereas the -Xoffset+Yoffset values are ignored. Emacs
> positions the frame in the top left corner. But I want it in the top
> right corner. Therefore I hve the following line in my ~/.Xdefaults
> file:
> emacs-snapshot.geometry:82x188-0+0
> When started like this:
> $ killall emacs-snapshot
> $ xrdb ~/.Xdefaults
> $ emacs-snapshot -Q /home/grfz/.Xdefaults
> Emacs creates the frame in the top right corner of the display.
> It would be nice if emacs would honor the full geometry settings in
> the X ressources.
> Thank you for emacs, the awesome --daemon feature and your attention,
> Gregor
I believe this is "on purpose": the size part of the geometry argument
applies to all frames (i.e. it's put into default-frame-alist) where the
position part only applies to the first frame (i.e. it's put into
initial-frame-alist). But with a daemon, there's simply no
initial frame.
You can still get what you want by specifying the position in
default-frame-alist (in your .emacs).
Stefan
--- End Message ---