From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Window configurations Date: Thu, 17 Jun 2010 11:42:31 +0300 Organization: JURTA Message-ID: <87sk4mowe8.fsf@mail.jurta.org> References: <4BB4CF6B.2000007@alice.it> <87vdav4vx5.fsf@mail.jurta.org> <4BE900E7.3090402@gmx.at> <87r5liqv8f.fsf@mail.jurta.org> <4BEA74DC.2060103@gmx.at> <87y6fns8qo.fsf@mail.jurta.org> <4BECF4D6.9030707@gmx.at> <87632na2af.fsf@mail.jurta.org> <4C03F1B5.8040708@gmx.at> <4C04D1BF.9070902@gmx.at> <4C052F8C.8030208@gmx.at> <87sk56sg6x.fsf@mail.jurta.org> <4C16616C.2070101@gmx.at> <87pqztiafa.fsf@mail.jurta.org> <4C1726D3.2090308@gmx.at> <87pqzsm2m6.fsf@mail.jurta.org> <4C1908ED.6090107@gmx.at> <878w6esntw.fsf@mail.jurta.org> <4C19D59E.5010402@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1276766499 18810 80.91.229.12 (17 Jun 2010 09:21:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Jun 2010 09:21:39 +0000 (UTC) Cc: Stefan Monnier , Emacs To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 17 11:21:37 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 1OPBI1-0003UM-8z for ged-emacs-devel@m.gmane.org; Thu, 17 Jun 2010 11:21:37 +0200 Original-Received: from localhost ([127.0.0.1]:46899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPBI0-0004F7-CC for ged-emacs-devel@m.gmane.org; Thu, 17 Jun 2010 05:21:36 -0400 Original-Received: from [140.186.70.92] (port=50411 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPBHk-0004Bh-SE for emacs-devel@gnu.org; Thu, 17 Jun 2010 05:21:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPBHc-0005lW-OL for emacs-devel@gnu.org; Thu, 17 Jun 2010 05:21:20 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:46391 helo=mx1.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPBHc-0005kp-Fd for emacs-devel@gnu.org; Thu, 17 Jun 2010 05:21:12 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.55.250.cable.starman.ee [82.131.55.250]) by mx1.starman.ee (Postfix) with ESMTP id 74CA63F40E4; Thu, 17 Jun 2010 12:21:07 +0300 (EEST) In-Reply-To: <4C19D59E.5010402@gmx.at> (martin rudalics's message of "Thu, 17 Jun 2010 09:58:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.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:126070 Archived-At: > (and are flawed for frame local buffer lists as well). If frame-local buffer-lists are flawed, they should be fixed. But I think window-local buffer-lists should be modelled after frame-local buffer-lists. A frame-local buffer-list is a frame parameter, so a window-local buffer-list could be a window parameter, with more information associated with every element (window-start, window-point, quit-restore function). > I suppose that for the moment I'll abandon the idea of window local > buffer lists and return to them after I have solved some other issues. You will need window-local buffer-lists anyway to correctly restore previous places when quitting the window. IOW, instead of `quit-restore-window' parameter (that saves only 1 previous place), you can add a window parameter `buffer-list' (and use it to restore previous places when quitting) that later could combine its values with frame-local `buffer-list' and global `buffer-list' for the function `(buffer-list)'. > The problem is that the information contained there might be already > stale (the user might have done a lot of things in between). For help > windows it makes sense to check whether the window still displays the > help buffer and only if it does I proceed according to the information > stored in the window parameter. For arbitrary buffers in non-dedicated > windows I might just violate the principle of least surprise. I see no such problems for `view-return-to-alist', so maybe it won't a problem for other buffers too. -- Juri Linkov http://www.jurta.org/emacs/