unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jed Brown <jed@59A2.org>
To: Carl Worth <cworth@cworth.org>, Manuel Hermenegildo <herme@fi.upm.es>
Cc: David Bremner <bremner@pivot.cs.unb.ca>, notmuch@notmuchmail.org
Subject: Re: [Orgmode] Notmuch: An emacs interface for fast global search and tagging of email
Date: Thu, 10 Dec 2009 13:26:25 +0100	[thread overview]
Message-ID: <87ein3vwum.fsf@59A2.org> (raw)
In-Reply-To: <87aaxr6hpm.fsf@yoom.home.cworth.org>

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

  reply	other threads:[~2009-12-10 12:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87d43gqf1t.fsf@yoom.home.cworth.org>
     [not found] ` <857929.5376.qm@web28310.mail.ukl.yahoo.com>
     [not found]   ` <f35dbb950911180613k3b3fd39du70bda2c6190bcde0@mail.gmail.com>
     [not found]     ` <7A89F1FA-6DCC-43BE-8937-6715706B1CBC@gmail.com>
     [not found]       ` <87zl6j5q44.fsf@yoom.home.cworth.org>
     [not found]         ` <87my1x5q7y.wl%bremner@pivot.cs.unb.ca>
     [not found]           ` <19229.26805.811027.494933@gazelle.local>
     [not found]             ` <87y6ld2860.fsf@yoom.home.cworth.org>
2009-12-09  9:01               ` [Orgmode] Notmuch: An emacs interface for fast global search and tagging of email Manuel Hermenegildo
2009-12-09 20:00                 ` Carl Worth
2009-12-10 12:26                   ` Jed Brown [this message]
2009-12-10 17:15                     ` Mark Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ein3vwum.fsf@59A2.org \
    --to=jed@59a2.org \
    --cc=bremner@pivot.cs.unb.ca \
    --cc=cworth@cworth.org \
    --cc=herme@fi.upm.es \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).