[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/custom.el
From: |
Bill Wohler |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/custom.el |
Date: |
Mon, 10 Apr 2006 23:43:35 +0000 |
Index: emacs/lisp/custom.el
diff -u emacs/lisp/custom.el:1.123 emacs/lisp/custom.el:1.124
--- emacs/lisp/custom.el:1.123 Tue Mar 21 16:44:09 2006
+++ emacs/lisp/custom.el Mon Apr 10 23:43:34 2006
@@ -268,6 +268,12 @@
VALUE should be a string specifying that the variable was
first introduced, or its default value was changed, in Emacs
version VERSION.
+:package-version
+ VALUE should be a list with the form (PACKAGE VERSION)
+ specifying that the variable was first introduced, or its
+ default value was changed, in PACKAGE version VERSION. This
+ keyword takes priority over :version. The PACKAGE and VERSION
+ must appear in the alist `customize-package-emacs-version-alist'.
:tag LABEL
Use LABEL, a string, instead of the item's name, to label the item
in customization menus and buffers.
@@ -489,6 +495,8 @@
(custom-add-to-group value symbol type))
((eq keyword :version)
(custom-add-version symbol value))
+ ((eq keyword :package-version)
+ (custom-add-package-version symbol value))
((eq keyword :link)
(custom-add-link symbol value))
((eq keyword :load)
@@ -540,6 +548,10 @@
"To the custom option SYMBOL add the version VERSION."
(put symbol 'custom-version (purecopy version)))
+(defun custom-add-package-version (symbol version)
+ "To the custom option SYMBOL add the package version VERSION."
+ (put symbol 'custom-package-version (purecopy version)))
+
(defun custom-add-load (symbol load)
"To the custom option SYMBOL add the dependency LOAD.
LOAD should be either a library file name, or a feature name."
- [Emacs-diffs] Changes to emacs/lisp/custom.el,
Bill Wohler <=