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:13:34 +0200 Message-ID: References: <87y29cj65y.fsf@posteo.net> <871r6pu6pc.fsf@posteo.net> <87mtp594xe.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="20777"; 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 26 00:14:37 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 1mJ1AK-0005Dj-Vo for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Aug 2021 00:14:37 +0200 Original-Received: from localhost ([::1]:60242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJ1AJ-00054W-NK for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 18:14:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJ19S-00044T-GU for emacs-devel@gnu.org; Wed, 25 Aug 2021 18:13:42 -0400 Original-Received: from mail-oln040092073035.outbound.protection.outlook.com ([40.92.73.35]:34533 helo=EUR04-HE1-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 1mJ19P-0001L7-Lv for emacs-devel@gnu.org; Wed, 25 Aug 2021 18:13:42 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WNigd/2q5N2hMo/riYWBkp1aS8ESmf3E9Xl0ElWoRlrguZzauhfnA6C59TdRtR2o4+CL+8BEbrIMqwvRp8XPa5UXVtKR7HlUFAYT0D1CECo8GzefYPP0DGeqUHjloVvPKDpwrLxggkxUdg4o0R3JZPfsergf3leO5eW84jMdnlj1hq9YYqCUIIa4+QK2e4qCwGCfvCaBTxiQW6A5Pj5EuSzjROlTA9G+Z4fwv+f5M6pm4RxbteoUGhjdmvsr/N7wDWsObSn6DJTuTGpWJY+3nzfG6nTy/518OSDkQq67BHhOiMbgx3PQsUCuSNqMaWqHE2sXrf0OFNwlx1c4SL6axA== 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=7klXASEdlvGIOsLUkbn048AxUYcbpyeuf0jEXDbJeGU=; b=jqaSFPuraHywcSrFzGo9e4IQjICTRxL8rAGlwqBkzPqF731bFz3b+dcX4lgMs6BjizGQzm4/CIsfPwemZXroV5d+6R5o+cUhfR0qAmIt+5GHz22Ogk0kZABCJ3jxs3H2NDzrPfC2aqDo/HMvPtuE0XKcIDFbzpgQt0+Fj2xLcIqG8upm46h8IMArih8fvLcv8mhRyWE38w75qECsnALYfZcOAmD4D5nraOAmpjg00falynO4A/R2mtFZ4qJaLnC4ffBhsLK7Xs+PU3CdWY6xamAq2cnCOznsQgWCnTOCqPLZuKyaKc2GtSqq2Zm3ZFGLBdvhC1jatHsQNdxu55tzWg== 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=7klXASEdlvGIOsLUkbn048AxUYcbpyeuf0jEXDbJeGU=; b=crfpZWvclq+0b9yLtsV6+ehOYDsfazI+viJj+d5OiqBiqPUT0jVogmOH4ZF2nhpeK+7IgIr3tF0nb89T5XVk9Rw6qOMPFcNjTsFL9fNPKUzEoCaWVJbTBbGOag0iE17DEVPi2ovrvAuI/KjvMFWf6Hs9Y+CprUhTsz/pmWHWGl3AQ9tJJ2E2UnHL1xTcbNqFSNftMaLWJMn3CMyCJY+LMVSyA3TyfdyUzKyoPZfuM1gYjLy1dblnttqJw4UpVy4gfdDBCTpOdv8CxrdoAnAr7J5d1RykJBAEV+auz+Akuis/ByOtTHkgj4MbdIBHLCncfzEl++uiyHrkckdtPo8XbQ== Original-Received: from VI1EUR04FT031.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0e::50) by VI1EUR04HT148.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0e::379) 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:13:36 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e0e::43) by VI1EUR04FT031.mail.protection.outlook.com (2a01:111:e400:7e0e::254) 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:13:36 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:64523C8AC1C8F3202167CE1094F634C848F7794B525FFE63900B9B635318F6FF; UpperCasedChecksum:11AC893A1552233EEDAD6CDC47B2162783441DDB86A58BD93B7FA6902C64B8A8; SizeAsReceived:7534; 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:13:35 +0000 In-Reply-To: <87mtp594xe.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 25 Aug 2021 10:47:41 +0000") X-TMN: [RbYmQuor8ZpvXCAZ3xCh/s8GW3Y8uf/w] X-ClientProxiedBy: AM6PR04CA0070.eurprd04.prod.outlook.com (2603:10a6:20b:f0::47) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87a6l541gx.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6PR04CA0070.eurprd04.prod.outlook.com (2603:10a6:20b:f0::47) 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:13:34 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: ec6c5425-ff29-42a7-f975-08d9681594c5 X-MS-TrafficTypeDiagnostic: VI1EUR04HT148: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O+HdgAQmEE8E+UhWAQtmGAFAx5FV9rdpSOlDJGMlgtZWLGSEsRKgoVNuhV6V/zr2bAEqDXjqgDNmqufBmPEHyN2li9RkarwD5+MAJnYnw963VedSU3aL1Aje7P+DbBRFoQAxdqEP5l3XAtUNk7SQ4wq5dc8iTfA1Bh/mF7QIsSOM6IY+yOtns0eU/TVZ7NF3DLA17ct3Yy4wsvmWNNsg8hp5BASUD0mqh03Ul8Z3K9AeZpQj/oQGxtuL41BfZqBg3Ld425TEcJdW6igpRbrJkvvIbHNSDp/sizYTB6i8xB3i2BDTqNt+by8AOx5rTD2KRTfbIslcbhcRJILIF2ICfBabisLEJvHaBRHzFtz0wvMnh0hH2+YhLJUCGQgbSlZNxmHnHtFUm8OwdSabu8FDN4krCIAKhZvLEmlnCQ4v6oIhQm+putJqZCKRFat/CwYG X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0Z9Msl520d055ZSJWQ95L+n6BlWQGnPilNMQWEkwqFx7sIGT0cXjpECbj5KQvyAQohIeIA5rE59jtoSV97GySkenynb3Gjp0vp45z3WgskOHVIiRzd+MrYqiQbRp7TFaImuQjYZmnwe7xIVGiU9DeA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec6c5425-ff29-42a7-f975-08d9681594c5 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2021 22:13:35.5661 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR04FT031.eop-eur04.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: VI1EUR04HT148 Received-SPF: pass client-ip=40.92.73.35; envelope-from=arthur.miller@live.com; helo=EUR04-HE1-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:272992 Archived-At: Philip Kaludercic 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? > > Usually I don't store them in my site-lisp directory, but just symlink > what I want to use from my source code directory. If something isn't > functional or ready, there shouldn't be any reason I would want it > byte-compiled, autoloaded and ready to use by default. That is what I thought, and that means you are in the same situation as without auto importing some "site-lisp" dir when it comes to xref & co? So what you proposed comes mostly in play when there is bunch of code installed manually outisde of package.el. If there was only few files, I don't think it would be intresseting to automate it either, so I guess there is more than few files, probably a bunch of git cloned repos. I think that something like what you propose is OK for you who are developer and know what you do. But if you put something like this on auto in Emacs, I think that lots of people with get troubles which can lead to even more frequent mailing list :). > If there is some critical change or something that isn't ready yet, I'd > just use "git stash". > >> 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? > > Yes, but I hesitate to compare it to package-user-dir, as to me packages > stand in relation to some package manager, while site-lisp.el only > implements the bare minimum. Exactly. I am not sure if it is even the bare miniumum. Bringing in paths and code in Emacs, is just but one part of package management. Installling dependencies and also uninstalling everything correctly, not leaving orphaned pacakges behind or removing something still needed is as important as well. For that reason I think that going through package.el would be a better idea. Everyone's setup is of course private, but I don't think that is a good idea and good alternative to proper package management. For the same reason why we don't install packages manually in our gnu/linux distributions but use some sort of package management system. Doing manually ./configure - make dance is nowdays considered a bad practice. Anyway, I understand your attempt, and I responded, because I was lately looking for myself what to do, becuase I also would prefer to have easy hackable packages, with same consideration as you said, to have emacs help system and xref bring me to correct spot. I am not sure myself what I am gonna use.