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: Wed, 16 Jun 2010 19:25:01 +0200 Message-ID: <4C1908ED.6090107@gmx.at> References: <4BB4CF6B.2000007@alice.it> <87bpcv1wvt.fsf@mail.jurta.org> <4BE13828.2030609@gmx.at> <87vdb2qo82.fsf@mail.jurta.org> <4BE27C17.3030005@gmx.at> <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> 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 1276709751 11279 80.91.229.12 (16 Jun 2010 17:35:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Jun 2010 17:35:51 +0000 (UTC) Cc: Stefan Monnier , Emacs To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 16 19:35:49 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 1OOwWc-000352-U8 for ged-emacs-devel@m.gmane.org; Wed, 16 Jun 2010 19:35:46 +0200 Original-Received: from localhost ([127.0.0.1]:45220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOwWZ-0007kt-Os for ged-emacs-devel@m.gmane.org; Wed, 16 Jun 2010 13:35:39 -0400 Original-Received: from [140.186.70.92] (port=37686 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOwPO-00043z-LC for emacs-devel@gnu.org; Wed, 16 Jun 2010 13:28:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOwMP-0006qF-Cc for emacs-devel@gnu.org; Wed, 16 Jun 2010 13:25:11 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:53111) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OOwMO-0006py-Vn for emacs-devel@gnu.org; Wed, 16 Jun 2010 13:25:09 -0400 Original-Received: (qmail invoked by alias); 16 Jun 2010 17:25:06 -0000 Original-Received: from 62-47-61-160.adsl.highway.telekom.at (EHLO [62.47.61.160]) [62.47.61.160] by mail.gmx.net (mp045) with SMTP; 16 Jun 2010 19:25:06 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19zmepI+TJzNTFK4rmILQyRuTrITrn+AUt2uJTn1i jZypRGqfAD3Se8 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87pqzsm2m6.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:126024 Archived-At: >> So we have to decide >> >> (1) wherever this "But it should put ..." shall be done (in >> `bury-buffer', `quit-window', ...), and > > I suppose this should be done in all places that currently modify > the buffer-list. `select-window' does modify the buffer list but there we probably don't care. Anyway, what I need to know is how to deal with all the `other-buffer' calls in general. For example, how do we determine the prompt for `read-buffer-to-switch'? This is called by `switch-to-buffer' but also by `switch-to-buffer-other-window' and `switch-to-buffer-other-frame' where we don't know the target window in advance. And we certainly don't want to prompt with a visible buffer there. >> (2) whether a window-local buffer-list may contain something else but >> entries associated with buffers (as your text somehow insinuates). > > Yes, elements of a window-local buffer-list should also contain > window-start and window-point. In my `quit-restore-window' parameter I currently store whether to the kill the window and which window to select instead. These are not very compatible with buffer lists but I do need them in order to keep up the current behavior of quitting a help buffer or view mode. Mixing these into window local buffer list is not very nice. martin