From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: If exists, Kill buffer Date: Fri, 07 Oct 2005 18:34:27 +0200 Message-ID: <4346A393.5050109@student.lu.se> References: <20051007162552.GD1784@johnsons-web.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128703109 21266 80.91.229.2 (7 Oct 2005 16:38:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2005 16:38:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 18:38:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENvBY-0004u9-NJ for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 18:35:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENvBY-00069x-6P for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 12:35:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ENvBE-00068I-Q9 for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 12:34:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ENvBD-000669-5A for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 12:34:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENvBD-00065z-2K for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 12:34:43 -0400 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ENvBD-0003j0-1k for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 12:34:43 -0400 Original-Received: from [192.168.123.121] (83.249.203.167) by pne-smtpout1-sn2.hy.skanova.net (7.2.060.1) id 4332AC7800367CA3; Fri, 7 Oct 2005 18:34:28 +0200 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Tim Johnson In-Reply-To: <20051007162552.GD1784@johnsons-web.com> 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:30034 Archived-At: 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.