The following example shows, which problems will propably hit the
XEmacs in the future, when MS-DOS pertubed people are going to write
elisp programs ...
(expand-file-name "man\man1" "\usr\local")
=> "/home/muenkel/data/docs/mail/Inbox/usrlocal/manman1"
If you hard-code paths, then, yes, this can be a problem.
[ However, your example is slightly wrong. You should have used:
(expand-file-name "man\\man1" "\\usr\\local")
=> "c:\\usr\\local\\man\\man1"
Note that, if backslashes are used in elisp strings, you need to quote
the backslashes, just as if you're writing C code. Further note that
this is not a problem with the read-file-name stuff, as the quoting is
automatically done for you. ]
If you write paths using forward slashes, then there isn't a
problem. MSDOS is just as happy with forward slashes as it is with
backward slashes. We just need to tell elisp programmers to always use
forward slashes, if they must type a directory separator. It's not that
big a deal really, aside from programmer education.
[ Pet peeve alert: I understand that we're stuck with this "/" vs
"\"
bogosity in XEmacs, but this was a very, very bad decision. XEmacs
should have been made to always use "/". Yes, this would be
different, but it would not have broken lots of code (e.g., efs, w3,
etc.). ]
--
Darryl Okahata
darrylo(a)sr.hp.com
DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Hewlett-Packard, or of the
little green men that have been following him all day.