all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Juri Linkov <juri@jurta.org>
Cc: "Stephen J. Turnbull" <stephen@xemacs.org>,
	Chong Yidong <cyd@gnu.org>,
	emacs-devel@gnu.org
Subject: Re: window-next-buffers
Date: Sat, 26 Nov 2011 12:44:35 +0100	[thread overview]
Message-ID: <4ED0D123.1010306@gmx.at> (raw)
In-Reply-To: <87r50wkouv.fsf@mail.jurta.org>

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

A window's previous buffers are perused as follows:

(1) For navigating the buffers shown in a window.  This calls
     `switch-to-prev-buffer' with BURY-OR-KILL nil and preferably does
     not show a buffer from the window's next buffers.

(2) For burying or killing the buffer shown in a window.  This may call
     `switch-to-prev-buffer' with BURY-OR-KILL non-nil and can show a
     buffer from window's next buffers.

(3) For quitting a window.  This works on the window's previous buffers
     directly and can show a buffer from window's next buffers.

So any optimization for (1) must make sure that operations (2) and (3)
are not harmed.  In addition you will have to do the proper action for
`set-window-buffer'.

And the most annoying problem, namely that a buffer on one of these
lists gets killed while I can't access these lists because they are
hidden by a window excursion, must be handled too (maybe directly in
`set-window-configuration').

martin



      parent reply	other threads:[~2011-11-26 11:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-24  7:58 window-next-buffers Chong Yidong
2011-11-24  9:24 ` window-next-buffers Chong Yidong
2011-11-24 10:07   ` window-next-buffers martin rudalics
2011-11-24  9:59 ` window-next-buffers martin rudalics
2011-11-24 19:00   ` window-next-buffers Juri Linkov
2011-11-25 10:15     ` window-next-buffers martin rudalics
2011-11-25 10:33       ` window-next-buffers Juri Linkov
2011-11-25 13:55         ` window-next-buffers martin rudalics
2011-11-25 15:11         ` window-next-buffers Stephen J. Turnbull
2011-11-25 16:05           ` window-next-buffers Chong Yidong
2011-11-25 19:02             ` window-next-buffers Juri Linkov
2011-11-26  6:59               ` window-next-buffers Chong Yidong
2011-11-26 11:44               ` martin rudalics [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ED0D123.1010306@gmx.at \
    --to=rudalics@gmx.at \
    --cc=cyd@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    --cc=stephen@xemacs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.