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: Sat, 22 Aug 2009 16:17:31 +0200 Message-ID: <4A8FFDFB.20502@gmx.at> References: <4A8D46C9.1010108@gmx.at> <4A8D66D5.3000600@gmx.at> <4A8D92AC.5010404@gmx.at> <4A8E95A3.5040604@gmx.at> <4A8FCFDC.2030608@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250950678 17120 80.91.229.12 (22 Aug 2009 14:17:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Aug 2009 14:17:58 +0000 (UTC) Cc: Emacs-Devel devel To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 22 16:17:51 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 1MerPh-0002L9-Ra for ged-emacs-devel@m.gmane.org; Sat, 22 Aug 2009 16:17:50 +0200 Original-Received: from localhost ([127.0.0.1]:49226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MerPh-0003OM-4T for ged-emacs-devel@m.gmane.org; Sat, 22 Aug 2009 10:17:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MerPb-0003Kf-0t for emacs-devel@gnu.org; Sat, 22 Aug 2009 10:17:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MerPW-00038v-5D for emacs-devel@gnu.org; Sat, 22 Aug 2009 10:17:42 -0400 Original-Received: from [199.232.76.173] (port=60399 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MerPW-00038j-03 for emacs-devel@gnu.org; Sat, 22 Aug 2009 10:17:38 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:47056) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MerPV-0007aN-CP for emacs-devel@gnu.org; Sat, 22 Aug 2009 10:17:37 -0400 Original-Received: (qmail invoked by alias); 22 Aug 2009 14:17:35 -0000 Original-Received: from 62-47-45-144.adsl.highway.telekom.at (EHLO [62.47.45.144]) [62.47.45.144] by mail.gmx.net (mp008) with SMTP; 22 Aug 2009 16:17:35 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/dUtQOKgHdonme24fm0PtSPP21meDqkWQy8L0NJS 8JfTAW1KmDK2mp User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:114516 Archived-At: > There is no problem doing calculations on copies. With "apply" I mean > applying the calculated sizes to Emacs windows. That's what a function `apply-new-window-sizes' would be for. >>> Then I assume that window configurations must be used to get my >>> suggestion to work. The drawback I see then is that window pointers >>> migh gets lost. Are there any way around that? >> Which window pointers get lost? > > I thought that using window configurations you create new windows > instead of the old ones when restoring the configuration into the > frame. Is not that how it works? Doing `set-window-configuration' within the old frame resurrects the old windows. > If it is then some elisp code might have pointers to the windows. The complete window structure is saved within the configuration together with a pointer to the window. This also means that the respective windows can't be GCed as long as a pointer to the configuration exists. > Thanks. What would be the corresponing divider in Emacs? I mean a mode > line for example takes one screen line and would take some space ... - > and then perhaps it will not fit... One item on my wishlist are horizontal and vertical dividers I can display independently from modelines and/or scrollbars. When I currently want to drag a vertical divider with the mouse I have to do it from a fringe :-( martin