summaryrefslogtreecommitdiff
path: root/lisp/cus-start.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2015-04-15 13:02:15 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2015-04-15 13:02:15 -0400
commit58376670d83682e2135175dccf05a23eb815bfe6 (patch)
treefcba04f4cb5b8202d50e42818be1db5171799e44 /lisp/cus-start.el
parentd338998775330f59a7e6dfef7705b605d2c99033 (diff)
downloademacs-58376670d83682e2135175dccf05a23eb815bfe6.tar.gz
Fix recent cus-start changes that added customize-rogues
* lisp/cus-start.el (custom-delayed-init-variables): Initialize the vars early. * lisp/loadup.el ("cus-start"): Move to the end to reduce customize-rogue.
Diffstat (limited to 'lisp/cus-start.el')
-rw-r--r--lisp/cus-start.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 05135b80e8e..29ef371669c 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -632,7 +632,11 @@ since it could result in memory overflow and make Emacs crash."
(put symbol 'custom-set (cadr prop)))
;; Note this is the _only_ initialize property we handle.
(if (eq (cadr (memq :initialize rest)) 'custom-initialize-delay)
- (push symbol custom-delayed-init-variables))
+ ;; These vars are defined early and should hence be initialized
+ ;; early, even if this file happens to be loaded late. so add them
+ ;; to the end of custom-delayed-init-variables. Otherwise,
+ ;; auto-save-file-name-transforms will appear in M-x customize-rogue.
+ (add-to-list 'custom-delayed-init-variables symbol 'append))
;; If this is NOT while dumping Emacs, set up the rest of the
;; customization info. This is the stuff that is not needed
;; until someone does M-x customize etc.