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: Mon, 31 May 2010 23:19:29 +0300 Organization: JURTA Message-ID: <87ocfvvn5e.fsf@mail.jurta.org> References: <4BB4CF6B.2000007@alice.it> <69D40D69CC6F4982A8E91D8D8F0F494F@us.oracle.com> <87r5m4hz39.fsf@mail.jurta.org> <4BD40821.70808@gmx.at> <87zl0rtmqy.fsf@mail.jurta.org> <871vdu6qn5.fsf@mail.jurta.org> <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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275337626 9852 80.91.229.12 (31 May 2010 20:27:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 May 2010 20:27:06 +0000 (UTC) Cc: martin rudalics , Emacs To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 31 22:27:05 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 1OJBZg-0006Mq-U3 for ged-emacs-devel@m.gmane.org; Mon, 31 May 2010 22:27:05 +0200 Original-Received: from localhost ([127.0.0.1]:57867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJBZg-0002ZM-AC for ged-emacs-devel@m.gmane.org; Mon, 31 May 2010 16:27:04 -0400 Original-Received: from [140.186.70.92] (port=41735 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJBXO-0000FJ-TH for emacs-devel@gnu.org; Mon, 31 May 2010 16:24:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJBXM-00030Z-Nx for emacs-devel@gnu.org; Mon, 31 May 2010 16:24:42 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:40428 helo=mx1.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJBXM-00030B-Dx for emacs-devel@gnu.org; Mon, 31 May 2010 16:24:40 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (85.253.48.75.cable.starman.ee [85.253.48.75]) by mx1.starman.ee (Postfix) with ESMTP id 2A7033F40AA; Mon, 31 May 2010 23:24:36 +0300 (EEST) In-Reply-To: (Stefan Monnier's message of "Mon, 31 May 2010 14:39:35 -0400") 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:125411 Archived-At: >> (1) All calls to `other-buffer' for determining which buffer to show in >> a window have the second argument nil. So if a buffer is already shown >> in another window it's against some unwritten rule to show it in the >> window in question again. If I follow that rule, then working with two >> windows showing the same buffer remains just as tedious as it is now. > > Yes, the window handling code currently considers that the most likely > thing the user wants is to see a buffer that's not currently shown. > [ I'm not sure if it's careful to distinguish "shown on the current > terminal" from "shown in some other terminal, miles away from here", > which it should. ] > This seems like a good default rule, so if we/you want to not follow > this rule in some cases, we should think about how we can tell which is > the better choice in a given situation. It's a good default rule for some cases like switching to another buffer with e.g. `C-x b', for other cases (like killing a buffer and finding another buffer to show in its place) a better rule would be to not see if that buffer is currently shown. -- Juri Linkov http://www.jurta.org/emacs/