From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Slawomir Nowaczyk Newsgroups: gmane.emacs.help Subject: Re: If exists, Kill buffer Date: Fri, 07 Oct 2005 22:15:03 +0200 Message-ID: <20051007221218.2346.SLAWOMIR.NOWACZYK.847@student.lu.se> References: <20051007183455.2342.SLAWOMIR.NOWACZYK.847@student.lu.se> <20051007165319.GE1784@johnsons-web.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1128716181 32301 80.91.229.2 (7 Oct 2005 20:16:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2005 20:16:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 22:16:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENycn-0003CI-Ty for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 22:15:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENycn-00079S-1B for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 16:15:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ENycb-00079M-FK for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 16:15:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ENycZ-000798-RU for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 16:15:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENycZ-000795-3O for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 16:15:11 -0400 Original-Received: from [130.235.16.11] (helo=himmelsborg.cs.lth.se) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ENycY-0007i6-Pp for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 16:15:11 -0400 Original-Received: from [127.0.0.1] (slawek@dain [130.235.16.76]) by himmelsborg.cs.lth.se (8.12.11/8.12.11/perf-jw-tr) with ESMTP id j97KF8CT012055 for ; Fri, 7 Oct 2005 22:15:08 +0200 (CEST) Original-To: help-gnu-emacs@gnu.org In-Reply-To: <20051007165319.GE1784@johnsons-web.com> X-Esmandil_Citation: done X-Mailer-Plugin: Popup Memopad for Becky!2 Ver.0.02 Rev.2 X-Mailer: Becky! ver. 2.21.04 [en] 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:30048 Archived-At: On Fri, 07 Oct 2005 08:53:19 -0800 Tim Johnson wrote: #> 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. Well, actually just: (kill-buffer (get-buffer "blabla")) works for me (but I use EmacsCVS, it may behave differently in 21.4 or whatever you are using). Anyway, for me get-buffer returns nil if no matching buffer is found, and (kill-buffer nil) seems to be a no-op. -- Best wishes, Slawomir Nowaczyk ( slawomir.nowaczyk.847@student.lu.se ) Living your life is a task so difficult, it has never been attempted before.