[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 1d897cc 199/316: Simplify examples-to-docs a bit
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dash 1d897cc 199/316: Simplify examples-to-docs a bit |
Date: |
Mon, 15 Feb 2021 15:57:59 -0500 (EST) |
branch: externals/dash
commit 1d897cc3ac46eb9f1d7617826e6ed6381ec12e5d
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Simplify examples-to-docs a bit
* dev/examples-to-docs.el (dash-get-package-version): Remove
function.
(create-docs-file): Replace its use with lm-version.
---
dev/examples-to-docs.el | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/dev/examples-to-docs.el b/dev/examples-to-docs.el
index f7a2211..ed17133 100644
--- a/dev/examples-to-docs.el
+++ b/dev/examples-to-docs.el
@@ -23,17 +23,11 @@
(require 'dash)
(require 'dash-functional)
-(require 'help-fns)
-(require 'package)
+(require 'lisp-mnt)
(setq text-quoting-style 'grave)
-(defvar functions '())
-
-(defun dash-get-package-version ()
- "Get version of dash package."
- (with-current-buffer (find-file-noselect "dash.el")
- (mapconcat 'number-to-string (package-desc-version (package-buffer-info))
version-separator)))
+(defvar functions ())
(defun example-to-string (example)
(-let* (((actual sym expected) example)
@@ -195,7 +189,7 @@ 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 ]]" (dash-get-package-version))
+ (goto-and-replace-all "[[ version ]]" (lm-version "dash.el"))
(simplify-quotes))))
- [elpa] externals/dash 8c4e27f 108/316: Implement -setq, (continued)
- [elpa] externals/dash 8c4e27f 108/316: Implement -setq, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 578428a 117/316: Add some implementation commentary to '-each-r'., ELPA Syncer, 2021/02/15
- [elpa] externals/dash 3b08355 113/316: Use version from dash.el file when generating readme., ELPA Syncer, 2021/02/15
- [elpa] externals/dash a87df31 111/316: Merge pull request #269 from magnars/feature/smart-kv-destructuring, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 406f6f3 112/316: Fix whitespace, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 8f90dd7 121/316: Handle empty list in -reductions[-r], ELPA Syncer, 2021/02/15
- [elpa] externals/dash 453c775 115/316: Fix -setq docstring fn reference, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 85e8f62 119/316: Merge pull request #274 from magnars/doublep-each-r, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 1e22ef6 125/316: Merge pull request #263 from basil-conto/blc/common-suffix, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 78fee36 190/316: * .dir-locals.el (sh-mode): Enforce indentation., ELPA Syncer, 2021/02/15
- [elpa] externals/dash 1d897cc 199/316: Simplify examples-to-docs a bit,
ELPA Syncer <=
- [elpa] externals/dash 3d38fa2 213/316: Use actual dash-functional.el version in manual, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 92393c7 220/316: Clean up core definitions, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 3034638 232/316: Tidy up -grade-up and -grade-down a bit, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 9256290 241/316: * dash.el (-->): Indent with 1 distinguished arg., ELPA Syncer, 2021/02/15
- [elpa] externals/dash 7a9c937 250/316: Translate non-printable chars in docs, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 5d7077a 070/316: Set text-quoting-style, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 322373a 141/316: Remove mention of Marmalade, ELPA Syncer, 2021/02/15
- [elpa] externals/dash a5706bb 144/316: More test to cover cases on different `-compare-fn`, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 25030c9 150/316: Fix test harness in Emacs 27, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 68bd347 160/316: Fix typos, ELPA Syncer, 2021/02/15