unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Cc: alkibiades@gmx.de, emacs-devel@gnu.org
Subject: Re: `buffer-list' and the frame-parameter `buffer-predicate'
Date: Sun, 18 Aug 2002 19:24:13 +0200	[thread overview]
Message-ID: <vaffzxct70i.fsf@INBOX.auto.emacs.devel.tok.lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <200208180631.g7I6VWc08974@wijiji.santafe.edu> (Richard Stallman's message of "Sun, 18 Aug 2002 00:31:32 -0600 (MDT)")

Richard Stallman <rms@gnu.org> writes:

> Now I understand.  The idea of limiting which buffers you can switch
> to is not the issue, I think.  What you want to do is limit that
> buffers are included in lists that are shown or offered to you.
>
> It should be easy to do as a customization that by writing
> replacements for the buffer menu commands, for list-buffers, and for
> switch-to-buffer (supplying a different list for completion, perhaps).
> I suggest you give these commands new names and bind them to keys as
> you see fit.  That is cleaner than redefiniting the standard
> functions.

I think this is not the right solution, as there are a lot of
functions that list buffers (either as completions, like
switch-to-buffer, or as a menu, like buffer-menu).  It would be a lot
of work to change all of them, and if each one is changed
individually, the behaviors are wont to be slightly different for
each one.

For example, switch-to-buffer doesn't offer a buffer as the default
that has only been selected in another frame, but buffer-menu does.
(Most of the time, C-x b RET and M-x buffer-menu RET n RET switch to
the same buffer, but with switch-to-buffer avoiding buffers which
have been selected in another frame, the behavior becomes different.)

There should be a single function that returns the list of buffers to
be used for switching to another buffer, and all functions for
switching buffers should use this function.  Then there is one spot
to tweak in order to tweak the switching behavior.

Oliver can use this for his "frames as workspaces" idea (which is
great), and I could use this to cleanly implement flobl.el.  (This
stands for frame-local buffer list and it means that switching to a
buffer in frame X does not change the order of buffers in frame Y.)

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)

  reply	other threads:[~2002-08-18 17:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-16 18:27 `buffer-list' and the frame-parameter `buffer-predicate' Oliver Scholz
2002-08-16 20:15 ` Robert J. Chassell
2002-08-17  4:50 ` Richard Stallman
2002-08-17 11:19   ` Oliver Scholz
2002-08-17 12:54     ` Alex Schroeder
2002-08-17 15:33       ` Oliver Scholz
2002-08-18  6:31     ` Richard Stallman
2002-08-18 17:24       ` Kai Großjohann [this message]
2002-08-18 21:12         ` Oliver Scholz
2002-08-18 18:26       ` Oliver Scholz

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=vaffzxct70i.fsf@INBOX.auto.emacs.devel.tok.lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.de \
    --cc=alkibiades@gmx.de \
    --cc=emacs-devel@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).