Hi all
With psvn dated:
(defconst svn-psvn-revision "2012-03-26, 21:23:49" "The revision date of
psvn.")
I am getting an error when creating temporary files. The reason is
this piece of code.
(defvar svn-status-temp-dir
(expand-file-name
(or
(when (boundp 'temporary-file-directory) temporary-file-directory) ;emacs
;; XEmacs 21.4.17 can return "/tmp/kalle" from (temp-directory).
;; `file-name-as-directory' adds a slash so we can append a file name.
(when (fboundp 'temp-directory) (file-name-as-directory (temp-directory)))
"/tmp/")) "The directory that is used to store temporary files for
psvn.")
Psvn somehow expects the Emacs variable value to always end with a
slash, while extra steps are taken to ensure that the value returned
by XEmacs also ends with a slash. Trouble is that vc-xemacs defines a
compatibility function #'temporary-file-directory, that simply returns
the value of #'temp-directory (which doesn't end with a slash on this
system anyway):
(unless (boundp 'temporary-file-directory)
(defvar temporary-file-directory (temp-directory)))
Since the Emacs documentation doesn't say anything about
temporary-file-directory always ending with a slash, it'd make sense
to change psvn if only for reasons of robustness. However, if there is
a risk that other packages depend on temporary-file-directory we may
want to consider changing the compatibility wrapper in vc-xemacs.
Opinions?
Thanks
Marcus
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta