From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Cycle through buffers of the same mode?.. Date: Thu, 6 Jan 2011 14:13:00 -0800 Message-ID: <5BB5FC1CFCCB4DB7982473AF3D102C20@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294352136 21449 80.91.229.12 (6 Jan 2011 22:15:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Jan 2011 22:15:36 +0000 (UTC) To: "'Leo Alekseyev'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 06 23:15:31 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pay7H-0001pQ-5g for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Jan 2011 23:15:31 +0100 Original-Received: from localhost ([127.0.0.1]:39194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pay7G-0005sF-8A for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Jan 2011 17:15:30 -0500 Original-Received: from [140.186.70.92] (port=47291 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pay6Z-0005qY-QA for help-gnu-emacs@gnu.org; Thu, 06 Jan 2011 17:14:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pay6Y-0003Tc-2r for help-gnu-emacs@gnu.org; Thu, 06 Jan 2011 17:14:47 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:50233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pay6X-0003TY-SV for help-gnu-emacs@gnu.org; Thu, 06 Jan 2011 17:14:46 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p06MEfMB005723 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 6 Jan 2011 22:14:42 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p06MAanv001105; Thu, 6 Jan 2011 22:14:40 GMT Original-Received: from abhmt013.oracle.com by acsmt355.oracle.com with ESMTP id 937223781294351977; Thu, 06 Jan 2011 14:12:57 -0800 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 06 Jan 2011 14:12:57 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcutLHTNoUoZJny0RKmP7gxOwPGHSwAvwqlg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78269 Archived-At: > 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