The following message is a courtesy copy of an article
that has been posted to gmane.emacs.xemacs.beta as well.
"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
I understood you to say it sometimes returns a non-directory name
(no
trailing slash). Users will expect it to return a slashed name, and I
don't see why they shouldn't get that.
That would arguably be an improvement. What I am saying is that it
isn't broken in the sense that it doesn't do what it is documented to
do.
At a quick glance, #'temp-directory returns in priority order
(!defined(WIN32_NATIVE), depending on existence or success creating
the directory)
1. $TMPDIR <<<<<< May or may not have a trailing slash
2. /tmp/<login name>
3. $HOME/tmp/ <<<<<< notice the trailing slash in that case
4. /tmp
Deprecated or not,
(concat directory file)
is a common idiom.
Unless it is documented anywhere that path names names pointing to
directories must always end with a slash, this is rather unsafe.
--
Marcus
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta