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:43:44 +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="3418"; 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:44:26 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 1mGppp-0000Zp-Bm for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 23:44:26 +0200 Original-Received: from localhost ([::1]:53140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGppn-0006G7-QH for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 17:44:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGppH-0005b2-3G for emacs-devel@gnu.org; Thu, 19 Aug 2021 17:43:51 -0400 Original-Received: from mail-vi1eur06olkn2079.outbound.protection.outlook.com ([40.92.17.79]:40129 helo=EUR06-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 1mGppE-0002y1-RC for emacs-devel@gnu.org; Thu, 19 Aug 2021 17:43:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mYoJm1YhBVEUYJvOpxkSIm3ex6IC6HtK/Kx8DeLI6NcVAVVLAI4KmFhEn8oO/ALXoymAM3ZPqs8Vk80viEbwaxjn2L94oS+1KPLilIbNTDsqBaNT2/DTGb5W5VqBV14q1C+oZB3s9GsYkL9/+KOqHdX8nZTAJb3KZF4jt0SpAPic3eH7M5f8tq67p8e2AlPw5gHmcmjsXLEjpzUoxJ2E5gl+u43MFj2Fcl0ZddX6vkQBfAJh2VUk7oj3MadsJXNsGdj1byZnMDYagV+jlU0qJKQIWcg3kDliMmLBXFeVcKspFlq/+mB5lM69Ofc0OYLtB6zWy/vAuW/PZfhLSyTrJQ== 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=fGgm5GShYXb7bHcvrFFBzdtxsO3IB/Uwgrp08hcjcZA=; b=gLFCpPTeOtqzNxwgcVMTPtZIx3fhYAdVKtkOLomNE2G1k1Y5UcnITD5YUqFjeKHap+Hjzh376pJes4Io3eU5ca7z6dMnt8X670Pepw4kVWBZuv9PMxlVPnVBpV+5WuxEX3Ep3AThkjhEsl38SuSu7UNjbvkko20UJl8eJdZWzSvxPRL4bXbkS0vC+G6o0EBd0o8x8F9+wMQMz/iix/r1ICcfv0mTotbf0TkPS/xyD2IXgAYptloyp6hfO9D/5MfNfRSNHOpXuZqWx4reJLy1jm53/erdjEPQtirLToqudJrHnqQ8BLxJqB+0IvUGDrB7T0dl9NWdSlCQJ4EyppW7Jg== 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=fGgm5GShYXb7bHcvrFFBzdtxsO3IB/Uwgrp08hcjcZA=; b=q9Higg1ouZtklN84adX5Jv2WtdRplxMzn6MYFdXE5mpAm4DwNyntIbZ602JAA6qs20t37IhpCZtFI/VBHaN5l78ZmKMh5MecXEl3/Azmiv+5LzjAyH73FcROpkFksREtDTwvfOXEnXoyW1p27OeCsNh+CjQhccUWsB7DEKjk0+VDGyi8OWEG0VH94yLrUtYu/EI5d8UeAbt+J9GyjUpbeC2m7TtG8awGZ1UDAXpkMtFYoaYNcrSzbPf2ejGYBN26aDkhBFu3nBCqtAW625/ZWqgOrluv9DElql8/MClSFabYnaQqgazVxqtcOkWEuGEL0tiTqEgTmf+E+Ti9SyipzQ== Original-Received: from DB8EUR06FT021.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::45) by DB8EUR06HT231.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::255) 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:43:45 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc35::4a) by DB8EUR06FT021.mail.protection.outlook.com (2a01:111:e400:fc35::185) 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:43:45 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:5522886AAD9BEC80D9732407EAFBED8D15DC0BAD139C2CE94A7F88684ABEA54C; UpperCasedChecksum:6BF443B24C47D6F5790BEF7F54426B1829CDACCDFE3E64914C905184956F9C36; SizeAsReceived:7551; 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:43:45 +0000 In-Reply-To: (Arthur Miller's message of "Thu, 19 Aug 2021 22:24:16 +0200") X-TMN: [ZovQUf6jVgp1UCC1Sceo0E+nzLM0iU3p] X-ClientProxiedBy: AM6P192CA0063.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:82::40) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87tujlhzzj.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6P192CA0063.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:82::40) 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:43:44 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 02f6081d-c60c-419b-936b-08d9635a6b3e X-MS-TrafficTypeDiagnostic: DB8EUR06HT231: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 613BPPkGBwuXrwVSTev38mmB5Jlm5sB87wRvpPdj0+BXsB4dgjMwBb/wuYMlvkTznRlBNC4adbeApVkQlllCVCeovIfVdtg8LV3LjqYcuvttG/L/Pl966+C6FDNtMuTN3qpU/82hb6CgKw9RVocicyviaNbszA9Ks562Xe/p5WuQf1d2WLOCky2mxS8DDzkBT1HLFumBgcFjN6y0UnEQo6owFGeqvkTm+1t+06q2A2XxjoZE392O+OFACaxCNbiUma/r1t54LP82J9+3GysIrXNilq1c4lAG/YBTYYxSYjjGX0Pd1mV0p1OtexlXIQA3EflzSYMm/Pi9holrlrgNaRS789NjWia58WgRNY1QUdvtBVf8sukDtCL2aGMoj3dZFWkql7/xfMIt/Jl385AdOWht6iTfwRN6RrT8y8omxoldbPuKueQLACqpjo4LQ0Ut X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rzfmGz01363pS176/QWYgB7pmU+yoRVOC9KMJeRM+l0blrfgJ17tztoXh6c9iGqlEXxz3lZC8QH9+2tJsh9NwcgVbSMcpQY/aAEvBwQXoeF/qNfmgMPTIcylB/PE2BtZbv5wM613T4R481GntVC1LQ== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02f6081d-c60c-419b-936b-08d9635a6b3e X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2021 21:43:45.0400 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR06FT021.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: DB8EUR06HT231 Received-SPF: pass client-ip=40.92.17.79; envelope-from=arthur.miller@live.com; helo=EUR06-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:272687 Archived-At: 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.