all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How do I stop my emacs frame jumping when I enter emacs
@ 2009-06-11 13:57 Alex Bennee
  2009-06-11 14:45 ` Peter Dyballa
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Bennee @ 2009-06-11 13:57 UTC (permalink / raw
  To: help-gnu-emacs mailing list

Hi,

I'm fairly sure this isn't desired behaviour but when I start and
ediff session my emacs frame
jumps a workspace to the left. Has anyone else seen this?

My customisation is fairly simple:

      (eval-after-load "ediff" '(progn
                                  (message "doing ediff customisation")
                                  (setq diff-switches               "-u"
                                        ediff-custom-diff-options   "-U3"
                                        ediff-split-window-function
'split-window-horizontally
                                        ediff-window-setup-function
'ediff-setup-windows-plain)

                                  (add-hook 'ediff-startup-hook
'ediff-toggle-wide-display)
                                  (add-hook 'ediff-cleanup-hook
'ediff-toggle-wide-display)
                                  (add-hook 'ediff-suspend-hook
'ediff-toggle-wide-display)))


-- 
Alex, homepage: http://www.bennee.com/~alex/
http://www.half-llama.co.uk




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

* Re: How do I stop my emacs frame jumping when I enter emacs
  2009-06-11 13:57 How do I stop my emacs frame jumping when I enter emacs Alex Bennee
@ 2009-06-11 14:45 ` Peter Dyballa
  2009-06-11 14:53   ` Alex Bennee
       [not found]   ` <mailman.463.1244731989.2239.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Dyballa @ 2009-06-11 14:45 UTC (permalink / raw
  To: Alex Bennee; +Cc: help-gnu-emacs mailing list


Am 11.06.2009 um 15:57 schrieb Alex Bennee:

> Has anyone else seen this?


What is your windows manager? And version? Also that of GNU Emacs.  
And what is that windows manager's configuration?

--
Greetings

   Pete

Globalisation – communism from above.










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

* Re: How do I stop my emacs frame jumping when I enter emacs
  2009-06-11 14:45 ` Peter Dyballa
@ 2009-06-11 14:53   ` Alex Bennee
  2009-06-11 15:15     ` Peter Dyballa
       [not found]     ` <mailman.468.1244733313.2239.help-gnu-emacs@gnu.org>
       [not found]   ` <mailman.463.1244731989.2239.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 7+ messages in thread
From: Alex Bennee @ 2009-06-11 14:53 UTC (permalink / raw
  To: Peter Dyballa; +Cc: help-gnu-emacs mailing list

2009/6/11 Peter Dyballa <Peter_Dyballa@web.de>:
>
> Am 11.06.2009 um 15:57 schrieb Alex Bennee:
>
>> Has anyone else seen this?
> What is your windows manager? And version? Also that of GNU Emacs. And what
> is that windows manager's configuration?

compiz (1:0.7.4-0ubuntu8~ppa1) running on Ubuntu Hardy Gnome desktop.

15:52 ajb@pitcairn/x86_64 [elisp.git] >emacs --version
GNU Emacs 23.0.60.1

But why would the window manager get involved? Is ediff creating new
frames for the
hell of it?

-- 
Alex, homepage: http://www.bennee.com/~alex/
http://www.half-llama.co.uk




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

* Re: How do I stop my emacs frame jumping when I enter emacs
       [not found]   ` <mailman.463.1244731989.2239.help-gnu-emacs@gnu.org>
@ 2009-06-11 15:05     ` Pascal J. Bourguignon
  0 siblings, 0 replies; 7+ messages in thread
From: Pascal J. Bourguignon @ 2009-06-11 15:05 UTC (permalink / raw
  To: help-gnu-emacs

Alex Bennee <kernel-hacker@bennee.com> writes:

> 2009/6/11 Peter Dyballa <Peter_Dyballa@web.de>:
>>
>> Am 11.06.2009 um 15:57 schrieb Alex Bennee:
>>
>>> Has anyone else seen this?
>> What is your windows manager? And version? Also that of GNU Emacs. And what
>> is that windows manager's configuration?
>
> compiz (1:0.7.4-0ubuntu8~ppa1) running on Ubuntu Hardy Gnome desktop.
>
> 15:52 ajb@pitcairn/x86_64 [elisp.git] >emacs --version
> GNU Emacs 23.0.60.1
>
> But why would the window manager get involved? Is ediff creating new
> frames for the hell of it?

Because the window manager gets the opportunity to place the windows
when they're created.

First, the window may be positionned from what defaults are given in
~/.Xresources ; check a line such as: emacs.geometry: 81x71-68+0

Then the window manager may position the window (notably, most window
manager add decorations above the window (eg a title bar) so it will
actually move the windows down by the title bar height).  Often it's
not visible, because it's done before drawing the window, but you can
see it if you open the window before starting the window manager.

Finally, ~/.emacs may contain expressions to move and size the frames.
Yes, from emacs lisp it's not "window" anymore but "frame" we're back
on the right side of the mirror here :-)


So you can avoid jumping by giving consistent positions and sizes in
all these places, or by removing the later sizing and positionning.


-- 
__Pascal Bourguignon__


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

* Re: How do I stop my emacs frame jumping when I enter emacs
  2009-06-11 14:53   ` Alex Bennee
@ 2009-06-11 15:15     ` Peter Dyballa
       [not found]     ` <mailman.468.1244733313.2239.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2009-06-11 15:15 UTC (permalink / raw
  To: Alex Bennee; +Cc: help-gnu-emacs mailing list


Am 11.06.2009 um 16:53 schrieb Alex Bennee:

> But why would the window manager get involved? Is ediff creating new
> frames for the
> hell of it?


Yes, it is! At least one very small one (one-liner), which you can  
make bigger and then see how to work with ediff (it's some time ago  
since I last used it, usually a compare-windows is sufficient for me).

--
Mit friedvollen Grüßen

   Pete

They that can give up essential liberty to obtain a little temporary  
safety deserve neither liberty nor safety.
		-Benjamin Franklin, Historical Review of Pennsylvania.





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

* Re: How do I stop my emacs frame jumping when I enter emacs
       [not found]     ` <mailman.468.1244733313.2239.help-gnu-emacs@gnu.org>
@ 2009-06-14 20:22       ` jpkotta
  2009-06-15  9:58         ` Alex Bennee
  0 siblings, 1 reply; 7+ messages in thread
From: jpkotta @ 2009-06-14 20:22 UTC (permalink / raw
  To: help-gnu-emacs

On Jun 11, 10:15 am, Peter Dyballa <Peter_Dyba...@web.de> wrote:
> Am 11.06.2009 um 16:53 schrieb Alex Bennee:
>
> > But why would the window manager get involved? Is ediff creating new
> > frames for the
> > hell of it?
>
> Yes, it is! At least one very small one (one-liner), which you can  
> make bigger and then see how to work with ediff (it's some time ago  
> since I last used it, usually a compare-windows is sufficient for me).
>

From http://www.emacswiki.org/emacs/EdiffMode

By default ediff spawns a new frame to display files to be compared or
merged. But I found it is less usable than use selected-frame to
operate on. Also it splits window vertically to display files and I
found it hard to perceive provided information in such way. Horizontal
split is more attractive for me.

To make ediff operate on selected-frame add next:
    (setq ediff-window-setup-function 'ediff-setup-windows-plain)

Unfortunately, there seems to be a bug in my particular version of
Emacs 22.2.1.  It is fixed in Emacs 23, possibly in some version of 22.


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

* Re: How do I stop my emacs frame jumping when I enter emacs
  2009-06-14 20:22       ` jpkotta
@ 2009-06-15  9:58         ` Alex Bennee
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Bennee @ 2009-06-15  9:58 UTC (permalink / raw
  To: jpkotta; +Cc: help-gnu-emacs

2009/6/14 jpkotta <jpkotta@gmail.com>:
> On Jun 11, 10:15 am, Peter Dyballa <Peter_Dyba...@web.de> wrote:
>> Am 11.06.2009 um 16:53 schrieb Alex Bennee:
>>
>> > But why would the window manager get involved? Is ediff creating new
>> > frames for the hell of it?
>>
>> Yes, it is! At least one very small one (one-liner), which you can
>> make bigger and then see how to work with ediff (it's some time ago
>> since I last used it, usually a compare-windows is sufficient for me).
> <snip>
>
> To make ediff operate on selected-frame add next:
>    (setq ediff-window-setup-function 'ediff-setup-windows-plain)

I already had this set which is why I was confussed as to why ediff
would create the new frame.

-- 
Alex, homepage: http://www.bennee.com/~alex/
http://www.half-llama.co.uk




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

end of thread, other threads:[~2009-06-15  9:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-11 13:57 How do I stop my emacs frame jumping when I enter emacs Alex Bennee
2009-06-11 14:45 ` Peter Dyballa
2009-06-11 14:53   ` Alex Bennee
2009-06-11 15:15     ` Peter Dyballa
     [not found]     ` <mailman.468.1244733313.2239.help-gnu-emacs@gnu.org>
2009-06-14 20:22       ` jpkotta
2009-06-15  9:58         ` Alex Bennee
     [not found]   ` <mailman.463.1244731989.2239.help-gnu-emacs@gnu.org>
2009-06-11 15:05     ` Pascal J. Bourguignon

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.