emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sweeter Emacs Lisp


From: Juanma Barranquero
Subject: Re: Sweeter Emacs Lisp
Date: Sun, 14 Jul 2013 18:30:05 +0200

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.

   J



reply via email to

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