|Thu 1998-11-05 Jonathan Harris <jhar(a)tardis.ed.ac.uk> list.xemacs
| Heiko Muenkel wrote:
| >
| > Is there a system independend way to concatenate directories in the
| > XEmacs (eg: (concat-dirs "/usr/local" "man/man1") =>
| > "/usr/local/man/man1")?
| >
| > I'm asking, because I think, that without such a function code like
| > the following
| > (concat dir1 "/" dir2)
| > will break on systems like MSDOS or NT
|
| I'm not aware of such a function. However
| (concat (file-name-as-directory dir1) dir2)
| will do the right thing.
I've wanted to see a simple function like that for a long time in core Emacs.
| > - or is there an automatic
| > conversion of pathes from "/usr/local/man/man1" to
| > "\usr\local\man\man1" on DOS systems?
|
| MS windows systems will accept '/'s in paths, but paths containing '/'
| will look weird to the user. expand-file-name is the only function that
| converts '/'s to '\'s.
Is it that simple? If you call outside process, doesn't it require backslashes?
So, a path conversion function according to a system type would be good.
jari