[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 51ddc13 110/439: Nice indentation for threading ma
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 51ddc13 110/439: Nice indentation for threading macros. |
Date: |
Tue, 04 Aug 2015 20:26:58 +0000 |
branch: externals/dash
commit 51ddc1303a46f1789b4ca4f4679c7957ac988ddb
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
Nice indentation for threading macros.
---
dash.el | 4 ++++
examples-to-docs.el | 12 ++++++------
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/dash.el b/dash.el
index 8eed84a..89ea76c 100644
--- a/dash.el
+++ b/dash.el
@@ -411,6 +411,10 @@ in in second form, etc."
(list form x))
`(--> (--> ,x ,form) ,@more)))
+(put '-> 'lisp-indent-function 1)
+(put '->> 'lisp-indent-function 1)
+(put '--> 'lisp-indent-function 1)
+
(defun -distinct (list)
"Return a new list with all duplicates removed.
The test for equality is done with `equal',
diff --git a/examples-to-docs.el b/examples-to-docs.el
index a16575b..d312f3d 100644
--- a/examples-to-docs.el
+++ b/examples-to-docs.el
@@ -6,10 +6,10 @@
(let ((actual (car example))
(expected (nth 2 example)))
(--> (format "%S ;; => %S" actual expected)
- (replace-regexp-in-string "\\\\\\?" "?" it)
- (replace-regexp-in-string "\n" "\\n" it t t)
- (replace-regexp-in-string "\t" "\\t" it t t)
- (replace-regexp-in-string "\r" "\\r" it t t))))
+ (replace-regexp-in-string "\\\\\\?" "?" it)
+ (replace-regexp-in-string "\n" "\\n" it t t)
+ (replace-regexp-in-string "\t" "\\t" it t t)
+ (replace-regexp-in-string "\r" "\\r" it t t))))
(defun docs--signature (cmd)
(if (eq 'macro (car cmd))
@@ -34,8 +34,8 @@
(defun quote-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 "`\\([^ ]+\\)'" "`\\1`" it t))))
+ (replace-regexp-in-string "\\b\\([A-Z][A-Z-]*[0-9]*\\)\\b"
'quote-and-downcase it t)
+ (replace-regexp-in-string "`\\([^ ]+\\)'" "`\\1`" it t))))
(defun function-to-md (function)
(let ((command-name (car function))
- [elpa] externals/dash 49512b9 107/439: Simplify -take and -drop with --dotimes, (continued)
- [elpa] externals/dash 49512b9 107/439: Simplify -take and -drop with --dotimes, Phillip Lord, 2015/08/04
- [elpa] externals/dash ed47814 105/439: Add -dotimes, Phillip Lord, 2015/08/04
- [elpa] externals/dash a08fc14 102/439: Add -each-while, Phillip Lord, 2015/08/04
- [elpa] externals/dash c56925a 111/439: Add font-lock for new functions and the `it` token., Phillip Lord, 2015/08/04
- [elpa] externals/dash a336d78 112/439: Add -only-some?, Phillip Lord, 2015/08/04
- [elpa] externals/dash 03370ea 108/439: Simplify examples-to-docs and examples-to-tests with dash, Phillip Lord, 2015/08/04
- [elpa] externals/dash ba80875 109/439: Nice indentation for --each, --each-while and --dotimes, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9a3dfdd 113/439: Name parameter PRED when function expects predicate., Phillip Lord, 2015/08/04
- [elpa] externals/dash a081c72 114/439: Fix tests., Phillip Lord, 2015/08/04
- [elpa] externals/dash 9faa422 115/439: Add -partition-by, Phillip Lord, 2015/08/04
- [elpa] externals/dash 51ddc13 110/439: Nice indentation for threading macros.,
Phillip Lord <=
- [elpa] externals/dash 2c5b86e 117/439: Add -join as alias to -distinct., Phillip Lord, 2015/08/04
- [elpa] externals/dash e9de223 116/439: Rename -replace-where to -map-when, Phillip Lord, 2015/08/04
- [elpa] externals/dash cca9b1b 121/439: Also run tests on Emacs24, Phillip Lord, 2015/08/04
- [elpa] externals/dash d857f73 118/439: Merge pull request #3 from rejeep/join-alias, Phillip Lord, 2015/08/04
- [elpa] externals/dash c025efb 122/439: Add -separate (thanks @Fuco1), Phillip Lord, 2015/08/04
- [elpa] externals/dash 69e054e 124/439: Switch around order of Contribute and Contributors parts in readme., Phillip Lord, 2015/08/04
- [elpa] externals/dash 8f91ec8 126/439: 1.0.2, Phillip Lord, 2015/08/04
- [elpa] externals/dash f034c16 119/439: Add -union (thanks to @Fuco1), Phillip Lord, 2015/08/04
- [elpa] externals/dash 5e72ff9 120/439: Include numbers in github ids., Phillip Lord, 2015/08/04
- [elpa] externals/dash a23aa4b 128/439: Add examples for -group-by, Phillip Lord, 2015/08/04