[EMAIL PROTECTED] (Ping Liang) writes:

>     (let ((directory-sep-char ?/)) ;; Ping's fix
>       (if (eq system-type 'windows-nt) ;; Ping's fix
>           (setq directory-sep-char ?\\)) ;; Ping's fix
>       (expand-file-name file dir))

I don't understand why this is necessary.  If XEmacs only accepts \ as
directory separator in expand-file-name, then your previous patch
(which set it back to its previous value after the code that required
it to be /) should work.

The above code looks like it will do the wrong thing on
the Cygwin version of XEmacs, and although the NT port of GNU Emacs
will work with the above code, directory-sep-char comes with the
following warning:

WARNING: This variable is deprecated and will be removed in the near
future.  DO NOT USE IT.


-- 
Jason Rumney

Reply via email to