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-next-buffers Date: Fri, 25 Nov 2011 21:02:00 +0200 Organization: JURTA Message-ID: <87r50wkouv.fsf@mail.jurta.org> References: <878vn67y0l.fsf@gnu.org> <4ECE159F.8080300@gmx.at> <8739dduz0q.fsf@mail.jurta.org> <4ECF6AD1.1070807@gmx.at> <87zkfkqynp.fsf@mail.jurta.org> <87mxbkp78m.fsf@uwakimon.sk.tsukuba.ac.jp> <87wraotcg8.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322247857 11314 80.91.229.12 (25 Nov 2011 19:04:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2011 19:04:17 +0000 (UTC) Cc: martin rudalics , "Stephen J. Turnbull" , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 25 20:04:13 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RU14H-0001Fd-1D for ged-emacs-devel@m.gmane.org; Fri, 25 Nov 2011 20:04:13 +0100 Original-Received: from localhost ([::1]:52686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RU14G-0001jS-8t for ged-emacs-devel@m.gmane.org; Fri, 25 Nov 2011 14:04:12 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RU14D-0001iz-OX for emacs-devel@gnu.org; Fri, 25 Nov 2011 14:04:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RU14C-0007gI-QA for emacs-devel@gnu.org; Fri, 25 Nov 2011 14:04:09 -0500 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:39399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RU14B-0007bi-BV; Fri, 25 Nov 2011 14:04:07 -0500 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 199756E8050; Fri, 25 Nov 2011 11:04:06 -0800 (PST) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 7B655451C597; Fri, 25 Nov 2011 11:03:57 -0800 (PST) In-Reply-To: <87wraotcg8.fsf@gnu.org> (Chong Yidong's message of "Sat, 26 Nov 2011 00:05:11 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.113.175.8 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146238 Archived-At: >> Actually, I suspect it means that Yidong was right when he suggested a >> ring. Butnevermind.... > > No, I was wrong: a ring isn't a good fit for the design, in which > `switch-to-prev-buffer' (i) switches to the previous buffers displayed > in the buffer, and (ii) after successive `switch-to-prev-buffer's reach > the end of that list, the command moves on to other buffers in the > buffer list which the window hadn't visited before. If we used a ring, > we'd never hit the end, so we'd never move on to (ii). Then we need just one list of buffers (visited in the window) and the pointer referencing the currently displayed buffer (or a numeric index of the position of the currently displayed buffer in the list of visited buffers).