From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: Don't concat directories to file names Date: Mon, 25 Jun 2007 20:23:22 +0200 Message-ID: References: <86wsxxvief.fsf@ketchup.de.uu.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1182795814 26054 80.91.229.12 (25 Jun 2007 18:23:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2007 18:23:34 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 25 20:23:32 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 1I2tDk-00064L-Rw for ged-emacs-devel@m.gmane.org; Mon, 25 Jun 2007 20:23:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2tDk-0006aI-Ce for ged-emacs-devel@m.gmane.org; Mon, 25 Jun 2007 14:23:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2tDg-0006ZX-R4 for emacs-devel@gnu.org; Mon, 25 Jun 2007 14:23:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2tDf-0006Xw-3f for emacs-devel@gnu.org; Mon, 25 Jun 2007 14:23:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2tDf-0006Xp-1M for emacs-devel@gnu.org; Mon, 25 Jun 2007 14:23:23 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.236]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I2tDe-0000UU-NC for emacs-devel@gnu.org; Mon, 25 Jun 2007 14:23:22 -0400 Original-Received: by wx-out-0506.google.com with SMTP id h26so1582720wxd for ; Mon, 25 Jun 2007 11:23:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IUlD3l/LReKvunRgvWTJGeCtRrxBc3uAUeNmFqg36YNPA+fD3ThueiCiIQ5sh1vP2b58kOYRmykuDXLZy7lNFiVqUhPwT5xrAEEa8nrk0IIjYurk/ptwkh8O9NUc87qjGQxAcpyet5FqPvuDgPiPVN9P5u64XChpujdXXGq+gRs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hM985B7Cx6ykpwCcBXbP8G5RkaYMfTICzbTDdgqEORe3iH9wmN4wVRMlZDjntn3zp7OyemcUJ6vQ+JDCBK7/mZPrRi/rtEn1u7fSTzpmb8StO/GExvM1vYbp/2U7FWMP65Xg+KN2xjBLG5bSxCyhKBkJsxemSaynHBGy8oFmeA4= Original-Received: by 10.90.93.6 with SMTP id q6mr4586664agb.1182795802132; Mon, 25 Jun 2007 11:23:22 -0700 (PDT) Original-Received: by 10.90.87.8 with HTTP; Mon, 25 Jun 2007 11:23:22 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) 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:73843 Archived-At: On 6/25/07, Stefan Monnier wrote: > 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. I know, I'm even using `directory-file-name' in The Function Without A Name. But Emacs users and developers apparently don't, if they don't balk at the idea of a function *-file returning the path (cough, the filename, I mean) of a directory. Juanma