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 00:29:08 +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="15247"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stefan Monnier , emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 26 00:29:53 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 1mJ1P5-0003gB-Lq for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Aug 2021 00:29:53 +0200 Original-Received: from localhost ([::1]:35054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJ1P4-0007wv-3S for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 18:29:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJ1OW-0007Ie-Ms for emacs-devel@gnu.org; Wed, 25 Aug 2021 18:29:17 -0400 Original-Received: from mail-am6eur05olkn2090.outbound.protection.outlook.com ([40.92.91.90]:15456 helo=EUR05-AM6-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 1mJ1OT-00037G-SF for emacs-devel@gnu.org; Wed, 25 Aug 2021 18:29:16 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vy7bprc3a5vSdxz7D5YzEyAtqBKxjlM+iy0GrmD8Nv24gYAAcIxt3wceXGleU5Xz0Jp7LH16GIqEmOGEumobVAoZVNTGjJgE9UV6SJ3afAzTKWZLhLmQH3WUKIRpzhDhcOJA5PQ2nahwQwD44P095zFwdDM+W5x28q7lqnbtqcMl+hezVn3tChECBdfN91QvpQ92OHI6gIT6jTGV6RqFOHZi5K8SzOFPr8KCP5MqLszR4uWFRI32tm7ioqGrDfXtgixd0ioInwTHGv5EwZjPECH1C8pM6FkVN3R6JaoKI+45NH04BXANxVfKpT/aLbKYCsQPjx5y+wG8ImLCJGhBOA== 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=OFScAv+LF+tu6KpvWFhnOc2N9ZxMpri7j4c6eI5GFxU=; b=hDzW+B4otwZsZ721rBZ9LT7PvVAnFIAP6ZIETOchgbSiYy08iA96+rxXOZTlwjj/qF7NuBO7444VfIb50YAz8O68qRXOLuRY1tA/eEk90XTq55tNZvnf1sCypDkpHlbZq/tyye8obua93EosnjMdv6TeTvXkpu5WxJaTpGmPPIXm+GiebZMcF2XbLYmKuprpXlxYB/H/lG7w5zB5KEdTnJNTmnQsIvFAnEGwdFO/K0ct/PyYAxCvjX8QwF+ZhO9On3D+dFjfKy+HzvAxCJQG0hTX1AeUe4x62Y92rjaryVLEaMq2m7ZeJMsZlcaNamU1mVbe+gL6iSjZsgX/Avk5fA== 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=OFScAv+LF+tu6KpvWFhnOc2N9ZxMpri7j4c6eI5GFxU=; b=V9/1kIE3OQRE5FyeQT0w/m5tY5eRgzvVGkfaFGszbtVH9/Hmbvs07rQgj1R1x+pWo3Y/OONfu6vpdDZDB6Y6vow9ZQz5A+jw+aOZBVsqvzItXBqJ4Z1nCu5ljulfULcmaq70uE8twLoWkcd3JU2qkMqX6oLrsW9RlfRf6wp/6UiCCl2jZXQ6jviBPpF0YbUiNgnQPletVSIrziQkDsFmzvsQ/YlIxHHurOwJRwB93oc525hdQT3kz6KdRSkGGLEglRrgMqmqQa69ZS8WmL9CtUTq8CiiZ9Z1IJtbH8QzPLNTrNfNYN/HiEtwhV95UbVPEDXgG1R/4UQT+qMBCrszwg== Original-Received: from VI1EUR05FT003.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::4d) by VI1EUR05HT031.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Wed, 25 Aug 2021 22:29:09 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc12::4c) by VI1EUR05FT003.mail.protection.outlook.com (2a01:111:e400:fc12::324) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17 via Frontend Transport; Wed, 25 Aug 2021 22:29:09 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:20DF4912B72EED2E9E36C3B7F00B321D76199AC2ED57226BE81C153BF4A412AF; UpperCasedChecksum:E9BD656B85474BBB5291F6F9BE7DEB56630B25EC905697E1D9626EE40CADC5F8; SizeAsReceived:7594; 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; Wed, 25 Aug 2021 22:29:08 +0000 In-Reply-To: <87a6l57ew7.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 25 Aug 2021 14:55:20 +0000") X-TMN: [fTvZyXSFHYBrehMEdRnTuV6Fxi80xUkI] X-ClientProxiedBy: AM6P192CA0002.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:83::15) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <875yvt40qz.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6P192CA0002.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:83::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17 via Frontend Transport; Wed, 25 Aug 2021 22:29:08 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: b0e74a6d-7cfc-42c4-f6fe-08d96817c148 X-MS-TrafficTypeDiagnostic: VI1EUR05HT031: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XCcuBLKdVkU4pC19nlFFBynyir6S+xGNeRmgxXMzY/3EfsGsL9w13abjwQvclnIx1wSdFN2HQrFL314Ajl0x302JHpIzMtTpqp+LsVOR6Fug0+ATS4G3inpofk5iukGS9wQAtw4aMk4WTOwdy+4lAYZrKiXSwoVHdpdV3O9hjbgYffL0BKqlHPu2XaSdbyeHUOY4C1Qol9D+mxRZ1Rj7Cb5VGvQ/HF90xMj2xvUne0OOh/1G/t/RifWo7hzahZQmsVbI7oEzDdbjHxIYyHQAKjsmYtG+OxV3zzPFTCFC2ALeF2zlKym9uDUBUnpZx54RbQR0SwxsKg0lz8hbWHhu2zyfFMgJlPeIKleU3WZZVW56fA1NmC1Mo2nxL1Jyk4R8QYyIgjpDR7gE7ea8fAPIllXQRWihvQaj9Ef8ORU0Bjl+onarJHTGjVhG5ZhuqVAD X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HIf6S+XL+tCZ5XOzG2P3wXFgM+yOaTvsXOAwuqHWU3HHDlt7sPj+90is9E0+qTplMBgSLceKO5NaHhhJzRlHnkPfMV+3bX22TbkLfCRMh6EbIUijdr4f4Z7rFfkYGuXDd+gXMKkKnSE0r3fcxheHWQ== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0e74a6d-7cfc-42c4-f6fe-08d96817c148 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2021 22:29:08.9630 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR05FT003.eop-eur05.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: VI1EUR05HT031 Received-SPF: pass client-ip=40.92.91.90; envelope-from=arthur.miller@live.com; helo=EUR05-AM6-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_HELO_PASS=-0.001, SPF_PASS=-0.001 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:272993 Archived-At: Philip Kaludercic writes: > 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. If I continue from previous response to you: yes, it was clear what you meant and problem is as I described there. Your proposal is good for you who are experienced with working with Emacs Lisp, but lot's of people aren't and that could potentially lead to other problems for them. But what about attacking the problem from the other side: requirement for a package to be installable seems to be very minimal. Only thing I needed to add to my own was to put a comment with a version number. We could hack package.el to remove that requirement, or to add a version number automatically, that would made pretty much any code package installable. The problem which can't be solved automatically is to figure out all the possible requirements. Somebody has to manually add a comment with requirements in the code, that in proper format. Which isn't hard to do but still has to be done. I don't know what is best practice there, but I don't think it is possible to do much than to simply warn the user that dependencies are potentially missing. Best would be if package authors were aware of this themselves and added version number and requirements in proper format. Then their code would be auto installable via package manager even if it is not in some official repository.