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: Tim Johnson
Subject: Re: If exists, Kill buffer
Date: Fri, 7 Oct 2005 08:53:19 -0800
User-agent: Mutt/1.4.2.1i

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 <slawomir.nowaczyk.847@student.lu.se> [051007 08:43]:
> On Fri, 07 Oct 2005 08:25:52 -0800
> Tim Johnson <tim@johnsons-web.com> 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 <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com




reply via email to

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