diff options
| author | Geoff Voelker | 1998-10-30 03:56:46 +0000 |
|---|---|---|
| committer | Geoff Voelker | 1998-10-30 03:56:46 +0000 |
| commit | 8929f478f0b7a315e2fc73cce06286737b2a5790 (patch) | |
| tree | 315a2178e4466ca93bf795afa00253c00a738df9 | |
| parent | 64aefd1ae3f24a01c43086614e44c9aceb3eced2 (diff) | |
| download | emacs-8929f478f0b7a315e2fc73cce06286737b2a5790.tar.gz emacs-8929f478f0b7a315e2fc73cce06286737b2a5790.zip | |
Remove a dangling reference to a directory on the
build machine.
| -rw-r--r-- | lisp/w32-fns.el | 15 |
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")))) | |||
| 193 | 193 | ||
| 194 | (add-hook 'before-init-hook 'w32-init-info) | 194 | (add-hook 'before-init-hook 'w32-init-info) |
| 195 | 195 | ||
| 196 | ;;; The variable source-directory is used to initialize Info-directory-list. | ||
| 197 | ;;; However, the common case is that Emacs is being used from a binary | ||
| 198 | ;;; distribution, and the value of source-directory is meaningless in that | ||
| 199 | ;;; case. Even worse, source-directory can refer to a directory on a drive | ||
| 200 | ;;; on the build machine that happens to be a removable drive on the user's | ||
| 201 | ;;; machine. When this happens, Emacs tries to access the removable drive | ||
| 202 | ;;; and produces the abort/retry/ignore dialog. Since we do not use | ||
| 203 | ;;; source-directory, set it to something that is a reasonable approximation | ||
| 204 | ;;; on the user's machine. | ||
| 205 | |||
| 206 | (add-hook 'before-init-hook | ||
| 207 | '(lambda () | ||
| 208 | (setq source-directory (file-name-as-directory | ||
| 209 | (expand-file-name ".." exec-directory))))) | ||
| 210 | |||
| 196 | ;; Avoid creating auto-save file names containing invalid characters. | 211 | ;; Avoid creating auto-save file names containing invalid characters. |
| 197 | (fset 'original-make-auto-save-file-name | 212 | (fset 'original-make-auto-save-file-name |
| 198 | (symbol-function 'make-auto-save-file-name)) | 213 | (symbol-function 'make-auto-save-file-name)) |