From 8879c41d30211ae2e72298e354fdffef627a3836 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Tue, 5 Jan 2021 04:55:56 +0000 Subject: [PATCH] Use actual dash-functional.el version in README * readme-template.md (Using in a package): Don't hard-code package version of dash-functional.el. * dev/examples-to-docs.el (create-docs-file): Substitute package version of dash-functional.el alongside that of dash.el. --- dev/examples-to-docs.el | 4 +++- readme-template.md | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dev/examples-to-docs.el b/dev/examples-to-docs.el index 20e808d..d2ac648 100644 --- a/dev/examples-to-docs.el +++ b/dev/examples-to-docs.el @@ -189,7 +189,9 @@ FUNCTION may reference an elisp function, alias, macro or a subr." (goto-and-remove "[[ function-docs ]]") (insert (mapconcat 'function-to-md functions "\n")) - (goto-and-replace-all "[[ version ]]" (lm-version "dash.el")) + (dolist (pkg '(dash dash-functional)) + (goto-and-replace-all (format "[[ %s-version ]]" pkg) + (lm-version (format "%s.el" pkg)))) (simplify-quotes)))) diff --git a/readme-template.md b/readme-template.md index 875f5f0..6cc06b7 100644 --- a/readme-template.md +++ b/readme-template.md @@ -25,11 +25,11 @@ If you want the function combinators, then also: Add something like this to the [library's headers](https://gnu.org/software/emacs/manual/html_node/elisp/Library-Headers.html): - ;; Package-Requires: ((dash "[[ version ]]")) + ;; Package-Requires: ((dash "[[ dash-version ]]")) To get function combinators: - ;; Package-Requires: ((dash "[[ version ]]") (dash-functional "1.2.0")) + ;; Package-Requires: ((dash "[[ dash-version ]]") (dash-functional "[[ dash-functional-version ]]")) ## Upcoming breaking change!