[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 8bd82c7 051/426: Show empty lists as '() instead o
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 8bd82c7 051/426: Show empty lists as '() instead of nil in docs. |
Date: |
Tue, 04 Aug 2015 19:36:39 +0000 |
branch: externals/dash
commit 8bd82c7d1cb8edf1dc1ed901f193789766d6b744
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
Show empty lists as '() instead of nil in docs.
---
README.md | 8 ++++----
examples-to-docs.el | 3 +++
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 88b4947..448c548 100644
--- a/README.md
+++ b/README.md
@@ -154,7 +154,7 @@ The test for equality is done with `equal`,
or with `!compare-fn` if that's non-nil.
```cl
-(!difference 'nil 'nil) ;; => 'nil
+(!difference '() '()) ;; => '()
(!difference '(1 2 3) '(4 5 6)) ;; => '(1 2 3)
(!difference '(1 2 3 4) '(3 4 5 6)) ;; => '(1 2)
```
@@ -166,8 +166,8 @@ The test for equality is done with `equal`,
or with `!compare-fn` if that's non-nil.
```cl
-(!intersection 'nil 'nil) ;; => 'nil
-(!intersection '(1 2 3) '(4 5 6)) ;; => 'nil
+(!intersection '() '()) ;; => '()
+(!intersection '(1 2 3) '(4 5 6)) ;; => '()
(!intersection '(1 2 3 4) '(3 4 5 6)) ;; => '(3 4)
```
@@ -178,7 +178,7 @@ The test for equality is done with `equal`,
or with `!compare-fn` if that's non-nil.
```cl
-(!distinct 'nil) ;; => 'nil
+(!distinct '()) ;; => '()
(!distinct '(1 2 2 4)) ;; => '(1 2 4)
```
diff --git a/examples-to-docs.el b/examples-to-docs.el
index 72fc55a..40063a5 100644
--- a/examples-to-docs.el
+++ b/examples-to-docs.el
@@ -65,6 +65,9 @@
(defun simplify-quotes ()
(goto-char (point-min))
+ (while (search-forward "(quote nil)" nil t)
+ (replace-match "'()"))
+ (goto-char (point-min))
(while (search-forward "(quote " nil t)
(forward-char -7)
(let ((p (point)))
- [elpa] externals/dash 6f17346 068/426: Don't run !rpartial tests on Emacsen <24, (continued)
- [elpa] externals/dash 6f17346 068/426: Don't run !rpartial tests on Emacsen <24, Phillip Lord, 2015/08/04
- [elpa] externals/dash 4205e58 064/426: Add clojure threading macros, !-> and !->>, Phillip Lord, 2015/08/04
- [elpa] externals/dash cd2a793 069/426: Run travis-ci on both E23 and E24, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1a7ad85 065/426: Mention Melpa in README, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6be4c03 058/426: !first, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0991c29 057/426: Added some common aliases, Phillip Lord, 2015/08/04
- [elpa] externals/dash ca3eea7 070/426: Fix examples-to-docs to support documenting macros., Phillip Lord, 2015/08/04
- [elpa] externals/dash a6323eb 059/426: Add some tests that verify that the lists are evaled by the anaphoric macros., Phillip Lord, 2015/08/04
- [elpa] externals/dash b29a5bb 071/426: Use make-symbol in macros to avoid names clashing., Phillip Lord, 2015/08/04
- [elpa] externals/dash 6520496 060/426: First release, remove warning., Phillip Lord, 2015/08/04
- [elpa] externals/dash 8bd82c7 051/426: Show empty lists as '() instead of nil in docs.,
Phillip Lord <=
- [elpa] externals/dash 66ffaa6 072/426: Add !interpose, Phillip Lord, 2015/08/04
- [elpa] externals/dash ec6a85f 074/426: Add threading macro !!-> with `it` as placeholder., Phillip Lord, 2015/08/04
- [elpa] externals/dash 6238f8f 077/426: Add !split-with, Phillip Lord, 2015/08/04
- [elpa] externals/dash 4e76865 075/426: Add !take-while, Phillip Lord, 2015/08/04
- [elpa] externals/dash 3802890 082/426: Simplify !concat, Phillip Lord, 2015/08/04
- [elpa] externals/dash ec835e4 081/426: Add !split-at, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0dab44c 084/426: Add -flatten, Phillip Lord, 2015/08/04
- [elpa] externals/dash 047eeea 066/426: Run tests on Emacs 24., Phillip Lord, 2015/08/04
- [elpa] externals/dash 9410f7e 073/426: Add !replace-where, Phillip Lord, 2015/08/04
- [elpa] externals/dash 123eaaa 078/426: Docs: Refer to !replace-where from !!replace-where., Phillip Lord, 2015/08/04