From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Sweeter Emacs Lisp Date: Tue, 16 Jul 2013 16:57:25 -0400 Message-ID: References: <8738rh6ftk.fsf@gnu.org> <87wqor45he.fsf@catnip.gol.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374008259 602 80.91.229.3 (16 Jul 2013 20:57:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jul 2013 20:57:39 +0000 (UTC) Cc: fgallina@gnu.org, emacs-devel , Miles Bader To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 16 22:57:40 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 1UzCJX-0000EU-DA for ged-emacs-devel@m.gmane.org; Tue, 16 Jul 2013 22:57:39 +0200 Original-Received: from localhost ([::1]:43876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzCJX-0001oz-4O for ged-emacs-devel@m.gmane.org; Tue, 16 Jul 2013 16:57:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzCJT-0001op-6X for emacs-devel@gnu.org; Tue, 16 Jul 2013 16:57:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzCJS-0000Zc-7p for emacs-devel@gnu.org; Tue, 16 Jul 2013 16:57:35 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:58690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzCJP-0000Xj-53; Tue, 16 Jul 2013 16:57:31 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r6GKvQt9025958; Tue, 16 Jul 2013 16:57:27 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 7BB97AE2D2; Tue, 16 Jul 2013 16:57:25 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Tue, 16 Jul 2013 13:09:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4641=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4641> : streams <1001505> : uri <1478597> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:161947 Archived-At: >> You can (require 'cl-lib) to get it. It still can't be used in >> pre-loaded code, but that's the only restriction, > That's a policy, and not for technical reasons, is it? Mostly policy, indeed. Using it in "early pre-loaded code" has some technical problems related to bootstrapping, but other than that I think we could preload cl-lib without too much trouble, but policy-wise I'd rather not to do (at least not for now). > The past two weeks, while hacking desktop.el, often I would've loved > to require 'cl-lib to use sequence functions. I didn't, because > desktop.el, though not pre-loaded, it is so commonly used that loading > cl-lib from it would be almost like forcing cl-lib into everybody's > Emacs. Feel free to (require 'cl-lib) for desktop.el since desktop.el is not preloaded. The whole point of the big "cl-" rename and the partial rewrite of some parts of CL's code for cl-lib was specifically so that most packages can use cl-lib's functions rather than tip-toe around the mapcan. Stefan