[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 8bd82c7 051/439: Show empty lists as '() instead o
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 8bd82c7 051/439: Show empty lists as '() instead of nil in docs. |
Date: |
Tue, 04 Aug 2015 20:26:17 +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 5f6ea16 036/439: Fix typo, (continued)
- [elpa] externals/dash 5f6ea16 036/439: Fix typo, Phillip Lord, 2015/08/04
- [elpa] externals/dash 722fea6 033/439: Include docs in README, Phillip Lord, 2015/08/04
- [elpa] externals/dash 657ee8b 040/439: Slight improvements to docs., Phillip Lord, 2015/08/04
- [elpa] externals/dash 26113a1 041/439: Add pre-commit.sh that runs tests and updates readme., Phillip Lord, 2015/08/04
- [elpa] externals/dash e7d5c01 043/439: Add note about README being autogenerated to Development notes., Phillip Lord, 2015/08/04
- [elpa] externals/dash 32053cd 042/439: Update readme with development notes., Phillip Lord, 2015/08/04
- [elpa] externals/dash e1a362c 047/439: Update README to reflect changes in readme generation., Phillip Lord, 2015/08/04
- [elpa] externals/dash 1b0d54f 044/439: Simplify readme generation., Phillip Lord, 2015/08/04
- [elpa] externals/dash eea3c53 045/439: Move function list above anaphoric function description., Phillip Lord, 2015/08/04
- [elpa] externals/dash 2a9e600 046/439: Make functions paragraph into a list of links, Phillip Lord, 2015/08/04
- [elpa] externals/dash 8bd82c7 051/439: Show empty lists as '() instead of nil in docs.,
Phillip Lord <=
- [elpa] externals/dash 0912aa2 048/439: Rename !uniq to !distinct, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9312469 053/439: !keep, Phillip Lord, 2015/08/04
- [elpa] externals/dash 286d1d8 050/439: Show quotes around strings in examples., Phillip Lord, 2015/08/04
- [elpa] externals/dash 24262a1 054/439: Add file-local font-lock for defexamples and =>, Phillip Lord, 2015/08/04
- [elpa] externals/dash f59b480 055/439: Add !some and !every?, Phillip Lord, 2015/08/04
- [elpa] externals/dash 2b89641 049/439: Remove needless duplication., Phillip Lord, 2015/08/04
- [elpa] externals/dash b337ef9 052/439: Sync examples-to-docs.el with the one in s.el, Phillip Lord, 2015/08/04
- [elpa] externals/dash db8a745 056/439: Add !each, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6be4c03 058/439: !first, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0991c29 057/439: Added some common aliases, Phillip Lord, 2015/08/04