diff options
author | Eli Zaretskii <eliz@gnu.org> | 2008-10-19 11:20:00 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2008-10-19 11:20:00 +0000 |
commit | e6f174da18b24ad158102bf49aa6eb338afd3639 (patch) | |
tree | bcf0fb0b14b3a54cea05d939bc4df7f6c4ca5c5f /lisp/dos-fns.el | |
parent | 34767325fa6c2e2bcd5e0c8523160abc6a5c4bc2 (diff) | |
download | emacs-e6f174da18b24ad158102bf49aa6eb338afd3639.tar.gz |
(dos-reevaluate-defcustoms): Fix last change.
Diffstat (limited to 'lisp/dos-fns.el')
-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')." ;; File names defined in preloaded packages can be incorrect or ;; invalid if long file names were available during dumping, but not -;; at runtime, and the default file name begins with a period. Their -;; defcustom's need to be reevaluated at startup. To update the list -;; of defcustom's below, run the command "M-x apropos-value RET ~/\. RET". +;; at runtime, or vice versa, and if the default file name begins with +;; a period. Their defcustom's need to be reevaluated at startup. To +;; see if the list of defcustom's below is up to date, run the command +;; "M-x apropos-value RET ~/\. RET". (defun dos-reevaluate-defcustoms () - (custom-reevaluate-setting 'abbrev-file-name) - (custom-reevaluate-setting 'calc-settings-file) + ;; This was computed in paths.el, but that was at dump time. + (setq abbrev-file-name + (if (msdos-long-file-names) + "~/.abbrev_defs" + "~/_abbrev.defs")) + ;; This was computed in loaddefs.el, but that was at dump time. + (setq calc-settings-file + (if (msdos-long-file-names) + "~/.calc.el" + "~/_calc.el")) (custom-reevaluate-setting 'trash-directory)) (add-hook 'before-init-hook 'dos-reevaluate-defcustoms) |