From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: Bug?: (file-name-extension "some.html~") gives "html" Date: Thu, 11 May 2006 09:46:15 -0600 Organization: IHS Message-ID: References: <4461A9AF.2010404@student.lu.se> <200605101622.k4AGM3jH021548@jane.dms.auburn.edu> <446242CA.9000004@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1147362497 23556 80.91.229.2 (11 May 2006 15:48:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 May 2006 15:48:17 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 11 17:48:14 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FeDOW-0003N4-8S for ged-emacs-devel@m.gmane.org; Thu, 11 May 2006 17:48:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FeDOT-0002FH-F7 for ged-emacs-devel@m.gmane.org; Thu, 11 May 2006 11:48:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FeDOI-0002Ef-0T for emacs-devel@gnu.org; Thu, 11 May 2006 11:47:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FeDOG-0002DI-J2 for emacs-devel@gnu.org; Thu, 11 May 2006 11:47:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FeDOG-0002D2-AK for emacs-devel@gnu.org; Thu, 11 May 2006 11:47:48 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FeDPn-0005Zn-GY for emacs-devel@gnu.org; Thu, 11 May 2006 11:49:23 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FeDO0-0003Hv-Dk for emacs-devel@gnu.org; Thu, 11 May 2006 17:47:33 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 May 2006 17:47:32 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 May 2006 17:47:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54267 Archived-At: Andreas Schwab wrote: > Kevin Rodgers writes: > >> BTW, why does file-name-extension accept an optional PERIOD argument >> to include the extension delimiter in the result, but >> file-name-sans-extension does not? > > I don't think there is a need to cut off the extension while keeping the > period, whereas keeping the period together with the extension is quite > common. I suppose that the utility of keeping the period with the extension is to allow it to be appended to some other extension-less file name. And likewise the utility of keeping the period with the file name would be to allow some extension to be appended to it. >> Symmetry baby, > > This is asymmetric in nature. I guess it depends on your perspective. I see the file name base and extension as symmetric components on either side of the period. -- Kevin