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: Window configurations Date: Fri, 14 May 2010 09:00:57 +0200 Message-ID: <4BECF529.9000904@gmx.at> References: <4BE96186.7060504@gmx.de> <4BEA74B7.2070609@gmx.at> <87wrv7peq5.fsf@mail.jurta.org> 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: dough.gmane.org 1273820498 22329 80.91.229.12 (14 May 2010 07:01:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 14 May 2010 07:01:38 +0000 (UTC) Cc: grischka , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 14 09:01:35 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OCotp-0006J1-HT for ged-emacs-devel@m.gmane.org; Fri, 14 May 2010 09:01:34 +0200 Original-Received: from localhost ([127.0.0.1]:42841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCotm-0006TS-WD for ged-emacs-devel@m.gmane.org; Fri, 14 May 2010 03:01:31 -0400 Original-Received: from [140.186.70.92] (port=44391 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCotb-0006Pq-2H for emacs-devel@gnu.org; Fri, 14 May 2010 03:01:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCotR-0006YV-Ho for emacs-devel@gnu.org; Fri, 14 May 2010 03:01:12 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:55639) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OCotQ-0006Y9-HM for emacs-devel@gnu.org; Fri, 14 May 2010 03:01:09 -0400 Original-Received: (qmail invoked by alias); 14 May 2010 07:01:05 -0000 Original-Received: from 62-47-45-110.adsl.highway.telekom.at (EHLO [62.47.45.110]) [62.47.45.110] by mail.gmx.net (mp024) with SMTP; 14 May 2010 09:01:05 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+KOvo3hH+KklLpcLRzrXJVpx3yU0p2YKiFuMIYYC /OSTsVdfIuLx8G User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87wrv7peq5.fsf@mail.jurta.org> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:124758 Archived-At: >> One complication is that window configurations would >> have to store the buffer stack and all buffer references. > > Yes, window configurations have to store the buffer stack. > Like frame configurations store the buffer list, > there is no problem with that. In a list structure we'd store buffer names and have to resolve the known ambiguities. > `set-window-buffer' could add its buffer to the stack only when > it is different than a buffer on the top of the stack. That's obvious. > A problem > may occur when `set-window-buffer' is used to set a buffer > temporarily. Perhaps `set-window-buffer' should have a new argument > (e.g. NO-RECORD) to not change the stack in this case. I suppose we need the extra argument also to specify whether the buffer should go to the top or the bottom of the stack. For example, `quit-window' and `replace-buffer-in-windows' must be able to make sure that the buffer goes to the bottom where it's the most unlikely candidate to be shown again. Otherwise, I might end up cycling through a subset of the stacked buffers only when I continuously try to pop items from it (via some `other-window-buffer' function, say). On the other hand, when `display-buffer' reuses a window to show another buffer in it, the old buffer should go to the top of the stack instead, thus becoming the most likely candidate to be shown again. martin