From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: hjuvi Newsgroups: gmane.emacs.help Subject: window-size-fixed behaviour on emacs22-gtk Date: Sat, 13 Jun 2009 00:52:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6b71efd9-3e79-47fb-972c-47e8d31f8c82@r10g2000yqa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1244914499 31503 80.91.229.12 (13 Jun 2009 17:34:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Jun 2009 17:34:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 13 19:34:57 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 1MFX83-00075b-MG for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jun 2009 19:34:55 +0200 Original-Received: from localhost ([127.0.0.1]:55155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFX83-0008CE-3m for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jun 2009 13:34:55 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r10g2000yqa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 47 Original-NNTP-Posting-Host: 91.163.44.217 Original-X-Trace: posting.google.com 1244879538 18589 127.0.0.1 (13 Jun 2009 07:52:18 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 13 Jun 2009 07:52:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r10g2000yqa.googlegroups.com; posting-host=91.163.44.217; posting-account=IiLCJgoAAAD0xOHhzuJAhU8es3tVRnZ4 User-Agent: G2/1.0 X-HTTP-Via: 1.1 tinyproxy (tinyproxy/1.6.4) X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.04 (hardy) Firefox/3.0.6, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170011 X-Mailman-Approved-At: Sat, 13 Jun 2009 13:34:10 -0400 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:65253 Archived-At: Hello, Changing from emacs21 to emacs22-gtk (on Ubuntu desktop), I'm no longer able to have window-size-fixed work properly - or at least how I expect it to work :) I've been using it to have a window with fixed size in the middle of the frame. On emacs21, I can change the size of other windows, this particular one moves up and down but always keep the same height. This is how I expect it to work... On emacs22-gtk, if I drag from the upper side (mode-line) of the window, it enlarges (which should not happen). If I drag from the lower side of the window, it doesn't move at all !... Why is the behaviour different between emacs21 and emacs22-gtk ? The behaviour on emacs21 matches with my needs (and with the idea of window-size-fixed, I believe), whereas I cannot get it work properly on emacs22-gtk. Below is some lisp code to show the problem : you can put it in a file test.el, and call : emacs -q -l test.el (setq inhibit-startup-message t) (split-window-vertically) (split-window-vertically) (split-window-horizontally) (switch-to-buffer (get-buffer-create "buffer1")) (select-window (next-window)) (switch-to-buffer (get-buffer-create "buffer2")) (select-window (next-window)) (switch-to-buffer (get-buffer-create "buffer3")) (select-window (next-window)) (switch-to-buffer (get-buffer-create "buffer4")) (select-window (previous-window)) (enlarge-window (- 5 (window-height))) (setq window-size-fixed t) "buffer3" window is supposed to have fixed size. Thanks to anyone who can help me... If the behaviour of window-size-fixed is unpredictable - depending on which version of emacs I use - I will have to remove the feature that need it, so I hope there is a solution...