diff options
| author | Stefan Monnier | 2014-12-04 15:57:23 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2014-12-04 15:57:23 -0500 |
| commit | d08f4f8fc5219324ac352c6d89f0db5c6a18ce32 (patch) | |
| tree | 59a24f34612a6a8137582543c352a3e1af54906f | |
| parent | 6194477a622ce9293162d16a7ba98c9cfc18d124 (diff) | |
| download | emacs-d08f4f8fc5219324ac352c6d89f0db5c6a18ce32.tar.gz emacs-d08f4f8fc5219324ac352c6d89f0db5c6a18ce32.zip | |
* lisp/subr.el (filter): Remove. Use `cl-remove-if-not' or `seq-filter'.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/subr.el | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1f0d7520b60..19a30202f3b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-12-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * subr.el (filter): Remove. Use `cl-remove-if-not' or `seq-filter'. | ||
| 4 | |||
| 1 | 2014-12-04 Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | 2014-12-04 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 6 | ||
| 3 | * net/shr.el (shr--extract-best-source): Ignore non-text children. | 7 | * net/shr.el (shr--extract-best-source): Ignore non-text children. |
diff --git a/lisp/subr.el b/lisp/subr.el index 4cc80e9be6f..6ce02b79a0a 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -222,11 +222,6 @@ Then evaluate RESULT to get return value, default nil. | |||
| 222 | ,@(if (cdr (cdr spec)) | 222 | ,@(if (cdr (cdr spec)) |
| 223 | `((setq ,(car spec) nil) ,@(cdr (cdr spec)))))))) | 223 | `((setq ,(car spec) nil) ,@(cdr (cdr spec)))))))) |
| 224 | 224 | ||
| 225 | (defmacro filter (condp lst) | ||
| 226 | "Return the list consisting of elements in LST for which CONDP is not nil." | ||
| 227 | `(delq nil | ||
| 228 | (mapcar (lambda (x) (and (funcall ,condp x) x)) ,lst))) | ||
| 229 | |||
| 230 | (defmacro dotimes (spec &rest body) | 225 | (defmacro dotimes (spec &rest body) |
| 231 | "Loop a certain number of times. | 226 | "Loop a certain number of times. |
| 232 | Evaluate BODY with VAR bound to successive integers running from 0, | 227 | Evaluate BODY with VAR bound to successive integers running from 0, |