diff options
| -rw-r--r-- | lisp/dos-fns.el | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/lisp/dos-fns.el b/lisp/dos-fns.el index d58beec3897..edcebb1306a 100644 --- a/lisp/dos-fns.el +++ b/lisp/dos-fns.el | |||
| @@ -200,12 +200,21 @@ shell requires it (see `w32-shell-dos-semantics')." | |||
| 200 | 200 | ||
| 201 | ;; File names defined in preloaded packages can be incorrect or | 201 | ;; File names defined in preloaded packages can be incorrect or |
| 202 | ;; invalid if long file names were available during dumping, but not | 202 | ;; invalid if long file names were available during dumping, but not |
| 203 | ;; at runtime, and the default file name begins with a period. Their | 203 | ;; at runtime, or vice versa, and if the default file name begins with |
| 204 | ;; defcustom's need to be reevaluated at startup. To update the list | 204 | ;; a period. Their defcustom's need to be reevaluated at startup. To |
| 205 | ;; of defcustom's below, run the command "M-x apropos-value RET ~/\. RET". | 205 | ;; see if the list of defcustom's below is up to date, run the command |
| 206 | ;; "M-x apropos-value RET ~/\. RET". | ||
| 206 | (defun dos-reevaluate-defcustoms () | 207 | (defun dos-reevaluate-defcustoms () |
| 207 | (custom-reevaluate-setting 'abbrev-file-name) | 208 | ;; This was computed in paths.el, but that was at dump time. |
| 208 | (custom-reevaluate-setting 'calc-settings-file) | 209 | (setq abbrev-file-name |
| 210 | (if (msdos-long-file-names) | ||
| 211 | "~/.abbrev_defs" | ||
| 212 | "~/_abbrev.defs")) | ||
| 213 | ;; This was computed in loaddefs.el, but that was at dump time. | ||
| 214 | (setq calc-settings-file | ||
| 215 | (if (msdos-long-file-names) | ||
| 216 | "~/.calc.el" | ||
| 217 | "~/_calc.el")) | ||
| 209 | (custom-reevaluate-setting 'trash-directory)) | 218 | (custom-reevaluate-setting 'trash-directory)) |
| 210 | 219 | ||
| 211 | (add-hook 'before-init-hook 'dos-reevaluate-defcustoms) | 220 | (add-hook 'before-init-hook 'dos-reevaluate-defcustoms) |