aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1997-12-09 22:04:25 +0000
committerKarl Heuer1997-12-09 22:04:25 +0000
commitc743cc52aba26ecfbecda269a308c9c36383fdc5 (patch)
tree890977a4cdca4462d9547e0428eb42cd98d5221e
parentf50dc5d269a57c47b1001514cf9eda1cbcde95b9 (diff)
downloademacs-c743cc52aba26ecfbecda269a308c9c36383fdc5.tar.gz
emacs-c743cc52aba26ecfbecda269a308c9c36383fdc5.zip
(custom-add-version): New function.
(custom-handle-keyword): Handle :version.
-rw-r--r--lisp/custom.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/custom.el b/lisp/custom.el
index 9cdab4cc3d8..18035852346 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -328,6 +328,8 @@ Third argument TYPE is the custom option type."
328Fourth argument TYPE is the custom option type." 328Fourth argument TYPE is the custom option type."
329 (cond ((eq keyword :group) 329 (cond ((eq keyword :group)
330 (custom-add-to-group value symbol type)) 330 (custom-add-to-group value symbol type))
331 ((eq keyword :version)
332 (custom-add-version symbol value))
331 ((eq keyword :link) 333 ((eq keyword :link)
332 (custom-add-link symbol value)) 334 (custom-add-link symbol value))
333 ((eq keyword :load) 335 ((eq keyword :load)
@@ -352,6 +354,10 @@ For other types variables, the effect is undefined."
352 (unless (member widget links) 354 (unless (member widget links)
353 (put symbol 'custom-links (cons widget links))))) 355 (put symbol 'custom-links (cons widget links)))))
354 356
357(defun custom-add-version (symbol version)
358 "To the custom option SYMBOL add the version VERSION."
359 (put symbol 'custom-version version))
360
355(defun custom-add-load (symbol load) 361(defun custom-add-load (symbol load)
356 "To the custom option SYMBOL add the dependency LOAD. 362 "To the custom option SYMBOL add the dependency LOAD.
357LOAD should be either a library file name, or a feature name." 363LOAD should be either a library file name, or a feature name."