From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Easy configuration of a site-lisp directory Date: Thu, 26 Aug 2021 02:16:21 +0200 Message-ID: References: <87y29cj65y.fsf@posteo.net> <87tujgv7y1.fsf@gmail.com> <87h7fd93pu.fsf@posteo.net> <87a6l57ew7.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38206"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Philip Kaludercic , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 26 02:47:40 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJ3YR-0009ik-IB for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Aug 2021 02:47:40 +0200 Original-Received: from localhost ([::1]:35548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJ3YL-00081L-4y for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 20:47:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJ34Q-0004iq-N5 for emacs-devel@gnu.org; Wed, 25 Aug 2021 20:16:42 -0400 Original-Received: from mail-db8eur06olkn2086.outbound.protection.outlook.com ([40.92.51.86]:31456 helo=EUR06-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJ34G-0004aF-Ni for emacs-devel@gnu.org; Wed, 25 Aug 2021 20:16:35 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LiHNN1G0DR3BeFoiI/H3keiU5F97FwFiaJmzInoq6BNpWjB8GYQXBpWnZwMPkZ2L1ZiLOdVxuxcET2OFLuSNS3mIDSK/PaurkNC+JNjLKpfCoIc+ZV0FJsWRgE2LhsNPITcUBcH3uNf9c37tbANvdY7wX71griy6FXP4kNwryActTB2lA+LJYow5cCUGnxRSIgDyNjv+a3Q3uRuzdv+X+7kQcftcDpoktn7CfEG7K1MY0RFZj3Y4dg+j9aSKJ/mHIsOsoRd6wpcb802h30XxUXDunjj7KnDAc3q1urw6UeJFpEJ60oK0JhoFWS83/zwzN7yPmGffEpoVhamEEa7ERA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EEDOIJRjRFT/ri0m75yEPhIHNbq7rIGrbI2YAX2K3bs=; b=fy9sCGOFHD+KfE6CB0sUxCVTBSU1vEu7S5/IXVjM6jS+4N+RQNLXyTt0Rs8mi7wzOIEt3a33Dw49skJuT1BnUFpFHLxDTCcRyKjCsllJh4CimfYc2s3E4cc58NygaK+3BpyhLTcbszw3T7olbmvlDgf9ITNfpNRyi5K1hmZgSxEL9r5xW6Oxt/8lzRNHE74polU7gGyiq3pl2k9jpf9qeuwDg10Prs2LkjdjDTYA3OBHcSbhJgTauZyoRvrJ4EAqm+/xvATVCdk1dQDrPfKjv1QpOpkdHLodERYqVgoHRSqcDy01+mtlJtHcvzUnK/k28g9bKhd4jf2RMEQfwBOz7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EEDOIJRjRFT/ri0m75yEPhIHNbq7rIGrbI2YAX2K3bs=; b=laRPqYuZ3FcwiSTGB62pSB15mZhwk0IPw+f8cVvYanF7lIbVxkbWjvAr/gbUpfDUKqD2oAp1qh6dTCWQcZ6nAlglXC9z3Sdm/mNXLfUnyw4tNqfoBa0GeAQLZzYIXYXpdqWi/BvsTgh9j1BcCBaxTLmAPr24qFfOefOErvaVUZUtDCQ/nIdrTTM8v4ST7Xy6aqN5L3fEJVtc1syect77OmeczzzFPwGtcfBbAWEB11IQGQkOHth1Apykv6fGTNqQd3vfwANzGNqaAjKxO8FSK3Ps8Ao014wnZzMezKWv5kZRj1QS8A8SpiemLxBo7inRZOY702YuiLmf07gMULyCLg== Original-Received: from DB8EUR06FT013.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::42) by DB8EUR06HT087.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::379) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17; Thu, 26 Aug 2021 00:16:23 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc35::52) by DB8EUR06FT013.mail.protection.outlook.com (2a01:111:e400:fc35::209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17 via Frontend Transport; Thu, 26 Aug 2021 00:16:23 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:B07E3045BDBCF6E895CD7BBA5580FC096932B47E727587E5FE4209C6FA60DA93; UpperCasedChecksum:97A3DACCFD0B76E50BF139E4A69CD85017B06839E1026016B0E96F0D92C9F027; SizeAsReceived:7653; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b483:471e:6dc2:12ae]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b483:471e:6dc2:12ae%9]) with mapi id 15.20.4436.025; Thu, 26 Aug 2021 00:16:22 +0000 In-Reply-To: (Stefan Monnier's message of "Wed, 25 Aug 2021 13:27:04 -0400") X-TMN: [1001CX+C8osqylVAl56lEUqtdn07sSE5] X-ClientProxiedBy: BE0P281CA0036.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:14::23) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87wno92h7u.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by BE0P281CA0036.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:14::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.8 via Frontend Transport; Thu, 26 Aug 2021 00:16:22 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: efc0eb8c-0985-431a-3545-08d96826bc0b X-MS-TrafficTypeDiagnostic: DB8EUR06HT087: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yH+rR0YAOEpIWryyAiD8fVc5Eo3lpYRJJGJtRENBCry9SbaTmY+idkmKetE9v5HNfCZPjkHGxVBoxov4JyTpOSHPZWj8Uv1mT01Ty0KXHjSQoLrJ0Akhtd/FnNqpTvNloN+E3YHOJJ5QMuppqW/3fi5QDO63ha+L7JYaxF554G9s9YdI0A6ZVCEIgAHPIA+XNNyx/QbxyQfFlMW5Nvq1Ack4DDYWyw5tLnUlyZD/SKxJPo9TyFvvxDf0rvw0Tt6guQibryfd/i36oxaD5xCGNJs01775mH/yxsCZ/QtLtRVKfjUdWPARxLFrrahrlOKcE3ljmvQUWc+ZSuORvnsY8JFq4Lagm18sV8QB3K1yoi1DxO8c9Ygy50KwdMMX2Opq+YMuhuasxl5qjgpRDHzFMmy0JsMDlM8el3JkFuIfs1eJ7WGl7KOo3evzGuF0gycB X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: f9o6CYDLrgIAmPOVTPWVyhJmQHrSmlfSiGgSSbw8qlLqNKrlDShOxyuCeTOOedIsnijrr+vE2xQ95DaY9SvPZfLSjQ+cy7580wCWihGZCyXkvBd26ifukLGtQ4nl0ht33ym0vsen6RI8lcboHKxwhw== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: efc0eb8c-0985-431a-3545-08d96826bc0b X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2021 00:16:22.6654 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR06FT013.eop-eur06.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR06HT087 Received-SPF: pass client-ip=40.92.51.86; envelope-from=arthur.miller@live.com; helo=EUR06-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272996 Archived-At: Stefan Monnier writes: > Philip Kaludercic [2021-08-25 14:55:20] wrote: >> Stefan Monnier writes: >>> Philip Kaludercic [2021-08-25 11:13:49] wrote: >>>> Stefan Monnier writes: >>>>> Max Brieiev [2021-08-23 12:14:46] wrote: >>>>>> So is there any conclusion in this long thread about preferable setup >>>>>> for the case described in the original post? And making local git >>>>>> repositeries be package.el aware. >>>>> >>>>> From my point of view, the "preferable setup" is for someone to spice up >>>>> `elpa-admin.el` to make it more user-friendly for that use-case. >>>> >>>> I could look into this, because I was intending to work on elpa-admin.el >>>> a bit anyway. But this would mean that it wouldn't work OOTB, right? >>> >>> Not sure what you mean by that, but I'm pretty sure the answer is no. >> >> My suggestion to add something like site-lisp.el to Emacs itself was to >> allow anyone to use unpackaged elisp code on their local system, without >> having to manually bother with updating load-path and autoloading. > > Right, and the approach I use in elpa-admin.el indeed allows that. > To recap, here's what it does: > > - Git clone from upstream into .../somewhere/. If I may interfere, jere is probably good to create a branch (automated) for the installed version. Update can later checkout to back ot main or release branch, do a pull, and than do a new installed version. > - In that directory, create a -pkg.el and a -autoloads.el. > - Byte-compile the .el files. > - Add `.../somewhere` to `package-directory-list`. > > The last step is only done once and forall rather than once per package. > > IOW it acts as an alternative package installer: package.el could/should > be split into a part that deals with using (activating) the packages > currently installed (i.e. basically `package-activate-all` and the code > it uses) and a part that deals with ELPA repositories and installs > packages into (and remove froms) `package-user-dir`. > [ Side note: the byte-compilation should be moved out of the > installation step, not only so it can be shared between different UIs > and installers, but also so we can re-compile upon request. ] > > Then of course you'll want to add further features: > > - commands to update packages, i.e. do a `git pull` and recreate/refresh > the two files. > - support for creating Info docs out of Texinfo. > - support for packages where the Elisp code is not at the root of the > clone but in some subdirectory. > - allow the user to choose to select an actual *release* rather than the > bleeding edge. > > The above listed features are those that `elpa-admin.el` currently > supports (to some extent, in one form or another), but of course, there > could be more. > > Currently, for many packages all you need is the URL of the upstream > repository, but for others we need extra information in the "package > spec", such as where to find the Texinfo source. In the context of > `elpa-admin.el` the extra info for this "package spec" are provided in > the `elpa-packages` file but I think it would make sense to make it > possible for the package to provide this info directly (e.g. via > additional pseudo-headers in the .el file). But you only do this for packages in elpa/nelpa? That does not handle random git repos from www? This does not manage dependencies for gir repos whithout spec.