aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wohler2006-04-14 00:49:01 +0000
committerBill Wohler2006-04-14 00:49:01 +0000
commit61f32d39d0ae8a3cdee583960aadb4b2087bbb54 (patch)
tree98f364508e4dbc89f100c25fae7396dc9b38e381
parent70a1d47eec884b990a45f9f027a43a69f5453c58 (diff)
downloademacs-61f32d39d0ae8a3cdee583960aadb4b2087bbb54.tar.gz
emacs-61f32d39d0ae8a3cdee583960aadb4b2087bbb54.zip
(Common Keywords): Use dotted notation for :package-version value.
Improve documentation for customize-package-emacs-version-alist.
-rw-r--r--lispref/ChangeLog6
-rw-r--r--lispref/customize.texi33
2 files changed, 30 insertions, 9 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index f844494335c..c3920786a01 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,9 @@
12006-04-13 Bill Wohler <wohler@newt.com>
2
3 * customize.texi (Common Keywords): Use dotted notation for
4 :package-version value. Improve documentation for
5 customize-package-emacs-version-alist.
6
12006-04-12 Bill Wohler <wohler@newt.com> 72006-04-12 Bill Wohler <wohler@newt.com>
2 8
3 * customize.texi (Common Keywords): Move description of 9 * customize.texi (Common Keywords): Move description of
diff --git a/lispref/customize.texi b/lispref/customize.texi
index 1d0e44ae93f..42fd14ae0ef 100644
--- a/lispref/customize.texi
+++ b/lispref/customize.texi
@@ -131,12 +131,14 @@ This option specifies that the item was first introduced in Emacs
131version @var{version}, or that its default value was changed in that 131version @var{version}, or that its default value was changed in that
132version. The value @var{version} must be a string. 132version. The value @var{version} must be a string.
133 133
134@item :package-version '(@var{package} @var{version}) 134@item :package-version '(@var{package} . @var{version})
135This option specifies that the item was first introduced in 135This option specifies that the item was first introduced in
136@var{package} version @var{version}, or that its default value was 136@var{package} version @var{version}, or that its default value was
137changed in that version. This keyword takes priority over :version. 137changed in that version. This keyword takes priority over :version.
138The @var{package} and @var{version} must appear in the alist 138The @var{package} and @var{version} must appear in the alist
139@code{customize-package-emacs-version-alist}. 139@code{customize-package-emacs-version-alist}. Since @var{package} must
140be unique and the user might see it in an error message, a good choice
141is the official name of the package, such as MH-E or Gnus.
140 142
141@end table 143@end table
142 144
@@ -144,17 +146,30 @@ Packages that use the @code{:package-version} keyword must also update
144the @code{customize-package-emacs-version-alist} variable. 146the @code{customize-package-emacs-version-alist} variable.
145 147
146@defvar customize-package-emacs-version-alist 148@defvar customize-package-emacs-version-alist
147This alist maps packages to alists that map all package versions used 149This alist provides a mapping for the versions of Emacs that are
148with the @code{:package-version} keyword to Emacs versions. Packages 150associated with versions of a package listed in the
149are symbols and versions are strings. For example, the MH-E package 151@code{:package-version} keyword. Its elements look like this:
150updates this alist with the following: 152
153@example
154(@var{package} (@var{pversion} . @var{eversion})@dots{})
155@end example
156
157For each @var{package}, which is a symbol, there are one or more
158elements that contain a package version @var{pversion} with an
159associated Emacs version @var{eversion}. These versions are strings.
160For example, the MH-E package updates this alist with the following:
151 161
152@smallexample 162@smallexample
153(add-to-list 'customize-package-emacs-version-alist 163(add-to-list 'customize-package-emacs-version-alist
154 '(MH-E ("6.0" "22.1") ("6.1" "22.1") ("7.0" "22.1") 164 '(MH-E ("6.0" . "22.1") ("6.1" . "22.1") ("7.0" . "22.1")
155 ("7.1" "22.1") ("7.2" "22.1") ("7.3" "22.1") 165 ("7.1" . "22.1") ("7.2" . "22.1") ("7.3" . "22.1")
156 ("7.4" "22.1") ("8.0" "22.1"))) 166 ("7.4" . "22.1") ("8.0" . "22.1")))
157@end smallexample 167@end smallexample
168
169The value of @var{package} needs to be unique and it needs to match
170the @var{package} value appearing in the @code{:package-version}
171keyword. Since the user might see the value in a error message, a good
172choice is the official name of the package, such as MH-E or Gnus.
158@end defvar 173@end defvar
159 174
160@node Group Definitions 175@node Group Definitions