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: Hide extraneous buffers? Date: Fri, 18 May 2012 13:39:09 -0700 Message-ID: <250BD2AA88984452800ABB238336DE2A@us.oracle.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337373572 4792 80.91.229.3 (18 May 2012 20:39:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 May 2012 20:39:32 +0000 (UTC) To: "'BDB'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 18 22:39:31 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SVTxM-0008Je-Qf for geh-help-gnu-emacs@m.gmane.org; Fri, 18 May 2012 22:39:24 +0200 Original-Received: from localhost ([::1]:48017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVTxM-0001W7-8z for geh-help-gnu-emacs@m.gmane.org; Fri, 18 May 2012 16:39:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVTxG-0001W2-Vu for help-gnu-emacs@gnu.org; Fri, 18 May 2012 16:39:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SVTxE-0001Wn-V7 for help-gnu-emacs@gnu.org; Fri, 18 May 2012 16:39:18 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:28929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVTxE-0001Wa-OH for help-gnu-emacs@gnu.org; Fri, 18 May 2012 16:39:16 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q4IKdEUY015249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 18 May 2012 20:39:14 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q4IKdDts025773 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 May 2012 20:39:13 GMT Original-Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q4IKdDfx003228; Fri, 18 May 2012 15:39:13 -0500 Original-Received: from dradamslap1 (/10.159.222.233) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 18 May 2012 13:39:13 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac01IMVcFDdMrZWaTrK2zYzf5zpOZAAD6gdQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84885 Archived-At: > Is there any way to hide the *scratch*, Messages, Completions > etc buffers? I kill them but they always come back, and it's > a pain to have to cycle through 6 buffers when I only really > have 3 meaningful ones open. They are _supposed_ to "always come back". ;-) You need to define clearly (for yourself) what you mean by the "meaningful" ones. Then you can build a filter that does what you want. If buffer names `*...*' are not meaninful for you in general, then you can exclude them all using a regexp. In Icicles you can just set option `icicle-buffer-no-match-regexp' to "\\`\\*[^*]+\\*\\'" to do that. If you want to exclude only certain buffers, explicitly, then you can define a predicate that tests membership in your blacklist. In Icicles you can set set option `icicle-buffer-predicate' to that predicate to filter them out. If you want to include buffers of some kind but you want them to be at the end of the list of choices, then you can define a sort function that does that. In Icicles you can do that by setting option `icicle-buffer-sort' to that function. There are several such Icicles user options that control buffer-name completion. You can also define one or more "buffer configurations", each of which is a set of such option settings that defines a set of buffers to use (choose from). For example, I have one buffer config that includes all buffer names but sorts those with names matching `*...*' last. It looks like this: ("All, *...* Buffers Last" ; Config name nil ; Match regexp (none) nil ; Don't-match regexp (none) nil ; Predicate (none) nil ; List of extra buffers to ; always include (none) icicle-buffer-sort-*...*-last ; Sort function ) Sort function `icicle-buffer-*...*-last' is predefined, but you can roll your own sort function - it's just a predicate that compares two buffer names (strings). You can have as many buffer configs as you like. You can choose a different one at any time using `M-x icicle-buffer-config'. You can use command `icicle-add-buffer-config' to define a config. You don't need to use buffer configs, but they give you a quick way to pick a whole set of option settings. http://www.emacswiki.org/emacs/Icicles_-_Customization_and_General_Tips#toc95 http://www.emacswiki.org/emacs/Icicles_-_Global_Filters http://www.emacswiki.org/emacs/Icicles_-_Support_for_Projects#toc6