Re: [notmuch] [Orgmode] Notmuch: An emacs interface for fast global search and tagging of email

Subject: Re: [notmuch] [Orgmode] Notmuch: An emacs interface for fast global search and tagging of email

Date: Thu, 10 Dec 2009 13:26:25 +0100

To: Carl Worth, Manuel Hermenegildo

Cc: David Bremner, notmuch@notmuchmail.org

From: Jed Brown


On Wed, 09 Dec 2009 12:00:21 -0800, Carl Worth <cworth@cworth.org> wrote:
> 1. Rewriting the code to not use apply-partially

1b. Use apply-partially

(defun apply-partially (fun &rest args)
  "Return a function that is a partial application of FUN to ARGS.
ARGS is a list of the first N arguments to pass to FUN.
The result is a new function which does the same as FUN, except that
the first N arguments are fixed at the values with which this function
was called."
  (lexical-let ((fun fun) (args1 args))
    (lambda (&rest args2) (apply fun (append args1 args2)))))


Jed

Thread: