[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sweeter Emacs Lisp
From: |
Josh |
Subject: |
Re: Sweeter Emacs Lisp |
Date: |
Sun, 14 Jul 2013 10:14:15 -0700 |
On Sun, Jul 14, 2013 at 9:30 AM, Juanma Barranquero <address@hidden> wrote:
> On Sun, Jul 14, 2013 at 6:18 PM, Josh <address@hidden> wrote:
>
>> (require 'ibuf-macs)
>> (ibuffer-awhen (re-search-backward "regex" nil t)
>> (list it (match-string-no-properties 0)))
>
> Yes, that's Graham's classic "anaphoric when". when-let seems nicer
> because you get to choose the binding name and can easily nest them.
Yes, I agree; I did not intend to suggest that awhen is superior to
when-let, but that canonical versions of such generally useful
functionality should be incorporated into the core where people could
find and use them.
- Re: Sweeter Emacs Lisp, (continued)
Re: Sweeter Emacs Lisp, Miles Bader, 2013/07/15
Re: Sweeter Emacs Lisp, Josh, 2013/07/14
Re: Sweeter Emacs Lisp, Stefan Monnier, 2013/07/15
Re: Sweeter Emacs Lisp, Stefan Monnier, 2013/07/16
Re: Sweeter Emacs Lisp, Andreas Schwab, 2013/07/14
Re: Sweeter Emacs Lisp, Miles Bader, 2013/07/15