[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 960b05f 276/426: Set -each, -each-while and -dotim
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 960b05f 276/426: Set -each, -each-while and -dotimes indent levels to 1. |
Date: |
Tue, 04 Aug 2015 19:38:15 +0000 |
branch: externals/dash
commit 960b05fe497b2f206594fc61e91299cc424ee4f5
Author: Johan Andersson <address@hidden>
Commit: Johan Andersson <address@hidden>
Set -each, -each-while and -dotimes indent levels to 1.
---
dash.el | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dash.el b/dash.el
index 3c83412..12c04bc 100644
--- a/dash.el
+++ b/dash.el
@@ -70,6 +70,8 @@ special values."
"Calls FN with every item in LIST. Returns nil, used for side-effects only."
(--each list (funcall fn it)))
+(put '-each 'lisp-indent-function 1)
+
(defmacro --each-while (list pred &rest body)
"Anaphoric form of `-each-while'."
(let ((l (make-symbol "list"))
@@ -88,6 +90,8 @@ special values."
Returns nil, used for side-effects only."
(--each-while list (funcall pred it) (funcall fn it)))
+(put '-each-while 'lisp-indent-function 2)
+
(defmacro --dotimes (num &rest body)
"Repeatedly executes BODY (presumably for side-effects) with `it` bound to
integers from 0 through n-1."
`(let ((it 0))
@@ -101,6 +105,8 @@ Returns nil, used for side-effects only."
"Repeatedly calls FN (presumably for side-effects) passing in integers from
0 through n-1."
(--dotimes num (funcall fn it)))
+(put '-dotimes 'lisp-indent-function 1)
+
(defun -map (fn list)
"Returns a new list consisting of the result of applying FN to the items in
LIST."
(mapcar fn list))
- [elpa] externals/dash 25be31a 270/426: Release 2.4.2, (continued)
- [elpa] externals/dash 25be31a 270/426: Release 2.4.2, Phillip Lord, 2015/08/04
- [elpa] externals/dash f86d235 268/426: Fix -cons*, Phillip Lord, 2015/08/04
- [elpa] externals/dash 3eb91fe 280/426: Add `-find-last-index`, Phillip Lord, 2015/08/04
- [elpa] externals/dash ec9afcb 255/426: Merge pull request #54 from Fuco1/index/modify, Phillip Lord, 2015/08/04
- [elpa] externals/dash 930b390 278/426: Add -list function., Phillip Lord, 2015/08/04
- [elpa] externals/dash adaeff7 274/426: Merge pull request #65 from rejeep/same-items-predicate, Phillip Lord, 2015/08/04
- [elpa] externals/dash e6cae0b 279/426: Merge pull request #68 from rejeep/list-function, Phillip Lord, 2015/08/04
- [elpa] externals/dash f18a520 326/426: Release 2.7.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash 7eb8307 283/426: Merge pull request #71 from Fuco1/find-last-index, Phillip Lord, 2015/08/04
- [elpa] externals/dash 7f0fadc 317/426: Add -prodfn, Phillip Lord, 2015/08/04
- [elpa] externals/dash 960b05f 276/426: Set -each, -each-while and -dotimes indent levels to 1.,
Phillip Lord <=
- [elpa] externals/dash d948086 315/426: Add -iteratefn, Phillip Lord, 2015/08/04
- [elpa] externals/dash a09a4b2 318/426: Add code markup for docstrings and fix erroneous whitespace in docstring, Phillip Lord, 2015/08/04
- [elpa] externals/dash 38307e3 223/426: Partition docs, Phillip Lord, 2015/08/04
- [elpa] externals/dash f3b0a55 321/426: Change -predicate-p examples to -predicate? to maintain consistency, Phillip Lord, 2015/08/04
- [elpa] externals/dash 7e4adb5 319/426: Add missing keywords to highlight list, Phillip Lord, 2015/08/04
- [elpa] externals/dash 2ecc073 316/426: Reorder the partition examples to follow more logical order, add tests, Phillip Lord, 2015/08/04
- [elpa] externals/dash eea928a 320/426: Add -replace, Phillip Lord, 2015/08/04
- [elpa] externals/dash d9879e9 329/426: Release 2.8.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash f8873a0 327/426: Update readme-template with changes from last release, Phillip Lord, 2015/08/04
- [elpa] externals/dash 25c114c 330/426: Implementing a shallow copy counterpart to -clone., Phillip Lord, 2015/08/04