[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash f800e2e 186/316: Prefer declare forms over lisp-in
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dash f800e2e 186/316: Prefer declare forms over lisp-indent-function |
Date: |
Mon, 15 Feb 2021 15:57:55 -0500 (EST) |
branch: externals/dash
commit f800e2e6537f0a16a4041f488b14f10706a61dff
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Prefer declare forms over lisp-indent-function
* dash.el (-each, -each-indexed, -each-while, -dotimes): Use declare
forms to set preferred indentation.
---
dash.el | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/dash.el b/dash.el
index 866a29b..58cbdef 100644
--- a/dash.el
+++ b/dash.el
@@ -91,10 +91,9 @@ Note: `it' is not required in each form."
(defun -each (list fn)
"Call FN with every item in LIST. Return nil, used for side-effects only."
+ (declare (indent 1))
(--each list (funcall fn it)))
-(put '-each 'lisp-indent-function 1)
-
(defalias '--each-indexed '--each)
(defun -each-indexed (list fn)
@@ -103,8 +102,8 @@ Note: `it' is not required in each form."
In the anaphoric form `--each-indexed', the index is exposed as symbol
`it-index'.
See also: `-map-indexed'."
+ (declare (indent 1))
(--each list (funcall fn it-index it)))
-(put '-each-indexed 'lisp-indent-function 1)
(defmacro --each-while (list pred &rest body)
"Anaphoric form of `-each-while'."
@@ -124,10 +123,9 @@ See also: `-map-indexed'."
(defun -each-while (list pred fn)
"Call FN with every item in LIST while (PRED item) is non-nil.
Return nil, used for side-effects only."
+ (declare (indent 2))
(--each-while list (funcall pred it) (funcall fn it)))
-(put '-each-while 'lisp-indent-function 2)
-
(defmacro --each-r (list &rest body)
"Anaphoric form of `-each-r'."
(declare (debug (form body))
@@ -184,10 +182,9 @@ Return nil, used for side-effects only."
(defun -dotimes (num fn)
"Repeatedly calls FN (presumably for side-effects) passing in integers from
0 through NUM-1."
+ (declare (indent 1))
(--dotimes num (funcall fn it)))
-(put '-dotimes 'lisp-indent-function 1)
-
(defun -map (fn list)
"Return a new list consisting of the result of applying FN to the items in
LIST."
(mapcar fn list))
- [elpa] externals/dash aa76fb3 201/316: Copy-edit README, (continued)
- [elpa] externals/dash aa76fb3 201/316: Copy-edit README, ELPA Syncer, 2021/02/15
- [elpa] externals/dash ac1f66a 215/316: ; Fix omission in last change, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 8c47f17 038/316: Add function signatures for aliases of built-in functions (#201), ELPA Syncer, 2021/02/15
- [elpa] externals/dash 38d44ed 128/316: Implement --doto, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 6514359 126/316: Merge pull request #264 from basil-conto/blc/reduce, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 258c324 140/316: Release 2.16.0, ELPA Syncer, 2021/02/15
- [elpa] externals/dash fdf6140 158/316: Merge pull request #322 from wbolster/zip-pair-doc-clarification, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 721436b 168/316: chore: release 2.17.0, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 562084e 171/316: Fix another typo and its copies, ELPA Syncer, 2021/02/15
- [elpa] externals/dash ea4a4cc 172/316: Merge pull request #338 from tarsiiformes/typos, ELPA Syncer, 2021/02/15
- [elpa] externals/dash f800e2e 186/316: Prefer declare forms over lisp-indent-function,
ELPA Syncer <=
- [elpa] externals/dash 2da2304 188/316: Remove generated manual dash.info, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 713fd6c 193/316: Merge pull request #354 from blc/takedrop, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 770121b 195/316: Update copyright notices with HTTPS links, ELPA Syncer, 2021/02/15
- [elpa] externals/dash b4ab366 194/316: Merge pull request #355 from blc/info, ELPA Syncer, 2021/02/15
- [elpa] externals/dash e8ed3d6 196/316: * watch-tests.watchr: Remove file., ELPA Syncer, 2021/02/15
- [elpa] externals/dash 814c407 198/316: * dev/.nosearch: Document file's purpose., ELPA Syncer, 2021/02/15
- [elpa] externals/dash 018d30c 200/316: Update all library headers for 2021, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 2200db0 204/316: Various Texinfo manual improvements, ELPA Syncer, 2021/02/15
- [elpa] externals/dash e8cc2ec 205/316: Merge pull request #358 from blc/texi, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 2a94ea5 209/316: Remove unnecessary helper function, ELPA Syncer, 2021/02/15