From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: If exists, Kill buffer Date: Fri, 7 Oct 2005 08:53:19 -0800 Message-ID: <20051007165319.GE1784@johnsons-web.com> References: <20051007162552.GD1784@johnsons-web.com> <20051007183455.2342.SLAWOMIR.NOWACZYK.847@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128703723 23348 80.91.229.2 (7 Oct 2005 16:48:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2005 16:48:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 18:48:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENvOd-0001W1-9y for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 18:48:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENvOc-0004R4-QC for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 12:48:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ENvOO-0004Qz-5z for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 12:48:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ENvOM-0004QW-8w for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 12:48:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENvOM-0004QT-5r for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 12:48:18 -0400 Original-Received: from [208.218.214.5] (helo=postoffice.cniweb.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ENvOM-0004SA-9P for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 12:48:18 -0400 Original-Received: from linus.johnson.com (rdbck-static-445.palmer.mtaonline.net [64.4.232.191]) by postoffice.cniweb.net (8.13.5/8.13.5) with ESMTP id j97GmC95004928 for ; Fri, 7 Oct 2005 12:48:13 -0400 (EDT) Original-Received: from linus.johnson.com (localhost.johnson.com [127.0.0.1]) by linus.johnson.com (8.12.8/8.12.8) with ESMTP id j97GrJAD006943 for ; Fri, 7 Oct 2005 08:53:19 -0800 Original-Received: (from tim@localhost) by linus.johnson.com (8.12.8/8.12.8/Submit) id j97GrJkx006941 for help-gnu-emacs@gnu.org; Fri, 7 Oct 2005 08:53:19 -0800 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Tim Johnson , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <20051007183455.2342.SLAWOMIR.NOWACZYK.847@student.lu.se> User-Agent: Mutt/1.4.2.1i 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:30038 Archived-At: Thank you folks! You have me on the right track (I think). I believe something like: (if (get-buffer "*Help*")(kill-buffer "*Help*")) will do the trick. Cheers tim * Slawomir Nowaczyk [051007 08:43]: > On Fri, 07 Oct 2005 08:25:52 -0800 > Tim Johnson wrote: > > #> I need a function that will kill a (named) buffer if it exists. > #> 1)Is there one? > > How about (kill-buffer (get-buffer "blabla")) ? > > #> a)If not, I will need a function that checks for the existance > #> of a buffer by name. > > C-h f get-buffer > > #> b)Is there one? > > Yes > > -- > Best wishes, > Slawomir Nowaczyk > ( slawomir.nowaczyk.847@student.lu.se ) > > When the GM grins, it is too late to run. > > > > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs -- Tim Johnson http://www.alaska-internet-solutions.com