From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Sweeter Emacs Lisp Date: Sun, 14 Jul 2013 18:30:05 +0200 Message-ID: References: <8738rh6ftk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1373819453 18245 80.91.229.3 (14 Jul 2013 16:30:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Jul 2013 16:30:53 +0000 (UTC) Cc: fgallina@gnu.org, emacs-devel To: Josh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 14 18:30:55 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UyPCI-00049Y-Sh for ged-emacs-devel@m.gmane.org; Sun, 14 Jul 2013 18:30:54 +0200 Original-Received: from localhost ([::1]:60536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyPCI-0001Rm-Gq for ged-emacs-devel@m.gmane.org; Sun, 14 Jul 2013 12:30:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyPCF-0001Rf-Uh for emacs-devel@gnu.org; Sun, 14 Jul 2013 12:30:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyPCE-00047m-Sb for emacs-devel@gnu.org; Sun, 14 Jul 2013 12:30:51 -0400 Original-Received: from mail-ea0-x22e.google.com ([2a00:1450:4013:c01::22e]:37255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyPCA-00046P-6u; Sun, 14 Jul 2013 12:30:46 -0400 Original-Received: by mail-ea0-f174.google.com with SMTP id o10so7183890eaj.19 for ; Sun, 14 Jul 2013 09:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=v9B082D9HSdhnHebBIHnNyX0YmJXg/G4FMaM3MIICik=; b=0yecW5a1r77BDGZPlXJl8C//GzU/YUNyKeSsoBJkTNgl3QHiNcNhabQX1m7jgtow4u i0InRhJrW6+4stDjcNy0XnklXTgvA00o0AvnxMhOIHjRuFSKN0nYwXY+rZLHQIZAMdnh RUKbf8WLq586mikjuRDR4ZTLc+D4RJCRYrBxe1wn+T/xqk8VJTtBCig1+9y8B8MYlkDm 8JWHLoTedQUEnZF3LKTaDoBMNTg7AlgvLNDpmgC9hRT8TkJZbqUh/+xtLhTurj1w4VsC FxILdgTdfU0KCTIdcHhA+knUg7bljTR97s486rug4+RvTm9+LLP+l+cZ11F+nArcrjd3 +KMA== X-Received: by 10.15.25.2 with SMTP id k2mr54337590eeu.99.1373819445401; Sun, 14 Jul 2013 09:30:45 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Sun, 14 Jul 2013 09:30:05 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161877 Archived-At: On Sun, Jul 14, 2013 at 6:18 PM, Josh 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