Gentoo Archives: gentoo-user

From: Fernando Rodriguez <frodriguez.developer@×××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] trouble with modify-frame-parameters
Date: Mon, 11 May 2015 05:15:31
Message-Id: BLU436-SMTP2274550C33AD4AFC96A8AE48DDB0@phx.gbl
In Reply to: [gentoo-user] trouble with modify-frame-parameters by gottlieb@nyu.edu
1 On Sunday, May 10, 2015 8:21:33 PM gottlieb@×××.edu wrote:
2 > I execute the following function in *scratch* on a fresh emacs -Q
3 >
4 > (modify-frame-parameters ; for 2560x1600
5 > nil '((fullscreen . fullheight) (width . 176) (left . -1300)))
6 >
7 > My screen is 2560x1600. Emacs version is 24.4. System is gentoo/gnome.
8 >
9 > The frame does become fullheight and the width does become 176.
10 > However, left is not correct (it should be flush left but is nearly
11 > centered.
12 > The weird part is if I execute the same command again (a second C-j in
13 > *scratch), the frame moves to the correct, flush left, position.
14 >
15 > An explanation would be appreciated.
16 > thanks,
17 > allan
18 >
19 > PS If I use the more natural (left . 0) the frame moves near the left
20 > edge but is not flush left (even if executed twice).
21 >
22
23 See if thiis works (it's basicly telling the window manager not to ignore
24 you):
25
26 (modify-frame-parameters ; for 2560x1600
27 nil '((fullscreen . fullheight) (width . 176) (left . 0)(user-position .
28 1)(user-size . 1)))
29
30 http://www.gnu.org/software/emacs/manual/html_node/elisp/Window-Frame-Parameters.html#Window-Frame-Parameters
31
32
33 --
34 Fernando Rodriguez