emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-30 cefec59df7b: Document adding package dependency on Emacs versio


From: Stefan Kangas
Subject: emacs-30 cefec59df7b: Document adding package dependency on Emacs version
Date: Fri, 5 Jul 2024 09:02:34 -0400 (EDT)

branch: emacs-30
commit cefec59df7b24887496dafc32eae69083dfa60f2
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Document adding package dependency on Emacs version
    
    * doc/lispref/package.texi (Simple Packages, Multi-file Packages):
    Document how to make a package depend on a specific version of Emacs.
---
 doc/lispref/package.texi | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/doc/lispref/package.texi b/doc/lispref/package.texi
index 421e64dd5d1..40c550b56b4 100644
--- a/doc/lispref/package.texi
+++ b/doc/lispref/package.texi
@@ -192,10 +192,11 @@ used as the long description.  (When displaying the 
description, Emacs
 omits the @samp{;;; Commentary:} line, as well as the leading comment
 characters in the commentary itself.)
 
-  If the file has a @samp{Package-Requires} header, that is used as
-the package dependencies.  In the above example, the package depends
-on the @samp{flange} package, version 1.0 or higher.  @xref{Library
-Headers}, for a description of the @samp{Package-Requires} header.  If
+  If the file has a @samp{Package-Requires} header, that is used as the
+package dependencies.  In the above example, the package depends on the
+@samp{flange} package, version 1.0 or higher.  @xref{Library Headers},
+for a description of the @samp{Package-Requires} header.  To depend on a
+specific version of Emacs, specify @samp{emacs} as the package name.  If
 the header is omitted, the package has no dependencies.
 
   The @samp{Keywords} and @samp{URL} headers are optional, but recommended.
@@ -247,9 +248,10 @@ is the brief description.
 
 @var{requirements} is a list of required packages and their versions.
 Each element in this list should have the form @code{(@var{dep-name}
-@var{dep-version})}, where @var{dep-name} is a symbol whose name is
-the dependency's package name, and @var{dep-version} is the
-dependency's version (a string).
+@var{dep-version})}, where @var{dep-name} is a symbol whose name is the
+dependency's package name, and @var{dep-version} is the dependency's
+version (a string).  The spacial value @samp{emacs} means that the
+package depends on the given version of Emacs.
 @end defun
 
   If the content directory contains a file named @file{README}, this



reply via email to

[Prev in Thread] Current Thread [Next in Thread]