unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Andy Stewart <lazycat.manatee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: check if these is a buffer to a file
Date: Mon, 16 Feb 2009 11:50:52 +0800	[thread overview]
Message-ID: <87fxif59b7.fsf@debian.domain> (raw)
In-Reply-To: 6f0927c0-d5f3-42ab-b233-662207f2ed5e@x29g2000prf.googlegroups.com

Hi,

Kiwon Um <um.kiwon@gmail.com> writes:

> Hello. I'm now writing some lisp codes.
>
> I want to write some codes that kill a buffer if it is already opened
> (visited).
> Is there any predefined function to check the existence of a buffer?
Try to use function `get-buffer'.
Below is document of function `get-buffer':

,----
| (get-buffer BUFFER-OR-NAME)
| 
| Return the buffer named BUFFER-OR-NAME.
| BUFFER-OR-NAME must be either a string or a buffer.  If BUFFER-OR-NAME
| is a string and there is no buffer with that name, return nil.  If
| BUFFER-OR-NAME is a buffer, return it as given.
`----

  -- Andy







  reply	other threads:[~2009-02-16  3:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-16  3:04 check if these is a buffer to a file Kiwon Um
2009-02-16  3:50 ` Andy Stewart [this message]
     [not found] ` <mailman.832.1234756520.31690.help-gnu-emacs@gnu.org>
2009-02-16  4:07   ` Kiwon Um
2009-02-16  5:26   ` Jason Rumney
2009-02-16  8:03 ` Tassilo Horn

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87fxif59b7.fsf@debian.domain \
    --to=lazycat.manatee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).