Emacs: apply "expand-filename" on "default-directory".
"default-directory" may has home directory("~") relative path in some
runtime environment(or emacs revision ?), so expand-filename is
required.
--- a/contrib/mercurial.el Sat Jul 22 23:30:19 2006 +0900
+++ b/contrib/mercurial.el Sat Jul 22 23:35:16 2006 +0900
@@ -380,7 +380,9 @@
(save-excursion
(while hg-prev-buffer
(set-buffer hg-prev-buffer))
- (let ((path (or default (buffer-file-name) default-directory)))
+ (let ((path (or default
+ (buffer-file-name)
+ (expand-file-name default-directory))))
(if (or (not path) current-prefix-arg)
(expand-file-name
(eval (list* 'read-file-name