[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 2028805 302/316: Don't quote error messages in Tex
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dash 2028805 302/316: Don't quote error messages in Texinfo examples |
Date: |
Mon, 15 Feb 2021 15:58:21 -0500 (EST) |
branch: externals/dash
commit 2028805287e5466a8d6bfedda050338f5e1d0ede
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Don't quote error messages in Texinfo examples
* dev/examples-to-info.el (example-to-string): Strip quotes from
error message in expected result.
* dash.texi: Regenerate.
---
dash.texi | 6 +++---
dev/examples-to-info.el | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dash.texi b/dash.texi
index a61e2d9..2ac5760 100644
--- a/dash.texi
+++ b/dash.texi
@@ -1445,7 +1445,7 @@ Return a list with running sums of items in @var{list}.
@end group
@group
(-running-sum '())
- @error{} "Wrong type argument: consp, nil"
+ @error{} Wrong type argument: consp, nil
@end group
@end example
@end defun
@@ -1486,7 +1486,7 @@ Return a list with running products of items in
@var{list}.
@end group
@group
(-running-product '())
- @error{} "Wrong type argument: consp, nil"
+ @error{} Wrong type argument: consp, nil
@end group
@end example
@end defun
@@ -2741,7 +2741,7 @@ the @var{apl} language.
@end group
@group
(-iota -1)
- @error{} "Wrong type argument: natnump, -1"
+ @error{} Wrong type argument: natnump, -1
@end group
@end example
@end defun
diff --git a/dev/examples-to-info.el b/dev/examples-to-info.el
index c1b05b7..6306c28 100644
--- a/dev/examples-to-info.el
+++ b/dev/examples-to-info.el
@@ -46,14 +46,14 @@
(defun example-to-string (example)
(pcase-let* ((`(,actual ,err ,expected) example)
(err (eq err '!!>)))
- (and err (consp expected)
- (setq expected (error-message-string expected)))
+ (when err
+ (setq expected (error-message-string (-list expected))))
(with-output-to-string
(with-current-buffer standard-output
(insert "@group\n")
(dash--print-lisp-as-texi actual)
(insert "\n " (if err "@error{}" "@result{}") ?\s)
- (dash--print-lisp-as-texi expected)
+ (funcall (if err #'princ #'dash--print-lisp-as-texi) expected)
(insert "\n@end group")))))
(defun dash--describe (fn)
- [elpa] externals/dash 5362be7 275/316: Use actual advertised function signature in manual, (continued)
- [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, 2021/02/15
- [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 <=
- [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
- [elpa] externals/dash 1bf9ddb 304/316: Makefile aesthetics, ELPA Syncer, 2021/02/15
- [elpa] externals/dash da0415b 312/316: * NEWS.md (2.18): Start news for upcoming release., ELPA Syncer, 2021/02/15
- [elpa] externals/dash 5eea156 315/316: Absorb dash-functional into dash, ELPA Syncer, 2021/02/15
- [elpa] externals/dash eaf33b3 226/316: Add info-lookup-symbol support, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 565055e 229/316: * dash.el (---truthy?): Simplify., ELPA Syncer, 2021/02/15
- [elpa] externals/dash 97bd233 231/316: Use lexical binding for -grade-up/down, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 1152feb 237/316: Deprecate variadic -list, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 609ac28 245/316: Improve Texinfo markup when documenting errors, ELPA Syncer, 2021/02/15