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, 19 Aug 2021 23:47:46 +0200 Message-ID: References: <87y29cj65y.fsf@posteo.net> <871r6pu6pc.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="23968"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 19 23:48:38 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 1mGptt-00060X-AY for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 23:48:38 +0200 Original-Received: from localhost ([::1]:55806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGptr-0008F6-An for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 17:48:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGptA-0007Z5-Ts for emacs-devel@gnu.org; Thu, 19 Aug 2021 17:47:52 -0400 Original-Received: from mail-vi1eur05olkn2042.outbound.protection.outlook.com ([40.92.90.42]:27104 helo=EUR05-VI1-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 1mGpt9-0005ma-38 for emacs-devel@gnu.org; Thu, 19 Aug 2021 17:47:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=COqmeKIbmrDgt5pWwGqsXZwWLoOeLMCpvdMg90Vzjfa+tJXCMTV26cX98wl6UxOt88HdsS52C1VapkcrRjzkU1jX2jbPT+KgSuAAJcu/ZHugF1l34bgw2x+ftag6m2JyJg6URcnX7em55neDBw0GnzrJFem6So/F8uCdNNx+u1+hYhmx1/iX4slZHJIT7IR12n0cZ7WpzoOzzkRFh7pl6gQuhPwNRGsECaXAjMwdt38em5Peby9CqY/kcCVNj24xZWSr5LFuMfvFp757A4gMP+A10uaJo72tTiqwCFToET46IPb2TG7UmRNFDf+KgnOabu8LOoWc6Zs6NsIRbaxKDg== 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=tyfmThBgzPQHyv6Om+Rho5w4908vkAQgqtbz54+hw8E=; b=QC/Q/EozknLwT7u9Dax1VZlN13R2PioGzBpbGyE0T+VFftaCbjpTl04CeYgr0wae9j4crmqaxENWyY8VhPLxZ65h4PI2lI5o4LekyuFLj23mwgOOZAl8s+f+rPoI2QstBNWx+Qx82oT32yc8wq5Epzw79kGiMMXMFtmOHYOMcyaelGrSysdU7T4ubqgABCLgVUYvIVX05VNyd25zaBfGgNtYvTatOi1KSGHpagRAVvgsFah2tiN6rosAo6qJa0M/a6jgVo61TXzpBymT6XWV8E2J85Vnu9boAa7TxoXBNqkxLWocWBocCDeUQ0WhSnUGO158CJwayR322fLz90O+Bw== 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=tyfmThBgzPQHyv6Om+Rho5w4908vkAQgqtbz54+hw8E=; b=FSlR4+xn1eV23U+Itfa8aIrYzO3FGYZMDNPioxXmHdLn+nykVLRXnd/XCGhu9Qd1rqIOjcDRgQZSOUkIOHpxcqicIn6jKqaczlsSRyp242m7zoNUZbLJ40lYdBYSu+a7v2zoMDMybhKuyZu2vXbK6PKUKOOeT8Z6YBTYzokiQOUxUYtXqWR2NQ2hH1PcbOeud7+5Dh9LzFLsyj5Af4sEdz2WfUpBilI5zI36OK2Z9uU6yHMiOzCU7kOilTjCea030d3kjUdOkpa2UI1dK/mE3Q44XpHdDf3Gz4AjT1UqKq/kovc/N7OLZJqEAC1YnfHFC9VA3GH7xC84jbVhgGPvKw== Original-Received: from DB8EUR05FT005.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::48) by DB8EUR05HT111.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Thu, 19 Aug 2021 21:47:47 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc0f::42) by DB8EUR05FT005.mail.protection.outlook.com (2a01:111:e400:fc0f::335) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19 via Frontend Transport; Thu, 19 Aug 2021 21:47:47 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:132822D4671F777CEE3663505BBC076037D53BC49E5F5D9C62F1207CC5DEED4D; UpperCasedChecksum:37121E65C895406BCB4E377D81510EB3E2ACC98F463469DC4A365F1839489E00; SizeAsReceived:7641; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::6558:f201:6d1a:3f39]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::6558:f201:6d1a:3f39%2]) with mapi id 15.20.4436.019; Thu, 19 Aug 2021 21:47:47 +0000 In-Reply-To: (Arthur Miller's message of "Thu, 19 Aug 2021 23:43:44 +0200") X-TMN: [wR9QsRpw9rXxXd8p2kE8UPB6axXiDggZ] X-ClientProxiedBy: AM7PR03CA0021.eurprd03.prod.outlook.com (2603:10a6:20b:130::31) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87mtpdhzst.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM7PR03CA0021.eurprd03.prod.outlook.com (2603:10a6:20b:130::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19 via Frontend Transport; Thu, 19 Aug 2021 21:47:46 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 0aefbdb5-e659-4fae-0b1a-08d9635afb90 X-MS-TrafficTypeDiagnostic: DB8EUR05HT111: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xHYn1ZQCBoNjTTPzCoObxEeL9t30+7lRxsiiWsXbS84rf8nnR4JvW4zrCtwWGRFcftxJ7w47YPSChFzlP6q2Vu9Ow09RWzGoeoVd8PH2xr7iUqdP6KXuHFf6RHqt6/IqQjJLT1nJ6NkvTwRtYFnnwIXa4TrW8CEsSoTYytYRAQK/Hg1F5Y3NlzArwjB+zC7NAgQSkV8s+tvNcSXhga7yhLvvqjFnQENmwQGsjfn2zG1OtwBsAjjFp8Ew9C6Qhgjkc1Fyb9oldgyMCM+/U1Amd/rLy4XXD/Ww6YsEHtFG88BU5etJUq61MAXCha8PQV0ssjuvRyNM7T5MIMSrKoexszc2zRSvXeHOniwqO5MiY/sh0vzT17kECfv+vPbSe4Qf8Ffx47jFEYJrfEptP28NYLV1blN4oyN8mDkSx9PVzNMijLMI0P4Zx6u3cVIZk76H X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 46ouXPQhemWq5CYpW32myMpaPCDEHddsavijtPLWIPBFLjTyunqA2jnmrSjFLMD/ZKWXGur22012ITPFBuyWtNyaQ17i8dkUROj4flqchpO5UTiSVGVyjzS39oWpW2aSMJ/mIyRBdGVc+58QlV3poA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0aefbdb5-e659-4fae-0b1a-08d9635afb90 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2021 21:47:47.1111 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT005.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: DB8EUR05HT111 Received-SPF: pass client-ip=40.92.90.42; envelope-from=arthur.miller@live.com; helo=EUR05-VI1-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:272688 Archived-At: Arthur Miller writes: > Arthur Miller writes: > >> Philip Kaludercic writes: >> >>> Just wanted to ping this message to check if there is any interest in >>> doing something with my initial suggestion? >> >> I do something similar as you do, but I use it only for some loose >> files I write myself, and for some I download from emacs wiki etc. >> >>>> The fundamental idea is to have an easy-to-use ~/.emacs.d/site-lisp/ >>>> directory where a user can clone any repository or create their own, >>>> without having to manually add these to load-path, generate autoloads or >>>> byte compile. >> >> I have a question: is it desirable to use a working git directory as >> installed package? When I write my own files, I usually don't wish to >> copy them over to my "lisp" directory which I autoload in Emacs, untill >> I am done. Admittedly I started doing so before git has entered the >> scene. Now I guess one can switch branches every time one works on a package >> between some development branch and some stable, but isn't it a bit tedious? >> >> What you are suggesting is to effectively use "site-lisp" as another >> package-user-dir (~/.emacs.d/elpa on my machine). You are also auto >> recursing in all dirs, so if user wish to remove something they have to >> remove that directory from the path? >> >> Why not hack pacakge.el to use "local archives", would work something like this: >> >> (add-to-list 'package-archives '("site-lisp" . "file://path/to/my/site-lisp")) >> >> Or maybe we can skip 'file://', and just use path, say like this: >> >> (add-to-list 'package-archives '("local" . "~/.emacs.d/lisp")) >> >> Package.el would need to be hacked to install a package either from >> a single file, which it can already do, or from a directory, which would >> need to be added. That would also work out of th ebox with >> package-quickstart.el generation. >> >> The only bigger work there would be to make package.el install >> directories. >> >> Alternatively, package.el could treat local directories slightly >> differently and just add their paths to load-path and generates >> autoloads, but that complicates package.el slightly more which maybe is >> unnecessary. > > I just looked at package.el and realized that it is already possible to > install directories, I wasn't aware of that fact. So the only extra work > is to make it recognize local paths in a list package-archives list, in > principle. And I also realized that package-archives can already deal with local directories. So everything is there. Users can already install from local repos.