summaryrefslogtreecommitdiff
path: root/doc/lispref
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-11-04 09:59:45 +0200
committerEli Zaretskii <eliz@gnu.org>2023-11-04 09:59:45 +0200
commit196def4fa6411a32e26aa8e589a588f9cd0fbc95 (patch)
treef1028daa7d6be4641925bb7f26f59e6db1bef2ac /doc/lispref
parentc1778432790f140ba8ab942c2cdf7fcb2834188a (diff)
downloademacs-196def4fa6411a32e26aa8e589a588f9cd0fbc95.tar.gz
emacs-196def4fa6411a32e26aa8e589a588f9cd0fbc95.tar.bz2
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)
Diffstat (limited to 'doc/lispref')
-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:
;; Package-Requires: ((gnus "1.0") (bubbles "2.7.2") cl-lib (seq))
@end smallexample
+Packages that don't need to support Emacs versions older than Emacs 27
+can have the @samp{Package-Requires} header split across multiple
+lines, like this:
+
+@smallexample
+@group
+;; Package-Requires: ((emacs "27.1")
+;; (compat "29.1.4.1"))
+@end group
+@end smallexample
+
+@noindent
+Note that with this format, you still need to start the list on the
+same line as @samp{Package-Requires}.
+
The package code automatically defines a package named @samp{emacs}
with the version number of the currently running Emacs. This can be
used to require a minimal version of Emacs for a package.