diff options
| author | Bill Wohler | 2006-04-14 00:49:01 +0000 |
|---|---|---|
| committer | Bill Wohler | 2006-04-14 00:49:01 +0000 |
| commit | 61f32d39d0ae8a3cdee583960aadb4b2087bbb54 (patch) | |
| tree | 98f364508e4dbc89f100c25fae7396dc9b38e381 | |
| parent | 70a1d47eec884b990a45f9f027a43a69f5453c58 (diff) | |
| download | emacs-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/ChangeLog | 6 | ||||
| -rw-r--r-- | lispref/customize.texi | 33 |
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 @@ | |||
| 1 | 2006-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 | |||
| 1 | 2006-04-12 Bill Wohler <wohler@newt.com> | 7 | 2006-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 | |||
| 131 | version @var{version}, or that its default value was changed in that | 131 | version @var{version}, or that its default value was changed in that |
| 132 | version. The value @var{version} must be a string. | 132 | version. 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}) |
| 135 | This option specifies that the item was first introduced in | 135 | This 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 |
| 137 | changed in that version. This keyword takes priority over :version. | 137 | changed in that version. This keyword takes priority over :version. |
| 138 | The @var{package} and @var{version} must appear in the alist | 138 | The @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 |
| 140 | be unique and the user might see it in an error message, a good choice | ||
| 141 | is 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 | |||
| 144 | the @code{customize-package-emacs-version-alist} variable. | 146 | the @code{customize-package-emacs-version-alist} variable. |
| 145 | 147 | ||
| 146 | @defvar customize-package-emacs-version-alist | 148 | @defvar customize-package-emacs-version-alist |
| 147 | This alist maps packages to alists that map all package versions used | 149 | This alist provides a mapping for the versions of Emacs that are |
| 148 | with the @code{:package-version} keyword to Emacs versions. Packages | 150 | associated with versions of a package listed in the |
| 149 | are symbols and versions are strings. For example, the MH-E package | 151 | @code{:package-version} keyword. Its elements look like this: |
| 150 | updates this alist with the following: | 152 | |
| 153 | @example | ||
| 154 | (@var{package} (@var{pversion} . @var{eversion})@dots{}) | ||
| 155 | @end example | ||
| 156 | |||
| 157 | For each @var{package}, which is a symbol, there are one or more | ||
| 158 | elements that contain a package version @var{pversion} with an | ||
| 159 | associated Emacs version @var{eversion}. These versions are strings. | ||
| 160 | For 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 | |||
| 169 | The value of @var{package} needs to be unique and it needs to match | ||
| 170 | the @var{package} value appearing in the @code{:package-version} | ||
| 171 | keyword. Since the user might see the value in a error message, a good | ||
| 172 | choice 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 |