From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PT Newsgroups: gmane.emacs.help Subject: Function binders in Elisp? Date: Sun, 17 Apr 2005 19:47:53 +0200 Organization: Aioe.org NNTP Server Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 Content-Transfer-Encoding: Quoted-Printable X-Trace: sea.gmane.org 1113760017 23591 80.91.229.2 (17 Apr 2005 17:46:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Apr 2005 17:46:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 17 19:46:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DNDqf-0000ar-0a for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Apr 2005 19:46:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNDub-0006FH-HN for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Apr 2005 13:50:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-stu1.dfn.de!news.belwue.de!news.bawue.net!koehntopp.de!news.musoftware.de!w3bhost.de!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: cxOZXGOdfEQ28NezmiRYgg.domitilla.aioe.org Original-X-Complaints-To: abuse@aioe.org Original-NNTP-Posting-Date: Sun, 17 Apr 2005 17:46:51 +0000 (UTC) User-Agent: Opera M2/7.54 (Win32, build 3865) Original-Xref: shelby.stanford.edu gnu.emacs.help:130186 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25754 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25754 For predicates I usually use lambda functions. For example: (require 'cl) (remove-if (lambda (x) (> x 2)) '(1 2 3 4)) I'm not a lisp guru, therefore I often wonder if there are standard bind= er = functions in emacs lisp like for example bind2nd in C++ STL which = transforms a binary function into an unary function: find_if(L.begin(), L.end(), bind2nd(greater(), 2)) // C++ So that I can write something like this: (remove-if (bind-second '< 2) '(1 2 3 4))