# HG changeset patch # User Richard M. Stallman # Date 1061079436 0 # Node ID c26f56efcd5d39b9c656ec814867ea43550b176b # Parent de409240d09ee24b9dc70f5a0688a34704f46d6b (custom-load-symbol): Load cus-load and cus-start first. diff -r de409240d09e -r c26f56efcd5d lisp/custom.el --- a/lisp/custom.el Sun Aug 17 00:16:25 2003 +0000 +++ b/lisp/custom.el Sun Aug 17 00:17:16 2003 +0000 @@ -502,6 +502,14 @@ "Load all dependencies for SYMBOL." (unless custom-load-recursion (let ((custom-load-recursion t)) + ;; Load these files if not already done, + ;; to make sure we know all the dependencies of SYMBOL. + (condition-case nil + (require 'cus-load) + (error nil)) + (condition-case nil + (require 'cus-start) + (error nil)) (dolist (load (get symbol 'custom-loads)) (cond ((symbolp load) (condition-case nil (require load) (error nil))) ;; This is subsumed by the test below, but it's much faster.