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: Lexical binding Date: Sat, 2 Apr 2011 20:57:30 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1301770704 10058 80.91.229.12 (2 Apr 2011 18:58:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2011 18:58:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 02 20:58:21 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q661c-0008Lf-Pi for ged-emacs-devel@m.gmane.org; Sat, 02 Apr 2011 20:58:20 +0200 Original-Received: from localhost ([127.0.0.1]:34690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q661c-0000Ux-Ak for ged-emacs-devel@m.gmane.org; Sat, 02 Apr 2011 14:58:20 -0400 Original-Received: from [140.186.70.92] (port=49643 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q661T-0000Ql-OF for emacs-devel@gnu.org; Sat, 02 Apr 2011 14:58:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q661S-0007lI-SB for emacs-devel@gnu.org; Sat, 02 Apr 2011 14:58:11 -0400 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:50059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q661S-0007l8-O8 for emacs-devel@gnu.org; Sat, 02 Apr 2011 14:58:10 -0400 Original-Received: by gwaa12 with SMTP id a12so2187545gwa.0 for ; Sat, 02 Apr 2011 11:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=kn3BIMVU9PGEXUKPdDd0ySbuLXReAJ0hg3Qxe9Gzmjc=; b=xPay58ani/GkG+96pPrLnKQxQITjgBFcetxxT7D9rP5jG4A5eCs50nong+r6HT+pYn aiws9wNgvevPdgjCnmTb3eQaG5ZkMDJVpBC/H1ypWyXN5HPoCoHhwQh3Bkltc5EAVJ04 FX6BmCKdOk2pK5HgqK+YBm6EeE/qc67UPRuqE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=CoJ3i53W1Q1E00WoHDbs0JAZnEkKD6yPwv30GrMmKplK4YkVhWUh4p9Y3g33hVGEG7 HEb4Try+zot/C4KJMF6+OPf6CteMW2KO50ElWZi9r8A/G6D3vw/G4BLtxlWiYZ/FV9aP 8CLhLi1f0/buMBXaVGi6yidV0KkT8JtQJgylE= Original-Received: by 10.236.200.130 with SMTP id z2mr7581770yhn.34.1301770690100; Sat, 02 Apr 2011 11:58:10 -0700 (PDT) Original-Received: by 10.147.182.17 with HTTP; Sat, 2 Apr 2011 11:57:30 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138069 Archived-At: On Sat, Apr 2, 2011 at 20:50, Juanma Barranquero wrote: > OK, perhaps I simplified too much. The original problem is in this > function from help-fns.el: Forget the previous message, which is about `dolist'. I mixed my examples. The original trouble with `loop' is that, in a loop like this one, with destructuring (defsubst my--bs-file-width () (- (window-width) (loop for (name width . rest) in bs-attributes-list if (numberp width) sum width) (bs--get-name-length) 1)) `name' is just a placeholder (as it is rest). I'm interested just in `width'. And there's no way to write that loop as is without warnings. Interestingly, `rest' does not produce a warning. I suppose I can rework the loop to avoid the restructuring, but it seems like a loss of clarity. =C2=A0 =C2=A0 Juanma