all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* set-frame-position fails
@ 2006-03-15 21:25 Nick Patavalis
  2006-03-16 16:21 ` Kevin Rodgers
       [not found] ` <E1FJywD-0003D1-U6@fencepost.gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Nick Patavalis @ 2006-03-15 21:25 UTC (permalink / raw)


Hi

>From a gnome-terminal, I start the EMACS editor which opens its main
frame at the position selected by the window manager.

In the scratch-buffer, and say:

  (set-frame-position (selected-frame) 100 100)^J
  (set-frame-position (selected-frame) 10 10)^J
  (set-frame-position (selected-frame) 150 10)^J

The frame always moves to the prescribed position. No problem so far.

Now I grab the emacs window with the mouse from its titlebar and move
it (by any amount, even the tiniest). Then I say again:

  (set-frame-position (selected-frame) 10 10)^J

The frame instantly moves to the prescribed position, and then
*immediately* returns to its *original place*. From then-on any
attempt to set the frame's position using "set-frame-position" fails
in the same manner (frame slings-back instantly after momentarily
moving).

The same behavior manifest in any new frame I open: Until the frame is
moved using the mouse, "set-frame-position" works as expected. After
the frame is moved using the mouse, "set-frame-position" no longer
works: The frame, instead, slings-back to its original location, after
momentarily changing position

I'm using:

  A Debian GNU/Linux i686-based system.

  GNU Emacs 21.4.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
  of 2005-03-17 on trouble, modified by Debian

  metacity 2.8.8

Tanks in advance for any help with this, and many thanks for making
the best editor in the world available to us.

/npat

-- 
Nick Patavalis            npat@efault.net 
http://npat.efault.net/   GPG key id: 0x499C4C86

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

* Re: set-frame-position fails
  2006-03-15 21:25 set-frame-position fails Nick Patavalis
@ 2006-03-16 16:21 ` Kevin Rodgers
       [not found] ` <E1FJywD-0003D1-U6@fencepost.gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Kevin Rodgers @ 2006-03-16 16:21 UTC (permalink / raw)


Nick Patavalis wrote:
> Hi
> 
>>From a gnome-terminal, I start the EMACS editor which opens its main
> frame at the position selected by the window manager.
> 
> In the scratch-buffer, and say:
> 
>   (set-frame-position (selected-frame) 100 100)^J
>   (set-frame-position (selected-frame) 10 10)^J
>   (set-frame-position (selected-frame) 150 10)^J
> 
> The frame always moves to the prescribed position. No problem so far.
> 
> Now I grab the emacs window with the mouse from its titlebar and move
> it (by any amount, even the tiniest). Then I say again:
> 
>   (set-frame-position (selected-frame) 10 10)^J
> 
> The frame instantly moves to the prescribed position, and then
> *immediately* returns to its *original place*. From then-on any
> attempt to set the frame's position using "set-frame-position" fails
> in the same manner (frame slings-back instantly after momentarily
> moving).
> 
> The same behavior manifest in any new frame I open: Until the frame is
> moved using the mouse, "set-frame-position" works as expected. After
> the frame is moved using the mouse, "set-frame-position" no longer
> works: The frame, instead, slings-back to its original location, after
> momentarily changing position
> 
> I'm using:
> 
>   A Debian GNU/Linux i686-based system.
> 
>   GNU Emacs 21.4.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
>   of 2005-03-17 on trouble, modified by Debian
> 
>   metacity 2.8.8
> 
> Tanks in advance for any help with this, and many thanks for making
> the best editor in the world available to us.

