From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: Re: [PATCH] org-contacts.el: add expire feature Date: Thu, 30 May 2013 18:49:20 +0800 Message-ID: <871u8o4ua7.fsf@news.tumashu-localhost.org> References: <87li6yx8u9.fsf@news.tumashu-localhost.org> <87wqqhlchq.fsf@tanger.home> <8738t5xpwe.fsf@news.tumashu-localhost.org> <87ip20vjnp.fsf@tanger.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui0RI-0000QJ-OE for emacs-orgmode@gnu.org; Thu, 30 May 2013 06:50:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui0RE-0006Np-73 for emacs-orgmode@gnu.org; Thu, 30 May 2013 06:50:36 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:62428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui0RD-0006Nl-W3 for emacs-orgmode@gnu.org; Thu, 30 May 2013 06:50:32 -0400 Received: by mail-pd0-f177.google.com with SMTP id u11so132650pdi.22 for ; Thu, 30 May 2013 03:50:31 -0700 (PDT) In-Reply-To: <87ip20vjnp.fsf@tanger.home> (daimrod@gmail.com's message of "Thu, 30 May 2013 12:36:42 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daimrod Cc: emacs-orgmode@gnu.org Daimrod writes: > Feng Shu writes: > >> Daimrod writes: >> >>> >>> This is not very idiomatic elisp, I would write something more like: >>> #+BEGIN_SRC emacs-lisp >>> (remove-if (lambda (el) >>> (member el expire-list)) >>> list) >>> #+END_SRC >> >> Thanks! >> >> Is this possible? >> >> test1@g = test1@gmail.com > > Yes, you could do it like this: > #+BEGIN_SRC emacs-lisp > (remove-if (lambda (el) > (find-if (lambda (x) > (string-match-p x el)) > expire-list)) > list) > #+END_SRC > > This way you can use regular expressions in the ignore list. It's very power,I will copy it! Thanks! --