From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: moving window handling into lisp Date: Sun, 16 Aug 2009 17:17:05 +0200 Message-ID: <4A8822F1.8040506@gmx.at> References: <4A86AD92.7030308@gmx.at> <87vdkpfbeg.fsf@lola.goethe.zz> <4A86DE30.8060902@gmx.at> <4A86F24D.4090103@gmx.at> <4A87DE88.6050209@gmx.at> <87bpmgdkjb.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250435851 17912 80.91.229.12 (16 Aug 2009 15:17:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Aug 2009 15:17:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 16 17:17:23 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MchU2-0007y5-OD for ged-emacs-devel@m.gmane.org; Sun, 16 Aug 2009 17:17:23 +0200 Original-Received: from localhost ([127.0.0.1]:58430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MchU1-0002vJ-VC for ged-emacs-devel@m.gmane.org; Sun, 16 Aug 2009 11:17:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MchTv-0002vE-U3 for emacs-devel@gnu.org; Sun, 16 Aug 2009 11:17:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MchTq-0002v2-Eh for emacs-devel@gnu.org; Sun, 16 Aug 2009 11:17:14 -0400 Original-Received: from [199.232.76.173] (port=55410 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MchTq-0002uz-8V for emacs-devel@gnu.org; Sun, 16 Aug 2009 11:17:10 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:57056) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MchTp-0002Bu-Le for emacs-devel@gnu.org; Sun, 16 Aug 2009 11:17:10 -0400 Original-Received: (qmail invoked by alias); 16 Aug 2009 15:17:07 -0000 Original-Received: from 62-47-41-44.adsl.highway.telekom.at (EHLO [62.47.41.44]) [62.47.41.44] by mail.gmx.net (mp034) with SMTP; 16 Aug 2009 17:17:07 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+W+/kYrlGW453yF2tfH+bzp3bUTEj87h0uJnnRSo p2lVJd8uwfUvSG User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87bpmgdkjb.fsf@lola.goethe.zz> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.7 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114313 Archived-At: > What _is_ the "old structure" when resizing opaquely? It might be > easiest to store window sizes as fractions. When resizing a frame, the > fractions don't change (so the internal window configuration snaps to > the closest integral value). When resizing individual windows, the > fractions are made whole again, matching the character positions of the > frame. I'm not sure how to understand the last sentence. Why and how are "fractions made whole again"? > Note that storing stuff in that manner also allows repeated toggles of > tool-bar-mode and similar to revert to the original frame configuration > painlessly since the outer window edges (which can't be repositioned > within a frame) retain the original fractions indefinitely as long as > the frame itself is not resized manually. I suppose the outer window edges also change fractions when the window is resized manually. Or what am I missing? Anyway note that we implicitly use a fractional approach when resizing a frame. The major obstacles to this are `window-min-height' and `window-min-width' and fixed-size windows. Also I'm not sure how to handle window/buffer specific associations like `fit-window-to-buffer' and `temp-buffer-resize-mode'. martin