From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josh Newsgroups: gmane.emacs.devel Subject: Re: Sweeter Emacs Lisp Date: Sun, 14 Jul 2013 10:14:15 -0700 Message-ID: References: <8738rh6ftk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1373822092 9726 80.91.229.3 (14 Jul 2013 17:14:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Jul 2013 17:14:52 +0000 (UTC) Cc: fgallina@gnu.org, emacs-devel To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 14 19:14:52 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 1UyPsp-00065x-2s for ged-emacs-devel@m.gmane.org; Sun, 14 Jul 2013 19:14:51 +0200 Original-Received: from localhost ([::1]:40784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyPso-00007m-LS for ged-emacs-devel@m.gmane.org; Sun, 14 Jul 2013 13:14:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyPsl-00006Y-TW for emacs-devel@gnu.org; Sun, 14 Jul 2013 13:14:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyPsk-0001zX-JP for emacs-devel@gnu.org; Sun, 14 Jul 2013 13:14:47 -0400 Original-Received: from mail-qa0-f44.google.com ([209.85.216.44]:56013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyPsk-0001zN-Fj for emacs-devel@gnu.org; Sun, 14 Jul 2013 13:14:46 -0400 Original-Received: by mail-qa0-f44.google.com with SMTP id o13so1198822qaj.17 for ; Sun, 14 Jul 2013 10:14:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=Wh0BlYjIwsgM9Q7r6gqnqsosGGod1URFW4B4Iv+q9/4=; b=JPnwW5+BO29lJuLqg/rZs54Rsqytb1BnOUjti6JoBEz+mtaVYmIBuZQPcXuL+vhZYC OkycRqXrDjMInuzE3k833Vz9MMA4OvB/Ao3VzRp/czaVG/2hcvX1kD59waDZAWzuL++v Ql62xyrjtfoQOiK34K+jANc2iVwulf+5IpB/RAaMJiw4mHYXWOwd9AvzdaReiylJVYv1 LO1rfap32BmnaTNG5D1+FXYn33NymZHAPfOkTJ9FerbudaTw+xuuqArRqsIAbkGUrKY6 +ITTd5kQDV768i0ng/V/V98K32kmJwFvT4kDuunGEUMJY6YtRrDb3zw5KPqX3sTCY1C6 T7Sw== X-Received: by 10.49.30.104 with SMTP id r8mr45328379qeh.27.1373822086123; Sun, 14 Jul 2013 10:14:46 -0700 (PDT) Original-Received: by 10.49.30.41 with HTTP; Sun, 14 Jul 2013 10:14:15 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: PhCkC64F8FSmeuD268zPBuIghso X-Gm-Message-State: ALoCoQm4FTWLIJKe+7vw/QmtxQGVnonkXXB1IRz6SMjhgV2AcsmdfOL8gnikWBiu7/H1L43Ji/58 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.216.44 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:161878 Archived-At: On Sun, Jul 14, 2013 at 9:30 AM, Juanma Barranquero wrote: > 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. 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.