unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: If exists, Kill buffer
Date: Fri, 07 Oct 2005 18:34:27 +0200	[thread overview]
Message-ID: <4346A393.5050109@student.lu.se> (raw)
In-Reply-To: <20051007162552.GD1784@johnsons-web.com>

Tim Johnson wrote:

>I need a function that will kill a (named) buffer if it exists.
>1)Is there one?
>  a)If not, I will need a function that checks for the existance
>    of a buffer by name.
>  b)Is there one?
>Pointers to docs, resources welcomed.
>tim
>
>  
>
(get-buffer NAME)

Use C-h get-buffer RET to get basic documentation.

In the Elisp manual you can look under "Buffers" - "Buffer Names". 

If you are using CVS Emacs (next generation of Emacs, not yet released) 
you can find this manual by first selecting from the menus "Help - Read 
Emacs Manual" and then then choose Emacs Lisp. If you are using current 
Emacs (version 21.3) it can happen that it is not installed by default.

  parent reply	other threads:[~2005-10-07 16:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-07 16:25 If exists, Kill buffer Tim Johnson
2005-10-07 16:32 ` J. David Boyd
2005-10-07 16:34 ` Lennart Borgman [this message]
2005-10-07 16:37 ` Slawomir Nowaczyk
2005-10-07 16:53   ` Tim Johnson
2005-10-07 20:15     ` Slawomir Nowaczyk
2005-10-07 20:23       ` Edward O'Connor
2005-10-07 22:16         ` Slawomir Nowaczyk

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=4346A393.5050109@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --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).