public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] trouble with modify-frame-parameters
@ 2015-05-11  0:21 gottlieb
  2015-05-11  5:13 ` Fernando Rodriguez
  2015-05-11 17:37 ` Mis-posted please ignore " gottlieb
  0 siblings, 2 replies; 3+ messages in thread
From: gottlieb @ 2015-05-11  0:21 UTC (permalink / raw
  To: gentoo-user

I execute the following function in *scratch* on a fresh emacs -Q

  (modify-frame-parameters		; for 2560x1600
   nil '((fullscreen . fullheight) (width . 176) (left . -1300)))

My screen is 2560x1600.  Emacs version is 24.4.  System is gentoo/gnome.

The frame does become fullheight and the width does become 176.
However, left is not correct (it should be flush left but is nearly
centered.
The weird part is if I execute the same command again (a second C-j in
*scratch), the frame moves to the correct, flush left, position.

An explanation would be appreciated.
thanks,
allan

PS If I use the more natural (left . 0) the frame moves near the left
edge but is not flush left (even if executed twice).


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] trouble with modify-frame-parameters
  2015-05-11  0:21 [gentoo-user] trouble with modify-frame-parameters gottlieb
@ 2015-05-11  5:13 ` Fernando Rodriguez
  2015-05-11 17:37 ` Mis-posted please ignore " gottlieb
  1 sibling, 0 replies; 3+ messages in thread
From: Fernando Rodriguez @ 2015-05-11  5:13 UTC (permalink / raw
  To: gentoo-user

On Sunday, May 10, 2015 8:21:33 PM gottlieb@nyu.edu wrote:
> I execute the following function in *scratch* on a fresh emacs -Q
> 
>   (modify-frame-parameters		; for 2560x1600
>    nil '((fullscreen . fullheight) (width . 176) (left . -1300)))
> 
> My screen is 2560x1600.  Emacs version is 24.4.  System is gentoo/gnome.
> 
> The frame does become fullheight and the width does become 176.
> However, left is not correct (it should be flush left but is nearly
> centered.
> The weird part is if I execute the same command again (a second C-j in
> *scratch), the frame moves to the correct, flush left, position.
> 
> An explanation would be appreciated.
> thanks,
> allan
> 
> PS If I use the more natural (left . 0) the frame moves near the left
> edge but is not flush left (even if executed twice).
> 

See if thiis works (it's basicly telling the window manager not to ignore 
you):

  (modify-frame-parameters		; for 2560x1600
    nil '((fullscreen . fullheight) (width . 176) (left . 0)(user-position . 
1)(user-size . 1)))

http://www.gnu.org/software/emacs/manual/html_node/elisp/Window-Frame-Parameters.html#Window-Frame-Parameters


-- 
Fernando Rodriguez


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Mis-posted please ignore Re: [gentoo-user] trouble with modify-frame-parameters
  2015-05-11  0:21 [gentoo-user] trouble with modify-frame-parameters gottlieb
  2015-05-11  5:13 ` Fernando Rodriguez
@ 2015-05-11 17:37 ` gottlieb
  1 sibling, 0 replies; 3+ messages in thread
From: gottlieb @ 2015-05-11 17:37 UTC (permalink / raw
  To: gentoo-user

Sorry.  This was meant for the emacs list.

On Sun, May 10 2015, gottlieb@nyu.edu wrote:

> I execute the following function in *scratch* on a fresh emacs -Q
>
>   (modify-frame-parameters		; for 2560x1600
>    nil '((fullscreen . fullheight) (width . 176) (left . -1300)))
>
> My screen is 2560x1600.  Emacs version is 24.4.  System is gentoo/gnome.
>
> The frame does become fullheight and the width does become 176.
> However, left is not correct (it should be flush left but is nearly
> centered.
> The weird part is if I execute the same command again (a second C-j in
> *scratch), the frame moves to the correct, flush left, position.
>
> An explanation would be appreciated.
> thanks,
> allan
>
> PS If I use the more natural (left . 0) the frame moves near the left
> edge but is not flush left (even if executed twice).


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-11 17:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-11  0:21 [gentoo-user] trouble with modify-frame-parameters gottlieb
2015-05-11  5:13 ` Fernando Rodriguez
2015-05-11 17:37 ` Mis-posted please ignore " gottlieb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox