From: Rolando Pereira <ei08150@fe.up.pt>
To: emacs-devel@gnu.org
Subject: Add a filter function to emacs
Date: Wed, 7 Jul 2010 20:45:49 +0100 [thread overview]
Message-ID: <20100707194545.GA14668@rolando-desktop> (raw)
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?
next reply other threads:[~2010-07-07 19:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-07 19:45 Rolando Pereira [this message]
2010-07-08 6:36 ` Add a filter function to emacs Geoff Gole
2010-07-08 9:12 ` Deniz Dogan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100707194545.GA14668@rolando-desktop \
--to=ei08150@fe.up.pt \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.