[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] org-contacts.el: add expire feature
From: |
Daimrod |
Subject: |
Re: [O] [PATCH] org-contacts.el: add expire feature |
Date: |
Thu, 30 May 2013 12:36:42 +0200 |
Feng Shu <address@hidden> writes:
> Daimrod <address@hidden> 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?
>
> address@hidden = address@hidden
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.
--
Daimrod/Greg
signature.asc
Description: PGP signature
Re: [O] [PATCH] org-contacts.el: add expire feature, Karl Voit, 2013/05/30
Re: [O] [PATCH] org-contacts.el: add expire feature, Daimrod, 2013/05/30
[O] Handling outdated contact information (was: [PATCH] org-contacts.el: add expire feature), Karl Voit, 2013/05/31
Re: [O] Handling outdated contact information, Daimrod, 2013/05/31