[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 47114ca 290/316: Make manual generation more consi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dash 47114ca 290/316: Make manual generation more consistent with README |
Date: |
Mon, 15 Feb 2021 15:58:19 -0500 (EST) |
branch: externals/dash
commit 47114ca4622c3d8235be1a0fa958797fea0223db
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Make manual generation more consistent with README
* dev/examples-to-info.el (format-docstring): Remove unneeded
with-output-to-string.
(create-info-file):
* dash-template.texi (Top, Functions): Rename function-nodes to
function-list.
---
dash-template.texi | 4 ++--
dev/examples-to-info.el | 50 ++++++++++++++++++++++++-------------------------
2 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/dash-template.texi b/dash-template.texi
index 3b498cc..ae33650 100644
--- a/dash-template.texi
+++ b/dash-template.texi
@@ -68,7 +68,7 @@ Installation
Functions
-@c [[ function-nodes ]]
+@c [[ function-list ]]
Development
@@ -205,7 +205,7 @@ example, which demonstrates the utility of both versions.
@end lisp
@menu
-@c [[ function-nodes ]]
+@c [[ function-list ]]
@end menu
@c [[ function-docs ]]
diff --git a/dev/examples-to-info.el b/dev/examples-to-info.el
index 74da4e0..4ff86fc 100644
--- a/dev/examples-to-info.el
+++ b/dev/examples-to-info.el
@@ -86,30 +86,30 @@ Based on `describe-function-1'."
(defun format-docstring (docstring)
(let ((case-fold-search nil))
- (with-output-to-string
- (with-current-buffer standard-output
- (insert docstring)
- ;; Escape literal ?@.
- (dash--replace-all "@" "@@")
- (goto-char (point-min))
- (while (re-search-forward
- (rx (| (group bow (in "A-Z") (* (in "A-Z" ?-)) (* num) eow)
- (: ?` (group (+ (not (in ?\s)))) ?\')
- (: "..." (? (group eol)))))
- nil t)
- (cond ((match-beginning 1)
- ;; Downcase metavariable reference.
- (downcase-region (match-beginning 1) (match-end 1))
- (replace-match "@var{\\1}" t))
- ((match-beginning 2)
- ;; `quoted' symbol.
- (replace-match (if (assq (intern (match-string 2)) functions)
- "@code{\\2} (@pxref{\\2})"
- "@code{\\2}")
- t))
- ;; Ellipses.
- ((match-beginning 3) (replace-match "@enddots{}" t t))
- ((replace-match "@dots{}" t t))))))))
+ (with-temp-buffer
+ (insert docstring)
+ ;; Escape literal ?@.
+ (dash--replace-all "@" "@@")
+ (goto-char (point-min))
+ (while (re-search-forward
+ (rx (| (group bow (in "A-Z") (* (in "A-Z" ?-)) (* num) eow)
+ (: ?` (group (+ (not (in ?\s)))) ?\')
+ (: "..." (? (group eol)))))
+ nil t)
+ (cond ((match-beginning 1)
+ ;; Downcase metavariable reference.
+ (downcase-region (match-beginning 1) (match-end 1))
+ (replace-match "@var{\\1}" t))
+ ((match-beginning 2)
+ ;; `quoted' symbol.
+ (replace-match (if (assq (intern (match-string 2)) functions)
+ "@code{\\2} (@pxref{\\2})"
+ "@code{\\2}")
+ t))
+ ;; Ellipses.
+ ((match-beginning 3) (replace-match "@enddots{}" t t))
+ ((replace-match "@dots{}" t t))))
+ (buffer-string))))
(defun function-to-info (function)
(pcase function
@@ -145,7 +145,7 @@ Based on `describe-function-1'."
(lm-version (format "%s.el" pkg))))
(dash--replace-all
- "@c [[ function-nodes ]]"
+ "@c [[ function-list ]]"
(mapconcat (lambda (s) (concat "* " s "::"))
(-filter (lambda (s)
(and (stringp s)
- [elpa] externals/dash 0789fd0 273/316: Fix -some--> docstring and Edebug spec, (continued)
- [elpa] externals/dash 0789fd0 273/316: Fix -some--> docstring and Edebug spec, ELPA Syncer, 2021/02/15
- [elpa] externals/dash e0254c5 274/316: * dash.el (-doto): Fix Edebug spec., ELPA Syncer, 2021/02/15
- [elpa] externals/dash 46e43c0 277/316: Fix long-standing typo in Texinfo generation, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 65eeaf6 278/316: Fix long-standing typo in examples, ELPA Syncer, 2021/02/15
- [elpa] externals/dash dbbf617 281/316: Remove dead code from examples-to-info.el, ELPA Syncer, 2021/02/15
- [elpa] externals/dash ee9bceb 284/316: Leave Texinfo docstring indentation as is, ELPA Syncer, 2021/02/15
- [elpa] externals/dash a6b16ea 286/316: Localize 'nil -> '() replacement in Texinfo, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 56db327 287/316: Fix printing in Emacs < 27, ELPA Syncer, 2021/02/15
- [elpa] externals/dash d76505d 289/316: Use dash--replace-all in Texinfo format-docstring, ELPA Syncer, 2021/02/15
- [elpa] externals/dash c38b06f 291/316: Port some recent manual changes to README, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 47114ca 290/316: Make manual generation more consistent with README,
ELPA Syncer <=
- [elpa] externals/dash 3fa27c4 295/316: Make README's def-example-group more like manual's, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 4043f4e 305/316: Consolidate duplicated change logs in new NEWS.md, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 51d81a5 308/316: Avoid using dash.el functions in macro bodies, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 41b5681 310/316: Merge pull request #369 from blc/gut, ELPA Syncer, 2021/02/15
- [elpa] externals/dash cec8c0d 311/316: Rename approx-equal to more accurate approx=, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 4d40317 313/316: Update list of contributors, ELPA Syncer, 2021/02/15
- [elpa] externals/dash be4e939 314/316: ; Fix recent whitespace change in dev/examples.el., ELPA Syncer, 2021/02/15
- [elpa] externals/dash 0e97578 316/316: Release dash 2.18.0 and dash-functional 1.3.0, ELPA Syncer, 2021/02/15
- [elpa] externals/dash d98f5a0 235/316: Update for -iota, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 0f13e5e 246/316: Prefer push over add-to-list, ELPA Syncer, 2021/02/15