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: Sun, 18 Aug 2002 22:25:17 +0300 Sender: emacs-devel-admin@gnu.org Message-ID: <8011-Sun18Aug2002222517+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> Reply-To: Eli Zaretskii NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1029698603 12743 127.0.0.1 (18 Aug 2002 19:23:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 18 Aug 2002 19:23:23 +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 17gVdx-0003JO-00 for ; Sun, 18 Aug 2002 21:23:21 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17gW52-0004LE-00 for ; Sun, 18 Aug 2002 21:51:20 +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 17gVev-00013T-00; Sun, 18 Aug 2002 15:24:21 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17gVdo-00010o-00 for emacs-devel@gnu.org; Sun, 18 Aug 2002 15:23:12 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17gVdh-00010A-00 for emacs-devel@gnu.org; Sun, 18 Aug 2002 15:23:12 -0400 Original-Received: from balder.inter.net.il ([192.114.186.15]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17gVdh-0000zt-00; Sun, 18 Aug 2002 15:23:05 -0400 Original-Received: from Zaretsky ([80.230.2.40]) by balder.inter.net.il (Mirapoint Messaging Server MOS 3.1.0.58-GA) with ESMTP id BRE46037; Sun, 18 Aug 2002 22:22:59 +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: <200208170451.g7H4pAN08664@wijiji.santafe.edu> (message from Richard Stallman on Fri, 16 Aug 2002 22:51:10 -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:6624 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6624 > Date: Fri, 16 Aug 2002 22:51:10 -0600 (MDT) > From: Richard Stallman > > As far as I can see, if you don't insist on an absolute file name, > it is correct to use concat. As far as I can see, Eli's example > is only an issue if you want an absolute file name: > > > It means that to produce a full file name from a relative directory > > "c:" and a relative file name "bar", a function should yield > > "c:./bar". > > Eli, is c:bar an invalid file name on MSDOS? "c:bar" is a valid file name on DOS and Windows file systems. It means `bar' in the default directory of the C: drive. In other words, it's the same as "c:./bar". > So it seems that in the case where you are happy to have > a non-absolute file name as the result, there is no problem. There should be no problem if none of the functions involved convert "c:" to "c:/". I don't recall if that's so and don't have time to check, but I wouldn't be surprised if Emacs primitives already take care of this. It's the case of application code doing (concat dir "/" file) is what worries me.