unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Robert Thorpe" <rthorpe@realworldtech.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Donot want to see default buffers
Date: 13 Mar 2007 10:44:22 -0700	[thread overview]
Message-ID: <1173807862.313064.72150@p10g2000cwp.googlegroups.com> (raw)
In-Reply-To: <1173719248.927311.189310@h3g2000cwc.googlegroups.com>

On Mar 12, 5:07 pm, "rgb" <rbiel...@i1.net> wrote:
> On Mar 11, 11:58 am, "CloudStrife" <santosh.iitm2...@gmail.com> 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.

  reply	other threads:[~2007-03-13 17:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-11 16:58 Donot want to see default buffers CloudStrife
2007-03-12 17:07 ` rgb
2007-03-13 17:44   ` Robert Thorpe [this message]
2007-03-13  5:15 ` B. T. Raven

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=1173807862.313064.72150@p10g2000cwp.googlegroups.com \
    --to=rthorpe@realworldtech.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).