From: Sebastian Tennant <sebyte@smolny.plus.com>
To: help-gnu-emacs@gnu.org
Subject: Re: way to get the file name except the extension
Date: Thu, 05 Feb 2009 08:21:53 +0000 [thread overview]
Message-ID: <ocxhcmzi.fsf@vps203.linuxvps.org> (raw)
In-Reply-To: 1858f41f-2d50-47a5-8084-80d78a89e89b@e1g2000pra.googlegroups.com
Quoth Kiwon Um <um.kiwon@gmail.com>:
> Hello. I'm a newbie to elisp.
Welcome. You will never look back :)
> I'm wondering a built-in function or lisp codes to get the file name
> except the extension from (buffer-name)
Of course.
(file-name-sans-extension (buffer-name))
A quick way to discover commands is to type:
C-h f <first-few-letters> TAB
(C-h = Ctrl h)
so, to find out about file-* commands type:
C-h f file TAB
and keep pressing TAB to cycle through the numerous results in the
pop-up window.
Add some more letters and type TAB again to narrow your search and when
you've found a command you're interested in type RET.
There's also 'M-x apropos'.
(M-x = Alt-x or ESC-x)
Type 'C-h f apropos RET' to learn about the 'apropos' command.
Sebastian
--
Emacs' AlsaPlayer - Music Without Jolts
Lightweight, full-featured and mindful of your idyllic happiness.
http://home.gna.org/eap
prev parent reply other threads:[~2009-02-05 8:21 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 ` way to get the file name except the extension Johan Andersson
2009-02-05 8:21 ` Sebastian Tennant [this message]
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=ocxhcmzi.fsf@vps203.linuxvps.org \
--to=sebyte@smolny.plus.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).