[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 4f3238b 300/316: Strip leading zeros from octal es
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dash 4f3238b 300/316: Strip leading zeros from octal escapes in Emacs 26 |
Date: |
Mon, 15 Feb 2021 15:58:21 -0500 (EST) |
branch: externals/dash
commit 4f3238be8ad95f51ffe72b5511d3f4c741264a8c
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Strip leading zeros from octal escapes in Emacs 26
* dev/examples-to-info.el (dash--print-lisp-as-texi):
* dev/examples-to-docs.el (dash--print-lisp-as-md): Strip leading
zeros from octal escapes in Emacs 26, for consistency with Emacs
27+.
(example-to-string): Remove redundant print-quoted binding.
---
dev/examples-to-docs.el | 14 ++++++++------
dev/examples-to-info.el | 9 +++++----
2 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/dev/examples-to-docs.el b/dev/examples-to-docs.el
index 983f8fb..b2a073e 100644
--- a/dev/examples-to-docs.el
+++ b/dev/examples-to-docs.el
@@ -36,14 +36,16 @@
(let ((print-quoted t)
(print-escape-control-characters t))
(save-excursion (prin1 obj)))
- (while (re-search-forward
- (rx (| (group ?\' symbol-start "nil" symbol-end) "\\?")) nil 'move)
- ;; 'nil -> (), `-any\?' -> `-any?'.
- (replace-match (if (match-beginning 1) "()" "?") t t)))
+ (while (re-search-forward (rx (| (group ?\' symbol-start "nil" symbol-end)
+ (group "\\00") "\\?"))
+ nil 'move)
+ (replace-match (cond ((match-beginning 1) "()") ; 'nil -> ().
+ ((match-beginning 2) "\\") ; \00N -> \N.
+ ("?")) ; `-any\?' -> `-any?'.
+ t t)))
(defun example-to-string (example)
- (pcase-let ((`(,actual ,sym ,expected) example)
- (print-quoted t))
+ (pcase-let ((`(,actual ,sym ,expected) example))
(cond ((eq sym '!!>)
;; Print actual error message.
(setq expected (error-message-string (-list expected))))
diff --git a/dev/examples-to-info.el b/dev/examples-to-info.el
index 4ff86fc..a32ca5f 100644
--- a/dev/examples-to-info.el
+++ b/dev/examples-to-info.el
@@ -34,11 +34,12 @@
(print-escape-control-characters t))
(save-excursion (prin1 obj)))
(while (re-search-forward (rx (| (group ?\' symbol-start "nil" symbol-end)
- (group "\\?") (in "{}")))
+ (group "\\?") (group "\\00") (in "{}")))
nil 'move)
- (replace-match (cond ((match-beginning 1) "'()") ; 'nil -> '().
- ((match-beginning 2) "?") ; `-any\?' -> `-any?'.
- ("@\\&")) ; { -> @{.
+ (replace-match (cond ((match-beginning 1) "'()") ; 'nil -> '().
+ ((match-beginning 2) "?") ; `-any\?' -> `-any?'.
+ ((match-beginning 3) "\\\\") ; \00N -> \N.
+ ("@\\&")) ; { -> @{.
t)))
(defun example-to-string (example)
- [elpa] externals/dash 8599380 270/316: Optimize -is-prefix? and -is-suffix?, (continued)
- [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, 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 <=
- [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
- [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