emacs-devel
[Top][All Lists]
Advanced

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

Re: window-next-buffers


From: Chong Yidong
Subject: Re: window-next-buffers
Date: Sat, 26 Nov 2011 14:59:54 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux)

Juri Linkov <address@hidden> writes:

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

Yes, that would be far simpler.



reply via email to

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