summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorMarkus Rost <rost@math.uni-bielefeld.de>2003-01-07 19:25:20 +0000
committerMarkus Rost <rost@math.uni-bielefeld.de>2003-01-07 19:25:20 +0000
commit90b4a157455de916dc809c85095766d7500c22d1 (patch)
treed145808fad9397596e5f44f232e15a646cdb19ba /lisp
parent13eb72d26e421da3eb699eda7a4215177854ff31 (diff)
downloademacs-90b4a157455de916dc809c85095766d7500c22d1.tar.gz
(set-variable): Load deps of custom variables without type.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/simple.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index f93b819e351..9ed9e2e84d7 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3690,6 +3690,9 @@ With a prefix argument, set VARIABLE to VALUE buffer-locally."
'set-variable-value-history)))))
(list var val current-prefix-arg)))
+ (and (custom-variable-p var)
+ (not (get var 'custom-type))
+ (custom-load-symbol var))
(let ((type (get var 'custom-type)))
(when type
;; Match with custom type.