aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2023-11-04 09:59:45 +0200
committerEli Zaretskii2023-11-04 09:59:45 +0200
commit196def4fa6411a32e26aa8e589a588f9cd0fbc95 (patch)
treef1028daa7d6be4641925bb7f26f59e6db1bef2ac
parentc1778432790f140ba8ab942c2cdf7fcb2834188a (diff)
downloademacs-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.texi15
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
1172Packages that don't need to support Emacs versions older than Emacs 27
1173can have the @samp{Package-Requires} header split across multiple
1174lines, 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
1184Note that with this format, you still need to start the list on the
1185same line as @samp{Package-Requires}.
1186
1172The package code automatically defines a package named @samp{emacs} 1187The package code automatically defines a package named @samp{emacs}
1173with the version number of the currently running Emacs. This can be 1188with the version number of the currently running Emacs. This can be
1174used to require a minimal version of Emacs for a package. 1189used to require a minimal version of Emacs for a package.