Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1669290d
Commit
1669290d
authored
Jan 07, 2003
by
Markus Rost
Browse files
(custom-autoload, custom-variable-p): New functions.
parent
6a3a24fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
lisp/custom.el
lisp/custom.el
+11
-0
No files found.
lisp/custom.el
View file @
1669290d
...
...
@@ -481,6 +481,17 @@ LOAD should be either a library file name, or a feature name."
(
unless
(
member
load
loads
)
(
put
symbol
'custom-loads
(
cons
(
purecopy
load
)
loads
)))))
(
defun
custom-autoload
(
symbol
load
)
"Mark SYMBOL as autoloaded custom variable and add dependency LOAD."
(
put
symbol
'custom-autoload
t
)
(
custom-add-load
symbol
load
))
;; This test is also in the C code of `user-variable-p'.
(
defun
custom-variable-p
(
variable
)
"Return non-nil if VARIABLE is a custom variable."
(
or
(
get
variable
'standard-value
)
(
get
variable
'custom-autoload
)))
;;; Loading files needed to customize a symbol.
;;; This is in custom.el because menu-bar.el needs it for toggle cmds.
...
...
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