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 22:24:16 +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="13589"; 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 22:25:06 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 1mGob3-0003Kw-9X for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 22:25:06 +0200 Original-Received: from localhost ([::1]:39316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGob1-00013q-U4 for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 16:25:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGoaM-0000N1-QP for emacs-devel@gnu.org; Thu, 19 Aug 2021 16:24:22 -0400 Original-Received: from mail-vi1eur06olkn2060.outbound.protection.outlook.com ([40.92.17.60]:18787 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 1mGoaK-0006hm-54 for emacs-devel@gnu.org; Thu, 19 Aug 2021 16:24:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kfbe3TGAVdu95AH9OLJxkMPzZStqIvh89ovKyj1OCa9sdOdOIgFeQg4mnMFcnByv12KsG+BdNVWXPF8RNWVSARWwTp5pjD34ExuakrmYpZIJIhz6JCslsms94eQoiN87kEiCSjAOE1S/qof/Dj/jc74JqRBCm5lgXdI/GH9Rw16Z/R7xsAA536Aoeou6gIqzdt1+e+BxQNzJ0MnvGog1+rZsbGb6c6n6teaMuXvZSSSoB/v0LeUsBB1ujHTqOynUvlzIecO4Yg3gl6EnM0ZAuLuDMdDE0SoOZ6WGjXFJhWP9SOSwy+Gs066CS+mX63uBB5O60Iqz9PRtNJkQT3Ljyw== 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=uDrrdYnjL0Wo3pdzW8+nPFlvYzN2JJyKUvRxysEt5Vc=; b=Xyy/Lv5XV1oqWNsRQQLkkvWDvPjGOzfE6OsV3KRmdMJymvpZdx5WB60tahAkNm3FiY5FF4WwAhsvhtkYO8gXsawZslZkvOC6daL4Hvizmm/yHjnFe79mgSgP5kyJREOtCBaCX7l1fB8Juh5J1KrefJqunHyp3IHJoWfFT+mjOQn5KB5TniwoUMyCzoUyNh0/XHHiciLopgJF9hKHWcVkBP3dy00zMcy4s/1tTNM3t7riuWQSH8G0Q1HJFs9YwAQBjtFTnhORBs2UZSef6ZiGAOYFd/7wvmm8FaI3oOgkfcziZusXAZshimirNVzWpn91hDsSuvndL8xvAvJqDvk/6A== 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=uDrrdYnjL0Wo3pdzW8+nPFlvYzN2JJyKUvRxysEt5Vc=; b=r8rOh+dkGsvNw/vtW2Fd5zwHdPz8nCQpGg5r4r+fT6RGumTlp8Vn+oWdgeYNngZsaktE6MmhE3gDDFKv4YGtcqUUy/uydI2CoemTXMZJGSrcOfkGM/h+TZV7lsPG6wkoiZH5UnogLEdgt371/5yH6zCOdwIyLw6305ePEnV94tXgKv/7F/SkUYpz+QCTb47Sitwfp/b7EwH1pcgEq7Qp7xT5/v51Fg/XByAUTzT87mIlHkU/uDPYY7xOQ9RocQ0P9TTVfhkzAScq5l3CS00Q9pS6Ol86BzIxyZnF1CIoFxTeb8koMtkIg3zufyPVLygAQhas9pob1gEVri3hneWTSg== Original-Received: from AM7EUR06FT024.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::51) by AM7EUR06HT093.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::265) 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 20:24:17 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc36::45) by AM7EUR06FT024.mail.protection.outlook.com (2a01:111:e400:fc36::413) 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 20:24:17 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:3E258B23FC4EE6454D66E0008BF4F1B1D923CD47C9EF696C6A438A209BA05656; UpperCasedChecksum:68B9FC5314AD6AF04BEF90A212E9C419A82A415B981C32925C6334028BCAD88D; SizeAsReceived:7387; 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 20:24:17 +0000 In-Reply-To: <871r6pu6pc.fsf@posteo.net> (Philip Kaludercic's message of "Thu, 19 Aug 2021 09:25:35 +0000") X-TMN: [9NyCgRVDRPmJivQP0ydMsrUaVSpHepu5] X-ClientProxiedBy: AM5PR0601CA0072.eurprd06.prod.outlook.com (2603:10a6:206::37) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87k0khji8f.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM5PR0601CA0072.eurprd06.prod.outlook.com (2603:10a6:206::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.18 via Frontend Transport; Thu, 19 Aug 2021 20:24:16 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: f12c6e94-8da4-41b6-9c0d-08d9634f512f X-MS-TrafficTypeDiagnostic: AM7EUR06HT093: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Jcesyty0F0ED4Ir3osDWDNyLq0aGMZRAavlrQ6aNPLqwgKaOMGO4rD6lc91FPG7om14l7750oh04QUZ/IyQl7htUB9Y0HehuWKBJs1nT9YWkjO4GTQ5O2F6NY7Z8QyyVpOkrDe6Qoa5vOyAxHKs//iZkinslGxXdiFxupB6aZ3rp4WxJrdY9jJthuZsYB/7LXMu6IFOiZ3Zb1FgQPzf1upp2EoQQTAYk5vnRxUnNnuncWbL1mGNMZj2oTMjrtigc2+o15zw1Jq5u0yZ7Rs5psdacVYZ8FqHpyQGBvwPp+OMAooXYRdb43+1zpQQIm/jYmo0CoI4BnWo9b0NcTeSqDNP8UaYxYe5RG0mRRxcg2uJiNE1CYnhRRQfx8obPHG9TbzPi9DFyikec7URdCnZxIPxG6eYFGdOTwuOBVMBHZrpO8XEmFHcv0CSja6npqe5Z X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sGNfhPglEEON8jQ+7qWjPOE/jwv1EoEC9ByXnbquwXuRc5aZBGXnYGnDXWMklq69qS6PCYKuBbH6YwzZN7BcsXBqFxd672h7gl5MvnuQldJ0xN5JkFI8zTH8WouGNAv8zX16X+/q5Vab3P4th64uqA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: f12c6e94-8da4-41b6-9c0d-08d9634f512f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2021 20:24:17.0234 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: AM7EUR06FT024.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: AM7EUR06HT093 Received-SPF: pass client-ip=40.92.17.60; 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:272683 Archived-At: 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.