unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Johan Andersson <johan.rejeep@gmail.com>
To: Kiwon Um <um.kiwon@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: way to get the file name except the extension
Date: Thu, 5 Feb 2009 08:27:17 +0100	[thread overview]
Message-ID: <929ccd880902042327l7a2ce147q4f45510606081703@mail.gmail.com> (raw)
In-Reply-To: <1858f41f-2d50-47a5-8084-80d78a89e89b@e1g2000pra.googlegroups.com>

[-- Attachment #1: Type: text/plain, Size: 308 bytes --]

(file-name-sans-extension (buffer-name))

On Thu, Feb 5, 2009 at 6:09 AM, Kiwon Um <um.kiwon@gmail.com> wrote:

> Hello. I'm a newbie to elisp.
>
> I'm wondering a built-in function or lisp codes to get the file name
> except the extension from (buffer-name):
> TestCode.cpp -> TestCode
>
> Any advise? :)
>

[-- Attachment #2: Type: text/html, Size: 598 bytes --]

  parent reply	other threads:[~2009-02-05  7:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-05  5:09 way to get the file name except the extension Kiwon Um
2009-02-05  6:03 ` Xah Lee
2009-02-05  6:45   ` Kiwon Um
2009-02-05  9:11     ` Time-related functions [Was: way to get the file name except the extension] Juanma Bellón
2009-02-05  7:27 ` Johan Andersson [this message]
2009-02-05  8:21 ` way to get the file name except the extension Sebastian Tennant

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=929ccd880902042327l7a2ce147q4f45510606081703@mail.gmail.com \
    --to=johan.rejeep@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=um.kiwon@gmail.com \
    /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).