all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: emacs-devel@gnu.org
Subject: Re: cl-pushnew and other functions
Date: Mon, 02 Jul 2012 09:25:50 +0200	[thread overview]
Message-ID: <m2vci6oc8x.fsf@igel.home> (raw)
In-Reply-To: <m2r4suvn1i.fsf@newartisans.com> (John Wiegley's message of "Sun,  01 Jul 2012 22:50:49 -0500")

"John Wiegley" <johnw@newartisans.com> writes:

> Before:
>
>     (defun gnus-harvest-bbdb-complete-stub (stub)
>       (delete
>        nil
>        (mapcar
>         #'(lambda (record)
>             (let ((nets (bbdb-record-mail record)))
>               (and nets
>                    (format "%s <%s>" (bbdb-record-name record)
>                            (car nets)))))
>         (bbdb-search (bbdb-records) stub nil stub))))
>
> After:
>
>     (defun gnus-harvest-bbdb-complete-stub (stub)
>       (loop for record in (bbdb-search (bbdb-records) stub nil stub)
>             for nets = (bbdb-record-mail record)
>             when nets
>             collect (format "%s <%s>" (bbdb-record-name record) (car nets))))
>
> I breathed a sigh of relief there, just reading that again.

I find the latter rather un-lispy.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



  reply	other threads:[~2012-07-02  7:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-29  4:38 cl-pushnew and other functions John Wiegley
2012-06-29 16:53 ` Stefan Monnier
2012-06-29 20:36   ` PJ Weisberg
2012-06-29 22:17   ` John Wiegley
2012-06-30  4:16     ` Stefan Monnier
2012-06-30  5:44       ` Helmut Eller
2012-07-02  3:50       ` John Wiegley
2012-07-02  7:25         ` Andreas Schwab [this message]
2012-07-04  5:04       ` John Wiegley
2012-07-04 12:31         ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=m2vci6oc8x.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=emacs-devel@gnu.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.