From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: How do I stop my emacs frame jumping when I enter emacs Date: Thu, 11 Jun 2009 17:05:45 +0200 Organization: Anevia SAS Message-ID: <7c4oum24l2.fsf@pbourguignon.anevia.com> References: <5D77A036-F287-41D4-B502-48EDB3B4F910@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244734853 14269 80.91.229.12 (11 Jun 2009 15:40:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jun 2009 15:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 11 17:40:50 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MEmOT-0005qI-17 for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jun 2009 17:40:45 +0200 Original-Received: from localhost ([127.0.0.1]:49620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEmOS-0007BY-2O for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jun 2009 11:40:44 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!kanaga.switch.ch!switch.ch!ecngs!feeder2.ecngs.de!proxad.net!feeder1-1.proxad.net!cleanfeed1-a.proxad.net!nnrp3-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:MTg4ZmM1MGU2MGEzZjViMjUzNTBjNjNhNjBmZmJlOGU3NDQxY2E0ZQ== Original-Lines: 41 Original-NNTP-Posting-Date: 11 Jun 2009 17:05:45 MEST Original-NNTP-Posting-Host: 88.170.236.224 Original-X-Trace: 1244732745 news-1.free.fr 27606 88.170.236.224:46214 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:169950 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65177 Archived-At: Alex Bennee writes: > 2009/6/11 Peter Dyballa : >> >> 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__