summaryrefslogtreecommitdiff
path: root/lisp/cus-edit.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-04-28 03:29:39 +0000
committerRichard M. Stallman <rms@gnu.org>2002-04-28 03:29:39 +0000
commit8ba148c706ad4c3c13ddfa8f366c0f60a62a36f4 (patch)
tree3890ffacf8c5d7725df6ba9f4dbe3e5162c8fecf /lisp/cus-edit.el
parent8f772dfd7a4e2cc2e0fb0a9dad558b7852f16755 (diff)
downloademacs-8ba148c706ad4c3c13ddfa8f366c0f60a62a36f4.tar.gz
(custom-load-symbol): Moved to custom.el.
(custom-load-recursion): Likewise.
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r--lisp/cus-edit.el39
1 files changed, 0 insertions, 39 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 260503134c1..91a9fdde91d 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1836,45 +1836,6 @@ and `face'."
(t
(funcall show widget value)))))
-(defvar custom-load-recursion nil
- "Hack to avoid recursive dependencies.")
-
-;;;###autoload
-(defun custom-load-symbol (symbol)
- "Load all dependencies for SYMBOL."
- (unless custom-load-recursion
- (let ((custom-load-recursion t)
- (loads (get symbol 'custom-loads))
- load)
- (while loads
- (setq load (car loads)
- loads (cdr loads))
- (cond ((symbolp load)
- (condition-case nil
- (require load)
- (error nil)))
- ;; Don't reload a file already loaded.
- ((and (boundp 'preloaded-file-list)
- (member load preloaded-file-list)))
- ((assoc load load-history))
- ;; This was just (assoc (locate-library load) load-history)
- ;; but has been optimized not to load locate-library
- ;; if not necessary.
- ((let (found (regexp (regexp-quote load)))
- (dolist (loaded load-history)
- (and (string-match regexp (car loaded))
- (eq (locate-library load) (car loaded))
- (setq found t)))
- found))
- ;; Without this, we would load cus-edit recursively.
- ;; We are still loading it when we call this,
- ;; and it is not in load-history yet.
- ((equal load "cus-edit"))
- (t
- (condition-case nil
- (load-library load)
- (error nil))))))))
-
(defun custom-load-widget (widget)
"Load all dependencies for WIDGET."
(custom-load-symbol (widget-value widget)))