emacs-devel
[Top][All Lists]
Advanced

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

Re: window-next-buffers


From: martin rudalics
Subject: Re: window-next-buffers
Date: Thu, 24 Nov 2011 10:59:59 +0100
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

> IIUC, the functions window-next-buffers and set-window-next-buffers (and
> the corresponding next_buffers slot) exist for navigating "forward" in
> the window history list, via switch-to-next-buffer, after doing
> switch-to-prev-buffer.
>
> Maintaining separate prev-history and next-history lists is not very
> Emacs-y.  Why isn't this a ring?

Because `window-previous-buffers' returns a list of <buffer window-start
pos> triples where the latter two are markers and `window-next-buffers'
a plain list of buffers.  Maintaining markers is expensive, so I wanted
to reduce the overhead for the next buffers part of the list.

martin



reply via email to

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