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: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ) Date: Mon, 19 Aug 2002 12:39:16 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200208191839.g7JIdG009383@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> <200208160231.g7G2Vb508088@wijiji.santafe.edu> <200208161717.g7GHHWw31172@rum.cs.yale.edu> <200208170451.g7H4pAN08664@wijiji.santafe.edu> <8011-Sun18Aug2002222517+0300-eliz@is.elta.co.il> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1029782580 21218 127.0.0.1 (19 Aug 2002 18:43:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 19 Aug 2002 18:43:00 +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 17grUQ-0005W0-00 for ; Mon, 19 Aug 2002 20:42:58 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17grvy-00032E-00 for ; Mon, 19 Aug 2002 21:11:26 +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 17grVW-0008An-00; Mon, 19 Aug 2002 14:44:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17grQu-0007Mz-00 for emacs-devel@gnu.org; Mon, 19 Aug 2002 14:39:20 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17grQs-0007MS-00 for emacs-devel@gnu.org; Mon, 19 Aug 2002 14:39:19 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17grQr-0007M0-00; Mon, 19 Aug 2002 14:39:17 -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 g7JIdc529564; Mon, 19 Aug 2002 12:39:39 -0600 (MDT) Original-Received: (from rms@localhost) by wijiji.santafe.edu (8.11.6+Sun/8.9.3) id g7JIdG009383; Mon, 19 Aug 2002 12:39:16 -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: <8011-Sun18Aug2002222517+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:6652 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6652 It's the case of application code doing (concat dir "/" file) is what worries me. That is a different case--if dir is really a directory name, it is simply incorrect to add an explicit slash. You must be thinking of a case where DIR is a directory file name rather than a directory name. 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? I will update the documentation in lispref/files.texi to discuss this issue.