From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ) Date: Tue, 20 Aug 2002 14:33:20 +0300 Sender: emacs-devel-admin@gnu.org Message-ID: <7263-Tue20Aug2002143319+0300-eliz@is.elta.co.il> 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> <200208160231.g7G2Vb508088@wijiji.santafe.edu> <200208161717.g7GHHWw31172@rum.cs.yale.edu> <200208170451.g7H4pAN08664@wijiji.santafe.edu> <8011-Sun18Aug2002222517+0300-eliz@is.elta.co.il> <200208191839.g7JIdG009383@wijiji.santafe.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1029843098 15010 127.0.0.1 (20 Aug 2002 11:31:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 20 Aug 2002 11:31:38 +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 17h7EW-0003tt-00 for ; Tue, 20 Aug 2002 13:31:36 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17h7gP-0001El-00 for ; Tue, 20 Aug 2002 14:00:25 +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 17h7FX-0001jW-00; Tue, 20 Aug 2002 07:32:39 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17h7Dk-0001et-00 for emacs-devel@gnu.org; Tue, 20 Aug 2002 07:30:48 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17h7Dd-0001eI-00 for emacs-devel@gnu.org; Tue, 20 Aug 2002 07:30:48 -0400 Original-Received: from diana.inter.net.il ([192.114.186.19]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17h7Dd-0001eC-00; Tue, 20 Aug 2002 07:30:41 -0400 Original-Received: from Zaretsky ([80.230.2.40]) by diana.inter.net.il (Mirapoint Messaging Server MOS 3.1.0.58-GA) with ESMTP id AIX34909; Tue, 20 Aug 2002 14:30:37 +0300 (IDT) Original-To: rms@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-Reply-To: <200208191839.g7JIdG009383@wijiji.santafe.edu> (message from Richard Stallman on Mon, 19 Aug 2002 12:39:16 -0600 (MDT)) 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:6673 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6673 > Date: Mon, 19 Aug 2002 12:39:16 -0600 (MDT) > From: Richard Stallman > > The right way to handle that situation is > > (concat (file-name-as-directory dirfile) file) > > Do you see any case where that would give incorrect result > on MS systems? Looks like file-name-as-directory needs some work on MS systems: M-: (file-name-as-directory "d:") RET => "d:/" This is wrong (I verified that the cwd on drive D: is not the root directory). I'll try to see how to fix that.