From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32871 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.gnus.general Subject: Re: (concat "/dir/name/" "foo") --> (expand-file-name "foo" "/dir/name/") Date: Mon, 16 Oct 2000 19:12:18 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: <200010161812.TAA25555@djlvig.dl.ac.uk> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169080 22190 80.91.224.250 (21 Oct 2002 02:58:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:58:00 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 626DBD051E for ; Mon, 16 Oct 2000 14:14:07 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id NAB03620; Mon, 16 Oct 2000 13:13:40 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 16 Oct 2000 13:12:32 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id NAA09918 for ; Mon, 16 Oct 2000 13:12:21 -0500 (CDT) Original-Received: from djlvig.dl.ac.uk (djlvig.dl.ac.uk [148.79.112.146]) by mailhost.sclp.com (Postfix) with ESMTP id EF399D051E for ; Mon, 16 Oct 2000 14:12:43 -0400 (EDT) Original-Received: (from fx@localhost) by djlvig.dl.ac.uk (8.8.7/8.8.5) id TAA25555; Mon, 16 Oct 2000 19:12:18 +0100 X-Authentication-Warning: djlvig.dl.ac.uk: fx set sender to d.love@dl.ac.uk using -f X-Face: "_!nmR@11ZNuumt0oqG"Y3Hfy|;FGz)`"ul[G?ah6k-oNyDW?3/Nq3Qab$kUnUQ_d4};kPl R=}-Vqfo|S5mThi-kaBR=>%g5a3-OvnEhdHu{^APIaP:b}0m!$bDC>SX zz'r)e?`at?tpD*+~b+pf Original-To: prj@po.cwru.edu (Paul Jarc) In-Reply-To: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.0.90 Original-Lines: 23 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32871 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32871 >>>>> "PJ" == Paul Jarc writes: PJ> It depends on the contents of "file-name". If it might contain PJ> something that really needs to be normalized, then it should be PJ> handed to expand-file-name. If it should be interpreted PJ> literally, then expand-file-name might do something unintended. PJ> Consider, e.g., "foo/../bar", where foo is a symlink. I don't understand this. One of the points about expand-file-name is that it gets to do magic depending on the file name. I have changed such uses of `concat' where I've found it in the sources and I'd need some convincing that that's wrong, as well as a contribution to the Lisp manual. PJ> I think file-name-as-directory and directory-file-name are PJ> idempotent on all platforms, although they aren't documented as PJ> such, AFAICT. I'm not sure why that's relevant, but even if it's generally true in the absence of handlers -- I don't know -- I don't think you can say what a random handler might do, e.g. for remote files on an arbitrary system.