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: Elpa packages and macro dependencies. Date: Mon, 20 Oct 2014 15:04:25 -0400 Message-ID: References: <87h9yz5d9h.fsf@yahoo.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413831893 25618 80.91.229.3 (20 Oct 2014 19:04:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2014 19:04:53 +0000 (UTC) Cc: Nicolas Richard , emacs-devel To: Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 20 21:04:47 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 1XgIG6-0007b2-GE for ged-emacs-devel@m.gmane.org; Mon, 20 Oct 2014 21:04:46 +0200 Original-Received: from localhost ([::1]:46408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgIG5-0001kX-Im for ged-emacs-devel@m.gmane.org; Mon, 20 Oct 2014 15:04:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgIFt-0001aC-Nn for emacs-devel@gnu.org; Mon, 20 Oct 2014 15:04:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgIFm-00087X-9D for emacs-devel@gnu.org; Mon, 20 Oct 2014 15:04:33 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:40294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgIFm-00087T-6E for emacs-devel@gnu.org; Mon, 20 Oct 2014 15:04:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFpY87/2dsb2JhbABZgwaDSsA9gRcXdIImAQEEViMQCw4mEhQYDSSIDNIZF456B4Q4BKkZgWqDTCE X-IPAS-Result: ArUGAIDvNVNFpY87/2dsb2JhbABZgwaDSsA9gRcXdIImAQEEViMQCw4mEhQYDSSIDNIZF456B4Q4BKkZgWqDTCE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="94666693" Original-Received: from 69-165-143-59.dsl.teksavvy.com (HELO pastel.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 20 Oct 2014 15:04:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 5B58B3EBC; Mon, 20 Oct 2014 15:04:25 -0400 (EDT) In-Reply-To: (Artur Malabarba's message of "Mon, 20 Oct 2014 10:33:58 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:175606 Archived-At: > (with-demoted-errors > (load (expand-file-name autoload-name pkg-dir) nil t) > ;; Call `load' on all files in `pkg-dir' which correspond to > ;; provided features. Skip autoloads file since we already > ;; evaluated it above. > (mapcar (lambda (file) (load (expand-file-name file pkg-dir) nil t)) > ;; The autoloads file is usually not a feature, but better stay safe. > (remove autoload-name (package-list-loaded-files pkg-dir)))) Pretty hackish, but it might work. We might also want to force the `autoload' calls in autoload-name to replace the existing definitions with autoloads. Stefan