Does the problem persist if you do
(modify-frame-parameters (selected-frame) '((user-position . t)))

-- 
Kevin Rodgers

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

* Re: set-frame-position fails
       [not found] ` <E1FJywD-0003D1-U6@fencepost.gnu.org>
@ 2006-03-17 14:31   ` Nick Patavalis
  2006-03-17 17:07     ` Kevin Rodgers
  2006-03-18  8:43     ` Richard Stallman
  0 siblings, 2 replies; 7+ messages in thread
From: Nick Patavalis @ 2006-03-17 14:31 UTC (permalink / raw)
  Cc: bug-gnu-emacs

Nick Patavalis wrote:
> The same behavior manifest in any new frame I open: Until the frame is
> moved using the mouse, "set-frame-position" works as expected. After
> the frame is moved using the mouse, "set-frame-position" no longer
> works: The frame, instead, slings-back to its original location, after
> momentarily changing position

Richard Stallman wrote:
> Does the same problem happen with the current development Emacs,
> from CVS in savannah.gnu.org?

The current development Emacs (from the savannah.gnu.org CVS),
compiled with GTK toolkit support *does not* have the same problem;
"set-frame-position" works as expected, even after manually moving the
frames.

The same version (CVS Emacs), compiled with LUCID toolkit support,
*still has the same problem*: After manually moving a frame,
"set-frame-position" stops working.

/npat

-- 
Nick Patavalis            npat@efault.net 
http://npat.efault.net/   GPG key id: 0x499C4C86

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

* Re: set-frame-position fails
  2006-03-17 14:31   ` Nick Patavalis
@ 2006-03-17 17:07     ` Kevin Rodgers
  2006-03-18  8:43     ` Richard Stallman
  1 sibling, 0 replies; 7+ messages in thread
From: Kevin Rodgers @ 2006-03-17 17:07 UTC (permalink / raw)


Nick Patavalis wrote:
> Nick Patavalis wrote:
> 
>>The same behavior manifest in any new frame I open: Until the frame is
>>moved using the mouse, "set-frame-position" works as expected. After
>>the frame is moved using the mouse, "set-frame-position" no longer
>>works: The frame, instead, slings-back to its original location, after
>>momentarily changing position
> 
> 
> Richard Stallman wrote:
> 
>>Does the same problem happen with the current development Emacs,
>>from CVS in savannah.gnu.org?
> 
> 
> The current development Emacs (from the savannah.gnu.org CVS),
> compiled with GTK toolkit support *does not* have the same problem;
> "set-frame-position" works as expected, even after manually moving the
> frames.
> 
> The same version (CVS Emacs), compiled with LUCID toolkit support,
> *still has the same problem*: After manually moving a frame,
> "set-frame-position" stops working.

What does (frame-parameter (selected-frame) 'user-position)
return, before and after manually moving the frame?

-- 
Kevin Rodgers

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

* Re: set-frame-position fails
  2006-03-17 14:31   ` Nick Patavalis
  2006-03-17 17:07     ` Kevin Rodgers
@ 2006-03-18  8:43     ` Richard Stallman
  2006-03-18 13:33       ` Nick Patavalis
  1 sibling, 1 reply; 7+ messages in thread
From: Richard Stallman @ 2006-03-18  8:43 UTC (permalink / raw)
  Cc: bug-gnu-emacs

Someone suggested that this is not really a bug, just the normal
behavior of the :user-position frame parameter.

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

* Re: set-frame-position fails
  2006-03-18  8:43     ` Richard Stallman
@ 2006-03-18 13:33       ` Nick Patavalis
  2006-03-19  9:09         ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Patavalis @ 2006-03-18 13:33 UTC (permalink / raw)
  Cc: bug-gnu-emacs

On Sat, Mar 18, 2006 at 03:43:47AM -0500, Richard Stallman wrote:
> Someone suggested that this is not really a bug, just the normal
> behavior of the :user-position frame parameter.
> 

Even when I set the "user-position" frame parameter, I still cannot
move the frame, and have it "stay" at the new position. All the
following fail in the same manner:

  (modify-frame-parameters (selected-frame)
                           '((top . 10)
                             (left . 100)
                             (user-position . t)))

  (modify-frame-parameters (selected-frame)
                           '((top . 10)
                             (left . 100)
                             (user-position . nil)))

  (set-frame-position (selected-frame) 10 100)

Shouldn't one of them work?

/npat

-- 
Nick Patavalis            npat@efault.net 
http://npat.efault.net/   GPG key id: 0x499C4C86

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

* Re: set-frame-position fails
  2006-03-18 13:33       ` Nick Patavalis
@ 2006-03-19  9:09         ` Richard Stallman
  0 siblings, 0 replies; 7+ messages in thread
From: Richard Stallman @ 2006-03-19  9:09 UTC (permalink / raw)
  Cc: bug-gnu-emacs

    Even when I set the "user-position" frame parameter, I still cannot
    move the frame, and have it "stay" at the new position. All the
    following fail in the same manner:

      (modify-frame-parameters (selected-frame)
			       '((top . 10)
				 (left . 100)
				 (user-position . t)))

      (modify-frame-parameters (selected-frame)
			       '((top . 10)
				 (left . 100)
				 (user-position . nil)))

      (set-frame-position (selected-frame) 10 100)

    Shouldn't one of them work?

Yes, something here must be a bug.

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

end of thread, other threads:[~2006-03-19  9:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-15 21:25 set-frame-position fails Nick Patavalis
2006-03-16 16:21 ` Kevin Rodgers
     [not found] ` <E1FJywD-0003D1-U6@fencepost.gnu.org>
2006-03-17 14:31   ` Nick Patavalis
2006-03-17 17:07     ` Kevin Rodgers
2006-03-18  8:43     ` Richard Stallman
2006-03-18 13:33       ` Nick Patavalis
2006-03-19  9:09         ` Richard Stallman

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.