mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(custom-load-symbol): Simplify previous change.
This commit is contained in:
parent
f3c6bfa210
commit
85b78d5b5a
1 changed files with 7 additions and 2 deletions
|
|
@ -1306,10 +1306,15 @@ Change the state of this item."
|
|||
(condition-case nil
|
||||
(require load)
|
||||
(error nil)))
|
||||
((assoc load load-history))
|
||||
;; Don't reload a file already loaded.
|
||||
((assoc (locate-library load) load-history))
|
||||
(t
|
||||
(condition-case nil
|
||||
(load-library load)
|
||||
;; 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.
|
||||
(or (equal load "cus-edit")
|
||||
(load-library load))
|
||||
(error nil))))))))
|
||||
|
||||
(defun custom-load-widget (widget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue