emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' b


From: Richard Stallman
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)

    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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]