[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add a filter function to emacs
From: |
Deniz Dogan |
Subject: |
Re: Add a filter function to emacs |
Date: |
Thu, 8 Jul 2010 11:12:35 +0200 |
2010/7/7 Rolando Pereira <address@hidden>:
> Hello,
>
> I would like to know if there is a reason for the lack of a filter
> function on the emacs code base.
>
> According to the Elisp Cookbook on the Emacs Wiki, it seems that it
> would be simple to implement:
>
> (defun my-filter (condp lst)
> (delq nil
> (mapcar (lambda (x) (and (funcall condp x) x)) lst)))
> ;; From http://www.emacswiki.org/emacs/ElispCookbook
>
> Shouldn't this function be in the regular emacs code base (maybe in the
> lisp/simple.el file)?
>
> Is there any problem with it?
>
>
I brought this up some time ago as I found that many higher-order
functions were missing in (non-cl.el) Emacs. If I remember correctly,
it's the lack of lexical scoping that makes it difficult.
--
Deniz Dogan