From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Interoperation between package managers Date: Thu, 24 Aug 2017 11:04:06 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87tw0xknx5.fsf@lifelogs.com> References: <5e6faf18-5ace-80a4-9508-c723fedcbca4@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503587101 22240 195.159.176.226 (24 Aug 2017 15:05:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2017 15:05:01 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 24 17:04:52 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dktgY-0004xH-JK for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2017 17:04:42 +0200 Original-Received: from localhost ([::1]:48950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dktgf-0003jl-4K for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2017 11:04:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dktgU-0003iO-MM for emacs-devel@gnu.org; Thu, 24 Aug 2017 11:04:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dktgR-0002oG-I7 for emacs-devel@gnu.org; Thu, 24 Aug 2017 11:04:38 -0400 Original-Received: from [195.159.176.226] (port=47669 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dktgR-0002nt-BJ for emacs-devel@gnu.org; Thu, 24 Aug 2017 11:04:35 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dktfy-0003Qh-Nn for emacs-devel@gnu.org; Thu, 24 Aug 2017 17:04:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 19 Original-X-Complaints-To: usenet@blaine.gmane.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Cancel-Lock: sha1:i3YTZNGw1tnIVYQtUoYFJzvtQAs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:217766 Archived-At: On Wed, 23 Aug 2017 22:39:14 +0300 Nikolay Kudryavtsev wrote: NK> Let's say we have feature-lookup-list, that contains feature lookup functions. NK> Each function returns either the feature, or nil. When looking for a feature we NK> call each lookup function one by one until we get a positive or run out of NK> handlers. So the first function would be file-feature-lookup, using load-path. NK> Then we get one for package.el. And of course the first time package.el lookup NK> handler is called, it does (package-initialize). In such system you can just cut NK> out package.el lookup handler from feature-lookup-list to disable it, and each NK> alternative package manager would just need to provide such function. That sounds a lot like https://wiki.debian.org/DebianAlternatives It's a good direction for "plugin packages", but many packages are not plugins: they augment existing functionality or provide global facilities that don't exist yet or can't be abstracted into function calls. Ted