From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert Thorpe" Newsgroups: gmane.emacs.help Subject: Re: Donot want to see default buffers Date: 13 Mar 2007 10:44:22 -0700 Organization: http://groups.google.com Message-ID: <1173807862.313064.72150@p10g2000cwp.googlegroups.com> References: <1173632299.648993.226090@j27g2000cwj.googlegroups.com> <1173719248.927311.189310@h3g2000cwc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1173811188 2097 80.91.229.12 (13 Mar 2007 18:39:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2007 18:39:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 13 19:39:41 2007 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.50) id 1HRBuO-0002SM-ND for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Mar 2007 19:39:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRBvB-0008Eq-UN for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Mar 2007 13:40:29 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!p10g2000cwp.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 213.94.228.210 Original-X-Trace: posting.google.com 1173807868 15196 127.0.0.1 (13 Mar 2007 17:44:28 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 13 Mar 2007 17:44:28 +0000 (UTC) In-Reply-To: <1173719248.927311.189310@h3g2000cwc.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 EMF3ASPROXY03 Complaints-To: groups-abuse@google.com Injection-Info: p10g2000cwp.googlegroups.com; posting-host=213.94.228.210; posting-account=hWoAPxMAAAAnBKSBz1ZivwUPPjEuve7bvVCHZQ8rhrluPfwcBJd92w Original-Xref: shelby.stanford.edu gnu.emacs.help:146323 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:41927 Archived-At: On Mar 12, 5:07 pm, "rgb" wrote: > On Mar 11, 11:58 am, "CloudStrife" wrote: > > > Hi, > > I donot want to see the default buffers like scratch Messages > > Completions etc in C-x C-b . Can anyone help me out. I am new to emacs > > and the simpler the solution the better it is. > > Regards > > Cloud > > The very simplest answer is to use C-u C-x C-b And to be extra sneaky you can do:- (defun list-buffers (&optional files-only) "Display a list of names of existing buffers. The list is displayed in a buffer named `*Buffer List*'. Note that buffers with names starting with spaces are omitted. Non-null optional arg FILES-ONLY means mention only file buffers. The M column contains a * for buffers that are modified. The R column contains a % for buffers that are read-only." (interactive "P") (display-buffer (list-buffers-noselect (not files-only)))) Which reverse the meanings, so C-x C-b shows only file buffers and C-u C-x C-b shows all. There are several buffer listing systems in Emacs you can choose according to taste standard list-buffers, bs-show and iswitchb. You could do this using iswitchb as B.T.Raven points out. Also the bs- show system automatically only lists buffers associated with files.