From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nikolay Kudryavtsev Newsgroups: gmane.emacs.devel Subject: Re: Interoperation between package managers Date: Wed, 23 Aug 2017 22:39:14 +0300 Message-ID: <5e6faf18-5ace-80a4-9508-c723fedcbca4@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1503517213 6605 195.159.176.226 (23 Aug 2017 19:40:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 23 Aug 2017 19:40:13 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 Cc: emacs-devel@gnu.org To: Radon Rosborough , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 23 21:40:06 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 1dkbVV-0001KN-5N for ged-emacs-devel@m.gmane.org; Wed, 23 Aug 2017 21:40:05 +0200 Original-Received: from localhost ([::1]:45419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkbVb-00082l-T1 for ged-emacs-devel@m.gmane.org; Wed, 23 Aug 2017 15:40:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkbUq-00082e-Pm for emacs-devel@gnu.org; Wed, 23 Aug 2017 15:39:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkbUl-0000a5-QE for emacs-devel@gnu.org; Wed, 23 Aug 2017 15:39:24 -0400 Original-Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:34017) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkbUl-0000ZV-IC for emacs-devel@gnu.org; Wed, 23 Aug 2017 15:39:19 -0400 Original-Received: by mail-lf0-x233.google.com with SMTP id g77so4938615lfg.1 for ; Wed, 23 Aug 2017 12:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=9wn/NVRaU4tkuAdIikqBfGQWCd5/y38kFfz2AxQtXgI=; b=IXsBFUgRt2Bm4VMbvHFQfbF5Ss063q0oxKar7W2Q5/BcwpBC+C4hZuHqaX8RJclrFF Cpbju7Xa2sgC5FQwKk01D1w+n1z8EIpKj49XgRcK5qnElmTPgVPMb2visvNyDCUY/UVd 16pQhi/7QEQJbM9PxhieZP/mWogshPctGrQfBzQiMQ6gIourS7Khhy/DzdAf5FipqC4u tF7HvFGVM2Ztib5FlO1WoUH3LmdY3CiPdUhz0k/bpa++pLgmQOFsIYFtKxYvG8n9KoBQ uucaTFDpCoKyUKdv6HSOGGnl7+PkCRFurjWVkwrhv9ONjyoI1RlgyPTTEvd8vdCqK5x/ NR7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=9wn/NVRaU4tkuAdIikqBfGQWCd5/y38kFfz2AxQtXgI=; b=cZTcTcFIMm1+8QrN8DXEe9KlNdTdjbWFNZzhtErmVlXq4Jdff+wQ++80oPvu0D1tDw mexqCtUbUAjy0RUuy0Ga9Y7t1jOZWZwKIHUlJbUsZkrwJfVktb4bFODNd22DwX5SDdZ0 ZHY9bTFx7rhwGXyzs0dfenY+oZpmbgV+Kxo3FyzZqVBP661sDq348S8JH8xQBA0Wo+v3 3huIjwGM+Sx3xsMfx2ulK4CZ25jnFoUZ2Np6BOwYccMAWj4aI9mVjwiCgSOxVCW7SDbX H2gKYOYouKUyE6hUvsNm8OXr5qZm2s/Lf9hzk6Wo0Jud2t03HOzrFiNk9O5cily7JSBP EGgw== X-Gm-Message-State: AHYfb5gNPRAa6fH3JCWb/VoM2Ec63yIeK9iIK2XX83IB3i+j4VsS4/KD cXqxZpbwC/Zx4QwGIxk= X-Received: by 10.46.80.18 with SMTP id e18mr1757518ljb.23.1503517157959; Wed, 23 Aug 2017 12:39:17 -0700 (PDT) Original-Received: from [192.168.199.6] (broadband-95-84-209-126.moscow.rt.ru. [95.84.209.126]) by smtp.gmail.com with ESMTPSA id q3sm370322lfj.75.2017.08.23.12.39.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Aug 2017 12:39:15 -0700 (PDT) X-Google-Original-From: Nikolay Kudryavtsev In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::233 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:217733 Archived-At: Hello. For long term, I think Emacs would need to implement something along those lines: Let's say we have feature-lookup-list, that contains feature lookup functions. Each function returns either the feature, or nil. When looking for a feature we call each lookup function one by one until we get a positive or run out of handlers. So the first function would be file-feature-lookup, using load-path. Then we get one for package.el. And of course the first time package.el lookup handler is called, it does (package-initialize). In such system you can just cut out package.el lookup handler from feature-lookup-list to disable it, and each alternative package manager would just need to provide such function. -- Best Regards, Nikolay Kudryavtsev