emacs-devel
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]