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: Slawomir Nowaczyk
Subject: Re: If exists, Kill buffer
Date: Fri, 07 Oct 2005 22:15:03 +0200

On Fri, 07 Oct 2005 08:53:19 -0800
Tim Johnson <tim@johnsons-web.com> 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.





reply via email to

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