emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: window-next-buffers


From: Juri Linkov
Subject: Re: window-next-buffers
Date: Fri, 25 Nov 2011 21:02:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu)

>> 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).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]