From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: subr-x on Elpa Date: Wed, 20 May 2015 13:32:53 +0100 Message-ID: Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1432125199 27387 80.91.229.3 (20 May 2015 12:33:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2015 12:33:19 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 20 14:33:08 2015 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 1Yv3BL-0005vc-Ew for ged-emacs-devel@m.gmane.org; Wed, 20 May 2015 14:33:07 +0200 Original-Received: from localhost ([::1]:51726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv3BK-00042n-Rq for ged-emacs-devel@m.gmane.org; Wed, 20 May 2015 08:33:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv3BD-00042h-Bq for emacs-devel@gnu.org; Wed, 20 May 2015 08:33:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yv3B9-0003un-HZ for emacs-devel@gnu.org; Wed, 20 May 2015 08:32:59 -0400 Original-Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:34823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv3B9-0003tb-AF for emacs-devel@gnu.org; Wed, 20 May 2015 08:32:55 -0400 Original-Received: by labbd9 with SMTP id bd9so71836986lab.2 for ; Wed, 20 May 2015 05:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:date:message-id:subject:from:to :content-type; bh=9OpTP151un2WH0Hl8HxLE8HU2ynjuWIQbEOpCNenyi8=; b=upSKgChcl+lvzjA4rAtjQd1e9gUip2zkRV4er6SVnhaVihxQHnlyayKZ4BXkgKKeH7 9FiJs1+kVmNmHn/+nxYF22yhuhTJcR8rmDVSSi9Nu1gAr7mtJ+8Cexfof7x/mfR/jUMH kWYyfgpWhEvXWN4kIeM6SQYDOBnjbOWDuPHMRWlDiX6D1zKIJaCFCPFGNf4iIayLV3hL WGth0Xh1FniO3j1l/YtkoHAFI2OPT+0l/9bGvhG1ek/yOrAVQi3ZWcJlpi/VHrfCUXnJ yJx5v3lhtu0igyNLdDLluop7y68M2bYCgEF+sv66afudjyNLlLJatVJlpcOaqHhBzwkG hfkQ== X-Received: by 10.152.7.239 with SMTP id m15mr2894818laa.95.1432125173508; Wed, 20 May 2015 05:32:53 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Wed, 20 May 2015 05:32:53 -0700 (PDT) X-Google-Sender-Auth: w1AGDAT4PnkazznON_jvC2WzZA4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22c 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:186650 Archived-At: subr-x has a ton of useful macros and functions, and it would be nice if it were available to packages that support emacs versions down to 24.1. So I'd like to make it into a proper package and put it on GNU Elpa, if possible. AFAICT, the only place where subr-x won't work with 24.1 is in the `when-let' macro, which uses `macroexp-progn'. But `macroexp-progn' is a very simple function, so inlining its definition is trivial. If I do that, all of the tests in subr-x-tests.el pass with Emacs 24.1 (except for one, which explicitly uses cl-reduce, but that has nothing to do with the function being tested, and even that one passes if I load cl-lib too). If I do that, would it be viable to offer subr-x on GNU Elpa as well? (of course it would not be removed from lisp/emacs-lisp dir)