From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joaotavora@gmail.com (=?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=) Newsgroups: gmane.emacs.devel Subject: Re: [elpa] master 96e61a9 26/26: Add packages/darkroom by merging its upstream subtree Date: Sun, 21 Dec 2014 20:23:05 +0000 Message-ID: References: <20141219190721.4296.62862@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1419193424 2494 80.91.229.3 (21 Dec 2014 20:23:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Dec 2014 20:23:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 21 21:23:37 2014 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 1Y2n2M-0008VR-Pp for ged-emacs-devel@m.gmane.org; Sun, 21 Dec 2014 21:23:34 +0100 Original-Received: from localhost ([::1]:38238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2n2M-0002Qf-0q for ged-emacs-devel@m.gmane.org; Sun, 21 Dec 2014 15:23:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2n24-0002QN-HV for emacs-devel@gnu.org; Sun, 21 Dec 2014 15:23:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y2n1z-0005Dv-3h for emacs-devel@gnu.org; Sun, 21 Dec 2014 15:23:16 -0500 Original-Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:42618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2n1y-0005Dp-Sq for emacs-devel@gnu.org; Sun, 21 Dec 2014 15:23:11 -0500 Original-Received: by mail-wi0-f181.google.com with SMTP id r20so6284649wiv.2 for ; Sun, 21 Dec 2014 12:23:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=CPXdFSVMh2kNG5mV5+CaFibxYNggcbmWWhIH01634Ow=; b=efWKI3fk6bRxPz2klb8XnqsNP3fl0u4TBfiFP1Bi/waafx3FDGnnNqawO2B4il4TCg u/YQkBtlQk+JsGnJhs4yAjIKvtW5L8vk50phivgSvnnmLTfX9SdH3Il1TbKx52thfDov VZ6cDBfxyL2HIMlcNi46UsEVsKuqXRrKK/cbyQ/jW+usmM87rUGD3S2IGaD9f+Im0o+9 gfrLHH413AJXCFBfX6Z+6eR0ob3VEYtVILEwKHEvQ1Q9WyUGeJz/78RBE//nPHLocHq5 i2eq4grkVJvbIlSzAUv0TaBQ9Fsnc/hw82dFZsov5XLyGlTZcfuJGdRYblbNQ4Geeut0 Yotw== X-Received: by 10.194.184.171 with SMTP id ev11mr34515755wjc.119.1419193390318; Sun, 21 Dec 2014 12:23:10 -0800 (PST) Original-Received: from king.yourcompany.com (31.57.37.188.rev.vodafone.pt. [188.37.57.31]) by mx.google.com with ESMTPSA id pu3sm21091309wjc.14.2014.12.21.12.23.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Dec 2014 12:23:09 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Fri, 19 Dec 2014 16:48:36 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (darwin) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::235 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:180442 Archived-At: Stefan Monnier writes: >> + (mapc #'(lambda (w) >> + (with-selected-window w >> + (darkroom--set-margins))) >> + (get-buffer-window-list (current-buffer)))) > > I recommend the use of `dolist' instead of `mapc' when the body of the > loop is provided by an anonymous function and we're looping over a list. > > If the compiler could tell that we're looping over a list, it could > auto-transform the mapc call into a dolist (which is slightly more > efficient), but having to expend it to a loop that handles both lists > and arrays (like `mapc' does) makes the resulting code no more efficient > than just using `mapc'. > Alright, makes sense. What if I use `(cl-loop for w in ...list...)` which is my preferred cl-idiom anyway? Jo=C3=A3o