From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: [PATCH] org-contacts.el: add expire feature Date: Thu, 30 May 2013 12:36:42 +0200 Message-ID: <87ip20vjnp.fsf@tanger.home> References: <87li6yx8u9.fsf@news.tumashu-localhost.org> <87wqqhlchq.fsf@tanger.home> <8738t5xpwe.fsf@news.tumashu-localhost.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui0Ai-0000pG-QE for emacs-orgmode@gnu.org; Thu, 30 May 2013 06:33:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui0Ae-0000sc-0O for emacs-orgmode@gnu.org; Thu, 30 May 2013 06:33:28 -0400 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:58534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui0Ad-0000sY-Qm for emacs-orgmode@gnu.org; Thu, 30 May 2013 06:33:23 -0400 Received: by mail-we0-f179.google.com with SMTP id m46so69740wev.38 for ; Thu, 30 May 2013 03:33:23 -0700 (PDT) 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: Feng Shu Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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))=20 >> list) >> #+END_SRC > > Thanks! > > Is this possible? > > test1@g =3D 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. =2D-=20 Daimrod/Greg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAEBAgAGBQJRpyvAAAoJEBNzVHcrZRiUfqsP/RPd5AL6gKStISCSlRgSX9h7 2Spk/9daVcBwwD1V9pcZ0iPnLldJPvaykG6UFMLm02ExpfZlzpB1i2yazgRVX9Uf xYGTMhteAYEwhyeh1922w57hz3PZ85ySqJsDQIT+L2wEVHmB4AT9KeN/XO+24MRX Sg+DEseZ4O8jkPv/YmIaz7iXLSBGWXw1p6B0JbY4v5dWeHvC92U5c+AqTGa7UmeG FXHMqSyThoBxGA5znF4YNfl9aaszRQnGLekKEdJFmfgcDDXTonvZ6JlJk3iAKumg rPAzT4cB5Lb8ugcrO82R5V2Hadaduqptb9M4jWkRuNpSRQgcb9H/QV4EhZP8t0nd +4Z5/mpAL4dX8xtt0YoVVz4j6P+/jibKx5+COXN7aNHRG/FXmUZlmqaAwTthYaQJ EKM931jrG4QEAweWDY4v/J1LIQoDREmegR2+3bE8zNdlmbcWPMHu9s4etak+HrDg EaGw0rg1umxHFnUu2ZC8shzEe+XzBOaaB8F76nFzDSfkVgBtN0qAz/fVBUVgN5tX oI0y/t7lo+3Gn0rAO7dOfDIjkRgd/zZhKSMuRVtIPLydA4GPbliYvnLDKMqlg3gC 5Zf3PRAYby1O78KxPHNA87ExTqtWd8v/y6uistKMTB2dvGwihoG8p9515nqOY6/H 8s+FCfxl9JHoXpZkC00D =c811 -----END PGP SIGNATURE----- --=-=-=--