all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se>
Subject: Re: If exists, Kill buffer
Date: Fri, 07 Oct 2005 22:15:03 +0200	[thread overview]
Message-ID: <20051007221218.2346.SLAWOMIR.NOWACZYK.847@student.lu.se> (raw)
In-Reply-To: <20051007165319.GE1784@johnsons-web.com>

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	other threads:[~2005-10-07 20:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-07 16:25 If exists, Kill buffer Tim Johnson
2005-10-07 16:32 ` J. David Boyd
2005-10-07 16:34 ` Lennart Borgman
2005-10-07 16:37 ` Slawomir Nowaczyk
2005-10-07 16:53   ` Tim Johnson
2005-10-07 20:15     ` Slawomir Nowaczyk [this message]
2005-10-07 20:23       ` Edward O'Connor
2005-10-07 22:16         ` Slawomir Nowaczyk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051007221218.2346.SLAWOMIR.NOWACZYK.847@student.lu.se \
    --to=slawomir.nowaczyk.847@student.lu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.