diff options
| author | Eli Zaretskii | 2023-11-04 09:59:45 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-11-04 09:59:45 +0200 |
| commit | 196def4fa6411a32e26aa8e589a588f9cd0fbc95 (patch) | |
| tree | f1028daa7d6be4641925bb7f26f59e6db1bef2ac | |
| parent | c1778432790f140ba8ab942c2cdf7fcb2834188a (diff) | |
| download | emacs-196def4fa6411a32e26aa8e589a588f9cd0fbc95.tar.gz emacs-196def4fa6411a32e26aa8e589a588f9cd0fbc95.zip | |
Fix description of 'Package-Requires' library header
* doc/lispref/tips.texi (Library Headers): Update the description
of the 'Package-Requires' header. (Bug#66677)
| -rw-r--r-- | doc/lispref/tips.texi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi index f594d684338..f760b2554f0 100644 --- a/doc/lispref/tips.texi +++ b/doc/lispref/tips.texi | |||
| @@ -1169,6 +1169,21 @@ element) is equivalent to entry with version "0". For instance: | |||
| 1169 | ;; Package-Requires: ((gnus "1.0") (bubbles "2.7.2") cl-lib (seq)) | 1169 | ;; Package-Requires: ((gnus "1.0") (bubbles "2.7.2") cl-lib (seq)) |
| 1170 | @end smallexample | 1170 | @end smallexample |
| 1171 | 1171 | ||
| 1172 | Packages that don't need to support Emacs versions older than Emacs 27 | ||
| 1173 | can have the @samp{Package-Requires} header split across multiple | ||
| 1174 | lines, like this: | ||
| 1175 | |||
| 1176 | @smallexample | ||
| 1177 | @group | ||
| 1178 | ;; Package-Requires: ((emacs "27.1") | ||
| 1179 | ;; (compat "29.1.4.1")) | ||
| 1180 | @end group | ||
| 1181 | @end smallexample | ||
| 1182 | |||
| 1183 | @noindent | ||
| 1184 | Note that with this format, you still need to start the list on the | ||
| 1185 | same line as @samp{Package-Requires}. | ||
| 1186 | |||
| 1172 | The package code automatically defines a package named @samp{emacs} | 1187 | The package code automatically defines a package named @samp{emacs} |
| 1173 | with the version number of the currently running Emacs. This can be | 1188 | with the version number of the currently running Emacs. This can be |
| 1174 | used to require a minimal version of Emacs for a package. | 1189 | used to require a minimal version of Emacs for a package. |