help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: way to get the file name except the extension


From: Sebastian Tennant
Subject: Re: way to get the file name except the extension
Date: Thu, 05 Feb 2009 08:21:53 +0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Quoth Kiwon Um <address@hidden>:
> 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





reply via email to

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