GNU bug report logs -
#8112
23.2; wish: emacsclient -c -g GEOMETRY
Previous Next
Reported by: arne_bab <at> yahoo.de
Date: Thu, 24 Feb 2011 22:20:03 UTC
Severity: wishlist
Tags: patch
Merged with 5864,
7335
Found in versions 23.1, 23.2
Fixed in version 24.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On Friday 25 February 2011 01:13:18 Lennart Borgman wrote:
> Can't the --eval argument be used for this?
It only gets evaluated after the frame is created.
This is possible, though:
emacsclient -e "(add-to-list 'default-frame-alist '(height . 40))" \
-e "(add-to-list 'default-frame-alist '(width . 120))" ; emacsclient -c
It litters the alist with new definitions, but it works.
Alternately put it in .bashrc:
emacsclient -e "(add-to-list 'default-frame-alist '(height . 30))" \
-e "(add-to-list 'default-frame-alist '(width . 55))"
Then the setting only affects the given computer and I can use the .emacs.d
unchanged.
But different from -g GEOMETRY it affects later frames, too :(
I then can’t call emacsclient with default settings without setting these
default settings.
To pseudo-only set it once:
emacsclient -e "(add-to-list 'default-frame-alist '(height . 40))" \
-e "(add-to-list 'default-frame-alist '(width . 120))" ; emacsclient -c \
-e "(add-to-list 'default-frame-alist '(height . 40))" \
-e "(add-to-list 'default-frame-alist '(width . 80))"
But that is kinda clumsy compared to emacsclient -g 120x40…
Best wishes,
Arne
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 13 years and 317 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.