Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c6aedc92
Commit
c6aedc92
authored
Nov 27, 2001
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(custom-load-symbol): Don't always load locate-library.
parent
805e9a05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
lisp/ChangeLog
lisp/ChangeLog
+12
-0
lisp/cus-edit.el
lisp/cus-edit.el
+14
-6
No files found.
lisp/ChangeLog
View file @
c6aedc92
2001-11-27 Richard M. Stallman <rms@gnu.org>
* cus-edit.el (custom-load-symbol): Don't always load locate-library.
2001-11-26 Richard M. Stallman <rms@gnu.org>
* wid-edit.el (widget-toggle-value-create): On graphic terminal,
if :on-glyph or :off-glyph is a list, eval it and store it back.
(checkbox): Quote the values for :on-glyph and :off-glyph.
* cus-start.el (recursive-load-depth-limit): Delete item.
2001-11-26 Sam Steingold <sds@gnu.org>
* progmodes/cc-mode.el (c-submit-bug-report): Make sure that the
...
...
lisp/cus-edit.el
View file @
c6aedc92
...
...
@@ -1832,14 +1832,22 @@ and `face'."
((and (boundp 'preloaded-file-list)
(member load preloaded-file-list)))
((assoc load load-history))
((assoc (locate-library 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
;; 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))
(load-library load)
(error nil))))))))
(defun custom-load-widget (widget)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment