[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash eedc2af 279/316: Fix docstring Texinfo generation
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dash eedc2af 279/316: Fix docstring Texinfo generation |
Date: |
Mon, 15 Feb 2021 15:58:17 -0500 (EST) |
branch: externals/dash
commit eedc2affad34471bd99b5fae56c6127c99eed3a2
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Fix docstring Texinfo generation
* dev/examples-to-info.el (format-docstring): Generalize @-quoting
by doing it first. Use \< and \> in place of \b for better word
boundary detection. Mark all replacements as fixed and literal.
* dash.texi: Regenerate.
---
dash.texi | 12 ++++++------
dev/examples-to-info.el | 9 +++++----
2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/dash.texi b/dash.texi
index eeae650..8a502c0 100644
--- a/dash.texi
+++ b/dash.texi
@@ -2064,8 +2064,8 @@ Return a list of ((-filter @var{pred} @var{list})
(-remove @var{pred} @var{list}
@anchor{-partition}
@defun -partition (n list)
-Return a new list with the items in @var{list} grouped into @var{n-}sized
sublists.
-If there are not enough items to make the last group @var{n-}sized,
+Return a new list with the items in @var{list} grouped into @var{n}-sized
sublists.
+If there are not enough items to make the last group @var{n}-sized,
those items are discarded.
@example
@@ -2086,7 +2086,7 @@ those items are discarded.
@anchor{-partition-all}
@defun -partition-all (n list)
-Return a new list with the items in @var{list} grouped into @var{n-}sized
sublists.
+Return a new list with the items in @var{list} grouped into @var{n}-sized
sublists.
The last group may contain less than @var{n} items.
@example
@@ -2107,8 +2107,8 @@ The last group may contain less than @var{n} items.
@anchor{-partition-in-steps}
@defun -partition-in-steps (n step list)
-Return a new list with the items in @var{list} grouped into @var{n-}sized
sublists at offsets @var{step} apart.
-If there are not enough items to make the last group @var{n-}sized,
+Return a new list with the items in @var{list} grouped into @var{n}-sized
sublists at offsets @var{step} apart.
+If there are not enough items to make the last group @var{n}-sized,
those items are discarded.
@example
@@ -2129,7 +2129,7 @@ those items are discarded.
@anchor{-partition-all-in-steps}
@defun -partition-all-in-steps (n step list)
-Return a new list with the items in @var{list} grouped into @var{n-}sized
sublists at offsets @var{step} apart.
+Return a new list with the items in @var{list} grouped into @var{n}-sized
sublists at offsets @var{step} apart.
The last groups may contain less than @var{n} items.
@example
diff --git a/dev/examples-to-info.el b/dev/examples-to-info.el
index 6814931..3b5ff9f 100644
--- a/dev/examples-to-info.el
+++ b/dev/examples-to-info.el
@@ -94,10 +94,11 @@ Based on `describe-function-1'."
(defun format-docstring (docstring)
(let (case-fold-search)
(--> docstring
- (replace-regexp-in-string "\\b\\([A-Z][A-Z-]*[0-9]*\\)\\b"
'quote-and-downcase it t)
- (replace-regexp-in-string "`\\([^ ]+\\)'" 'unquote-and-link it t)
- (replace-regexp-in-string "{,@}" "{,@@}" it t)
- (replace-regexp-in-string "^ " " " it)
+ (replace-regexp-in-string "@" "@@" it t t)
+ (replace-regexp-in-string "\\<\\([A-Z][A-Z-]*[0-9]*\\)\\>"
+ #'quote-and-downcase it t t)
+ (replace-regexp-in-string "`\\([^ ]+\\)'" #'unquote-and-link it t t)
+ (replace-regexp-in-string "^ " " " it t t)
(replace-regexp-in-string
"\\.\\.\\.\\($\\)?"
(lambda (_) (if (match-beginning 1) "@enddots{}" "@dots{}"))
- [elpa] externals/dash 9703eac 249/316: ; Fix Edebug spec in last change, (continued)
- [elpa] externals/dash 9703eac 249/316: ; Fix Edebug spec in last change, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 4fb9613 255/316: Avoid evaluating file-local variables, ELPA Syncer, 2021/02/15
- [elpa] externals/dash ff5ed7a 261/316: Extend -keep docs and tests, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 5d8de45 262/316: ; Fix recent typo in -filter & -remove docstrings, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 7fc72d9 263/316: Fix Markdown quoting, ELPA Syncer, 2021/02/15
- [elpa] externals/dash e5e5363 272/316: Merge pull request #367 from HKey/fix-handling-nil, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 8bd2887 269/316: Move pre-commit.sh under dev/, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 8599380 270/316: Optimize -is-prefix? and -is-suffix?, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 5362be7 275/316: Use actual advertised function signature in manual, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 926eb0b 280/316: Add forceful Makefile targets, ELPA Syncer, 2021/02/15
- [elpa] externals/dash eedc2af 279/316: Fix docstring Texinfo generation,
ELPA Syncer <=
- [elpa] externals/dash 7ee12ee 283/316: Use buffers for Texinfo generation, ELPA Syncer, 2021/02/15
- [elpa] externals/dash baf9147 285/316: Simplify Texinfo generation, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 7ec3975 292/316: Avoid deleting docs in old Emacs versions, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 3cfbebf 293/316: Port more Texinfo generation changes to Markdown, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 03748d8 297/316: Prefer '() over () in printed examples, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 6ffcd89 299/316: Print actual error messages in README, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 4f3238b 300/316: Strip leading zeros from octal escapes in Emacs 26, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 2028805 302/316: Don't quote error messages in Texinfo examples, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 6c41b32 301/316: Move case-fold-search binding to where it's used, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 1c711f1 303/316: Unquote results in Texinfo examples, ELPA Syncer, 2021/02/15