From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Don't concat directories to file names Date: Mon, 25 Jun 2007 12:27:38 -0400 Message-ID: References: <87k5ty66nq.fsf@uwakimon.sk.tsukuba.ac.jp> <86wsxxvief.fsf@ketchup.de.uu.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182788897 29193 80.91.229.12 (25 Jun 2007 16:28:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2007 16:28:17 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 25 18:28:16 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I2rQF-0004tk-73 for ged-emacs-devel@m.gmane.org; Mon, 25 Jun 2007 18:28:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2rQE-0002KN-Kv for ged-emacs-devel@m.gmane.org; Mon, 25 Jun 2007 12:28:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2rPj-00029J-CF for emacs-devel@gnu.org; Mon, 25 Jun 2007 12:27:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2rPh-00028f-RR for emacs-devel@gnu.org; Mon, 25 Jun 2007 12:27:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2rPh-00028a-Gq for emacs-devel@gnu.org; Mon, 25 Jun 2007 12:27:41 -0400 Original-Received: from tomts36.bellnexxia.net ([209.226.175.93] helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I2rPg-0000Gv-3M; Mon, 25 Jun 2007 12:27:40 -0400 Original-Received: from ceviche.home ([74.12.206.238]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070625162738.MOPM6941.tomts36-srv.bellnexxia.net@ceviche.home>; Mon, 25 Jun 2007 12:27:38 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id B9BD2B4B9B; Mon, 25 Jun 2007 12:27:38 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Mon\, 25 Jun 2007 16\:51\:02 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:73835 Archived-At: > I'm not going to enter an OS flamewar, but in my younger days I hacked > VAX/VMS, where a filename and a directory were clearly distinct :) Emacs follows this idea as well. I.e. a directory is a file, and it has two names: one to treat it as a filem and another to treat it as a directory. So /usr is a directory whose file name is "/usr" and directory name is "/usr/", see file-name-as-directory and directory-file-name. Unider Unix, the trailing slash often makes no difference, so people tend to forget about the distinction, but occasionally the difference is significant. Stefan