From: "Drew Adams" <drew.adams@oracle.com>
To: "'Leo Alekseyev'" <dnquark@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Cycle through buffers of the same mode?..
Date: Thu, 6 Jan 2011 14:13:00 -0800 [thread overview]
Message-ID: <5BB5FC1CFCCB4DB7982473AF3D102C20@us.oracle.com> (raw)
In-Reply-To: <AANLkTikOqhJ0uhdTOw5Vfo5Ui0Re2xW61h88BWgBd2gR@mail.gmail.com>
> I'd like to generalize this behavior as follows: if I am in a
> buffer with major mode X, pressing a key will cycle me through
> all open buffers in major mode X. That way I could easily cycle
> through all my open org buffers, dired buffers, etc.
In Icicles, `C-0 C-x b' does that: Only buffers in the same mode are candidates.
You can then cycle among the candidates that match your input in the minibuffer
(e.g., hit `down' to cycle).
This is true for all Icicles commands that read a buffer name (`C-x k' etc.): a
zero prefix arg limits the candidates to buffers in the same mode. A positive
arg limits them to buffers visiting files. A negative arg limits them to
buffers associated with the selected frame.
You can instead filter the candidates on the fly to buffers in a given mode, by
using `C-x M' during completion. (You are prompted for the mode, then
buffer-name completion continues.)
http://www.emacswiki.org/emacs/Icicles_-_Buffer-Name_Input
You can also filter completion candidates (any kind, not just buffer names) in
several different ways at the same time (e.g. buffers visiting files whose size
is > 10K), by using `M-&' during completion. That prompts you for a predicate
to filter the current matches. Use `M-&' as many times as you like, to combine
filters.
http://www.emacswiki.org/emacs/Icicles_-_Progressive_Completion#Predicates
next prev parent reply other threads:[~2011-01-06 22:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-05 22:58 Cycle through buffers of the same mode? Leo Alekseyev
2011-01-06 22:13 ` Drew Adams [this message]
[not found] <mailman.29.1294268309.13904.help-gnu-emacs@gnu.org>
2011-01-06 6:56 ` rusi
2011-01-06 10:58 ` Le Wang
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=5BB5FC1CFCCB4DB7982473AF3D102C20@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=dnquark@gmail.com \
--cc=help-gnu-emacs@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.
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).