help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: If exists, Kill buffer


From: Lennart Borgman
Subject: Re: If exists, Kill buffer
Date: Fri, 07 Oct 2005 18:34:27 +0200
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]