summaryrefslogtreecommitdiff
path: root/lisp/w32-fns.el
diff options
context:
space:
mode:
authorGeoff Voelker <voelker@cs.washington.edu>1998-10-30 03:56:46 +0000
committerGeoff Voelker <voelker@cs.washington.edu>1998-10-30 03:56:46 +0000
commitb36e8bf443f2e542dd7234ebf9a39b5db79f51c2 (patch)
tree7783d3296bf86299197dbd23fb01f89c569fef62 /lisp/w32-fns.el
parent69b1e69899368f0e19137f9993cc267ceb5dfe1c (diff)
downloademacs-b36e8bf443f2e542dd7234ebf9a39b5db79f51c2.tar.gz
Remove a dangling reference to a directory on the
build machine.
Diffstat (limited to 'lisp/w32-fns.el')
-rw-r--r--lisp/w32-fns.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el
index e3c1fbee14e..a35e38fb50d 100644
--- a/lisp/w32-fns.el
+++ b/lisp/w32-fns.el
@@ -193,6 +193,21 @@ You should set this to t when using a non-system shell.\n\n"))))
(add-hook 'before-init-hook 'w32-init-info)
+;;; The variable source-directory is used to initialize Info-directory-list.
+;;; However, the common case is that Emacs is being used from a binary
+;;; distribution, and the value of source-directory is meaningless in that
+;;; case. Even worse, source-directory can refer to a directory on a drive
+;;; on the build machine that happens to be a removable drive on the user's
+;;; machine. When this happens, Emacs tries to access the removable drive
+;;; and produces the abort/retry/ignore dialog. Since we do not use
+;;; source-directory, set it to something that is a reasonable approximation
+;;; on the user's machine.
+
+(add-hook 'before-init-hook
+ '(lambda ()
+ (setq source-directory (file-name-as-directory
+ (expand-file-name ".." exec-directory)))))
+
;; Avoid creating auto-save file names containing invalid characters.
(fset 'original-make-auto-save-file-name
(symbol-function 'make-auto-save-file-name))