[Top][All Lists]
[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.
- Re: Strange `file-name-sans-extension' behavior, (continued)
- Re: Strange `file-name-sans-extension' behavior, Andreas Schwab, 2002/08/12
- Re: Strange `file-name-sans-extension' behavior, Richard Stallman, 2002/08/13
- Re: Strange `file-name-sans-extension' behavior, Eli Zaretskii, 2002/08/14
- Re: Strange `file-name-sans-extension' behavior, Richard Stallman, 2002/08/14
- Re: Strange `file-name-sans-extension' behavior, Eli Zaretskii, 2002/08/15
- Re: Strange `file-name-sans-extension' behavior, Richard Stallman, 2002/08/15
- `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ), Stefan Monnier, 2002/08/16
- Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ), Richard Stallman, 2002/08/17
- Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ), Eli Zaretskii, 2002/08/18
- Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ), Stefan Monnier, 2002/08/19
- Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ),
Richard Stallman <=
- Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ), Eli Zaretskii, 2002/08/20
- Re: Strange `file-name-sans-extension' behavior, Richard Stallman, 2002/08/12