From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan Andersson Newsgroups: gmane.emacs.help Subject: Re: way to get the file name except the extension Date: Thu, 5 Feb 2009 08:27:17 +0100 Message-ID: <929ccd880902042327l7a2ce147q4f45510606081703@mail.gmail.com> References: <1858f41f-2d50-47a5-8084-80d78a89e89b@e1g2000pra.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0ce0d1948d27dd046226d57b X-Trace: ger.gmane.org 1233818952 6617 80.91.229.12 (5 Feb 2009 07:29:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2009 07:29:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Kiwon Um Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 05 08:30:26 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LUygq-00010e-4r for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Feb 2009 08:30:24 +0100 Original-Received: from localhost ([127.0.0.1]:56391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUyfX-0000MY-2x for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Feb 2009 02:29:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUydv-0008Le-3f for help-gnu-emacs@gnu.org; Thu, 05 Feb 2009 02:27:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUydt-0008Ky-D8 for help-gnu-emacs@gnu.org; Thu, 05 Feb 2009 02:27:22 -0500 Original-Received: from [199.232.76.173] (port=46428 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUydt-0008Kr-4n for help-gnu-emacs@gnu.org; Thu, 05 Feb 2009 02:27:21 -0500 Original-Received: from mail-ew0-f20.google.com ([209.85.219.20]:42251) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUyds-0000Q3-Pk for help-gnu-emacs@gnu.org; Thu, 05 Feb 2009 02:27:20 -0500 Original-Received: by ewy13 with SMTP id 13so104701ewy.18 for ; Wed, 04 Feb 2009 23:27:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=9mDQRpQAFc8G7fWys89RnpWRdn8zbASIvDNH60pJfAQ=; b=OjWekJ2mqXn2I/gOgxU0Mo+obGFpayET/+qeQ0kuyDh3hYaKcajFWtuVGTnSHfH+K7 vCsEuU/LleqBW71GL+0Q8rqL32D2PT3eHF7h5uHcLq6phW1nOF3kYy4Lupvtj5/8QPmM wrs4f9pPGfukpaEcoCXB6oSxkZoOsvnLJ9Nxc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FbnipUiJGRKyoKSBYD2yHdp49hRI7qLcmAbbBmdUZlsYAgtIf6pZogC4R/VwlEQjhR LQ+hi2D7oujPSasAtkv6C0D0YKdrUWt6TEQtt4Aeg9KW9jmHU6e3HtzbHcAznx0QQA7R M0F2qHKA8DoKDvGZHeOgtlqB1+Q5KMXFMwURw= Original-Received: by 10.210.43.11 with SMTP id q11mr128737ebq.177.1233818837919; Wed, 04 Feb 2009 23:27:17 -0800 (PST) In-Reply-To: <1858f41f-2d50-47a5-8084-80d78a89e89b@e1g2000pra.googlegroups.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61914 Archived-At: --000e0ce0d1948d27dd046226d57b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit (file-name-sans-extension (buffer-name)) On Thu, Feb 5, 2009 at 6:09 AM, Kiwon Um 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? :) > --000e0ce0d1948d27dd046226d57b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable (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? :)

--000e0ce0d1948d27dd046226d57b--