Use actual dash-functional.el version in manual

* dash-template.texi: Set version flag DASHFNVER for
dash-functional.el alongside that for dash.el.
(Using in a package): Use it.

* dev/examples-to-info.el (create-info-file): Substitute package
version of dash-functional.el alongside that of dash.el.

* dash.texi: Regenerate manual.
master
Basil L. Contovounesios 5 years ago
parent 1d582498c6
commit 3d38fa22fc
No known key found for this signature in database
GPG Key ID: 205AB54A5D5D8CFF
  1. 5
      dash-template.texi
  2. 3
      dash.texi
  3. 5
      dev/examples-to-info.el

@ -1,7 +1,8 @@
\input texinfo @c -*- texinfo -*-
@c %**start of header
@setfilename dash.info
@set DASHVER @c [[ version ]]
@set DASHVER @c [[ dash-version ]]
@set DASHFNVER @c [[ dash-functional-version ]]
@settitle Dash: A modern list library for GNU Emacs.
@documentencoding UTF-8
@documentlanguage en
@ -117,7 +118,7 @@ The same goes for the @file{dash-functional.el} library of function
combinators:
@lisp
;; Package-Requires: ((dash "@value{DASHVER}") (dash-functional "1.2.0"))
;; Package-Requires: ((dash "@value{DASHVER}") (dash-functional "@value{DASHFNVER}"))
@end lisp
@node Fontification of special variables

@ -2,6 +2,7 @@
@c %**start of header
@setfilename dash.info
@set DASHVER 2.17.0
@set DASHFNVER 1.2.0
@settitle Dash: A modern list library for GNU Emacs.
@documentencoding UTF-8
@documentlanguage en
@ -132,7 +133,7 @@ The same goes for the @file{dash-functional.el} library of function
combinators:
@lisp
;; Package-Requires: ((dash "@value{DASHVER}") (dash-functional "1.2.0"))
;; Package-Requires: ((dash "@value{DASHVER}") (dash-functional "@value{DASHFNVER}"))
@end lisp
@node Fontification of special variables

@ -195,8 +195,9 @@ FUNCTION may reference an elisp function, alias, macro or a subr."
(with-temp-file "./dash.texi"
(insert-file-contents-literally "./dash-template.texi")
(goto-and-remove "@c [[ version ]]")
(insert (lm-version "dash.el"))
(dolist (pkg '(dash dash-functional))
(goto-and-remove (format "@c [[ %s-version ]]" pkg))
(insert (lm-version (format "%s.el" pkg))))
(goto-and-remove "@c [[ function-nodes ]]")
(insert (mapconcat 'function-to-node

Loading…
Cancel
Save