From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Strange `file-name-sans-extension' behavior Date: Thu, 15 Aug 2002 20:31:37 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200208160231.g7G2Vb508088@wijiji.santafe.edu> References: <200207271853.g6RIrf310840@aztec.santafe.edu> <200208090738.g797clg11797@rum.cs.yale.edu> <200208101716.g7AHGqc05959@wijiji.santafe.edu> <200208121558.g7CFw0K29043@rum.cs.yale.edu> <8011-Mon12Aug2002202814+0300-eliz@is.elta.co.il> <200208132247.g7DMl0607244@wijiji.santafe.edu> <2593-Wed14Aug2002140316+0300-eliz@is.elta.co.il> <200208142314.g7ENEMX07736@wijiji.santafe.edu> <2110-Thu15Aug2002195139+0300-eliz@is.elta.co.il> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1029465140 6528 127.0.0.1 (16 Aug 2002 02:32:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 16 Aug 2002 02:32:20 +0000 (UTC) Cc: Jens.Schmidt27@epost.de, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17fWuR-0001hB-00 for ; Fri, 16 Aug 2002 04:32:19 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17fXKC-00063Z-00 for ; Fri, 16 Aug 2002 04:58:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17fWvO-0003CY-00; Thu, 15 Aug 2002 22:33:18 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17fWuL-0002zd-00 for emacs-devel@gnu.org; Thu, 15 Aug 2002 22:32:13 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17fWto-0002rb-00 for emacs-devel@gnu.org; Thu, 15 Aug 2002 22:32:11 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17fWto-0002rV-00; Thu, 15 Aug 2002 22:31:40 -0400 Original-Received: from wijiji.santafe.edu (wijiji [192.12.12.5]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g7G2Vw510411; Thu, 15 Aug 2002 20:31:58 -0600 (MDT) Original-Received: (from rms@localhost) by wijiji.santafe.edu (8.11.6+Sun/8.9.3) id g7G2Vb508088; Thu, 15 Aug 2002 20:31:37 -0600 (MDT) X-Authentication-Warning: wijiji.santafe.edu: rms set sender to rms@wijiji using -f Original-To: eliz@is.elta.co.il In-Reply-To: <2110-Thu15Aug2002195139+0300-eliz@is.elta.co.il> Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6575 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6575 > The directory it uses is the one that was in the argument file name. > If it was valid there, it should be equally valid in the result. > If it is not valid in the result, I guess it was not valid in > the argument. The problem is the slash you append to the directory if it doesn't end in a slash. I don't see any code in file-name-sans-extension to append a slash to the directory name. It gets the directory name with file-name-directory and uses it without further change. Where is the slash appended?