unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Aaron Ecay <aaronecay@gmail.com>
To: Tomi Ollila <tomi.ollila@iki.fi>, David Edmondson <dme@dme.org>,
	notmuch@notmuchmail.org
Subject: Re: [PATCH] emacs: Add `notmuch-jump-to-recent-buffer'.
Date: Tue, 20 Dec 2011 03:12:36 -0500	[thread overview]
Message-ID: <m262hbmzkb.fsf@gmail.com> (raw)
In-Reply-To: <yf662hb1xj0.fsf@taco2.nixu.fi>

Tomi,

On Tue, 20 Dec 2011 10:02:11 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:
> 
> Are the last few lines above working... if without '(' and no
> loop (nor for) function in my emacs (where notmuch loaded).

This is the `loop' macro from cl.el.  It mimics a Common Lisp idiom
which, strangely enough, looks nothing like Lisp but is sort of a DSL
for specifying imperative loops.  You can find the documentation by
doing C-h i (to open the Info manual in Emacs) then following the “CL”
link.

(One of the coolest features is that it is all implemented via macros,
so the compiler automatically unrolls it into a native Lisp loop.  Thus
the performance hit, if any, is negligible.)

> 
> ... memq is also nice; in case used the list should be done beforehand with
> (let* ...

Given the fact about loop, let* isn’t really applicable.

-- 
Aaron Ecay

  reply	other threads:[~2011-12-20  8:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-22 11:51 [PATCH] emacs: Add `notmuch-jump-to-recent-buffer' David Edmondson
2011-12-19 15:57 ` David Edmondson
2011-12-19 17:58   ` Aaron Ecay
2011-12-20  8:02     ` David Edmondson
2011-12-20  8:02 ` Tomi Ollila
2011-12-20  8:12   ` Aaron Ecay [this message]
2011-12-20  8:15   ` David Edmondson

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=m262hbmzkb.fsf@gmail.com \
    --to=aaronecay@gmail.com \
    --cc=dme@dme.org \
    --cc=notmuch@notmuchmail.org \
    --cc=tomi.ollila@iki.fi \
    /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).