Mercurial > emacs
comparison lisp/abbrev.el @ 104961:0ea87b098bb0
* custom.el (custom-delayed-init-variables): New var.
(custom-initialize-delay): New function.
* startup.el (command-line): "Re"evaluate all vars in
custom-delayed-init-variables. Don't reevaluate abbrev-file-name
explicitly any more.
* abbrev.el (abbrev-file-name): Use custom-initialize-delay
to avoid creating a ~/.emacs.d at build-time (bug#4347).
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 11 Sep 2009 21:25:44 +0000 |
parents | c4fb8f245750 |
children | 42ca82b4620b |
comparison
equal
deleted
inserted
replaced
104960:ddca2477302b | 104961:0ea87b098bb0 |
---|---|
38 :link '(custom-manual "(emacs)Abbrevs") | 38 :link '(custom-manual "(emacs)Abbrevs") |
39 :group 'abbrev) | 39 :group 'abbrev) |
40 | 40 |
41 (defcustom abbrev-file-name | 41 (defcustom abbrev-file-name |
42 (locate-user-emacs-file "abbrev_defs" ".abbrev_defs") | 42 (locate-user-emacs-file "abbrev_defs" ".abbrev_defs") |
43 "Default name of file to read abbrevs from." | 43 "Default name of file from which to read abbrevs." |
44 :initialize 'custom-initialize-delay | |
44 :type 'file) | 45 :type 'file) |
45 | 46 |
46 (defcustom only-global-abbrevs nil | 47 (defcustom only-global-abbrevs nil |
47 "Non-nil means user plans to use global abbrevs only. | 48 "Non-nil means user plans to use global abbrevs only. |
48 This makes the commands that normally define mode-specific abbrevs | 49 This makes the commands that normally define mode-specific abbrevs |