emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Add a filter function to emacs


From: Rolando Pereira
Subject: Add a filter function to emacs
Date: Wed, 7 Jul 2010 20:45:49 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]