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: Fri, 20 Aug 2021 14:47:04 +0200 Message-ID: References: <87y29cj65y.fsf@posteo.net> <871r6pu6pc.fsf@posteo.net> <87tujk5s9f.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17016"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Philip Kaludercic , emacs-devel@gnu.org To: Augusto Stoffel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 20 14:48:33 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 1mH3wm-0004Ca-Ss for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 14:48:33 +0200 Original-Received: from localhost ([::1]:56344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mH3wl-0007kw-VE for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 08:48:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mH3vV-00071x-C2 for emacs-devel@gnu.org; Fri, 20 Aug 2021 08:47:13 -0400 Original-Received: from mail-oln040092065105.outbound.protection.outlook.com ([40.92.65.105]:50758 helo=EUR01-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 1mH3vQ-0006zE-PV for emacs-devel@gnu.org; Fri, 20 Aug 2021 08:47:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z1SnqrFCnLexMNGE/pDOrPbG3f5jEpbgR4HBjUWl8rvvrEzPOIrBob3nebYumarpdZSpatR1yzDLj2NXgC/1/1e1aWYDDOaSAi58y6Zz5jIfslgdYAMW7gG5SkNmE9+HKTcG9F6YyMeo+X2DijeLkT6ESaepXTJehTFxcEAH4cEy7tZf296Q+J3vJOPD1oha5rjZXCIlnJZlgNmCXa/i5khZ3dXGZPWCSShjAVO1bL1X6hlPWMsIPu7lGfO9hxu/NdOPeOPvO2uCuarqLyg1ENAXuu8iCXlNi7v/ifi28XwaUBYVUmvUp8uM8N5Xvq4dGHILESO1V1VSmExy97ErtA== 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=kxFpZHuP/TDCX6FBYuSEvU2cY1gH9nd7x0vtyi4GO98=; b=So4U663+1vYFWwTpWlB6Jr+6KS+VMJ/d3JHRxhzjaR4IZl9HRS7XWFWwIT/Pn2jazExBnLMbTyMdke3cHETkXNqIqVPoyrdsv1Gi2dvFw6qNe1Y04Ab+NxleX8oIZAyUiYZTTDdFpK6Y63tThZJyYFKdX85GjIsPGeHx+xMXZH/etMGK9vhcYiSosd2TItUwwVBQY/O76LtCNjn1QnO0btGd7jOza3uLoPHqpdgWeOA6SpZyPsQHMOW7v7S8aBaqsriHExoFSHfe14cVUkOpdcqYi/achtb0CI12gRIVvJaPCUug6GAOWaEktn7Uy9mc9FBarhfUQe6VzRT2dHwAIw== 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=kxFpZHuP/TDCX6FBYuSEvU2cY1gH9nd7x0vtyi4GO98=; b=bqoDYHz9/YX0zErXYkcZvk8XTm59nSh93jud0pJRLZck87LOSuFsYzu7BkAR/KiGyUpNDTE/PF9zn4G7PoLqp7gL1R8mfVaQKVUHZuXt7CViQVlvRabFXYsHBj+xd1dqiFa8LdTPJQUgkNo1yKLZZIC2DQj2vMDpdFDedBWooDBAlm8t587vyY7GDy+pslsMRc6f3dP5sbMsTXS9Q5iF8NMR3sexSoHa/GP5zqRXPpKXs6Ku3km+kfZz2xTtmOSx3Zdm6lPHlH/QInA6uToAoX+f5kPCpR5ct9gzDmhbFBl5yD09J7mFA4nO9A6Qwwt3lZ862ciPPkHC1SrvHDjsPA== Original-Received: from VE1EUR01FT021.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e19::46) by VE1EUR01HT078.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e19::398) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Fri, 20 Aug 2021 12:47:05 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e19::4d) by VE1EUR01FT021.mail.protection.outlook.com (2a01:111:e400:7e19::223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19 via Frontend Transport; Fri, 20 Aug 2021 12:47:05 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:571CB8B859F7B8862FDCF2AEE1AABA9DE53BF4DBCA8555074F39F8005BF973ED; UpperCasedChecksum:18CDF2922D5CE5F0CD99EF8FCFDD90AC33B517C582E732B6ECB6A1F5515476BF; SizeAsReceived:7494; 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; Fri, 20 Aug 2021 12:47:04 +0000 In-Reply-To: <87tujk5s9f.fsf@gmail.com> (Augusto Stoffel's message of "Fri, 20 Aug 2021 12:23:40 +0200") X-TMN: [9yWc9R/FltgQiAF8lstk1+XryQKDrXBW] X-ClientProxiedBy: AM5PR0701CA0023.eurprd07.prod.outlook.com (2603:10a6:203:51::33) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87k0kge113.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM5PR0701CA0023.eurprd07.prod.outlook.com (2603:10a6:203:51::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.8 via Frontend Transport; Fri, 20 Aug 2021 12:47:04 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 12e5e586-1b40-4505-909d-08d963d89cdb X-MS-TrafficTypeDiagnostic: VE1EUR01HT078: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WehGj3BbFeopDUheE9Nte4hZlVRzQCX3mz6EjYVHKTqVVj02Pxki/jjEEki6sKZwN1zSMFWrlQfAY43gg5eBzwJZrhCYBq8ha6tN1ScJGZq7BERNFb7nETOQCX/rSIB0/dogeclCc7TEoYKxBIgZJD3ECf5xQUMca3LByX5tpN7pW4XC/stdQH68yHsSbcFWs4Ad63U9TJANkOeIlA89gLhKbRXG8T2/BhBQgvkk7RtTs79eboZ+ZJLnP7mcAWDkRUNy/9bu89BvtxyyJgCtK0IEof9SGu7UvBgyKb3KBSWuNBYukWaKbUtBiKZkqjqHfCbhIRjtNEvjAHwPJ5ci+BlLQXJ6hMe4dV4NfFxKTL6D18xE1Xem+Ke8+ANnoDUFy7Qyd9/hfTae5iaVGQyz3F12lt2AFPlFN+JEQZiPmukaWPJhdrfeEziBZLLGXaZ924gC16hB/Tpf2vVPen6mZSun9q6Lq1p5cZDXllRW/FM= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: asOPXmUu9/Keuoo4NZ6AwdZas2qCpvxbcaxrI/EIPaOKTrYk/0ISE5uqseD2uusSOvvrFSzXFrTw81F+BRS4EL3dyWcqGmrX11kE0w00EDO+FOyeeKaIKJuShO6HF3DIZEDRYmzkxtCsQdWIl8sfXA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12e5e586-1b40-4505-909d-08d963d89cdb X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2021 12:47:04.9060 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VE1EUR01FT021.eop-EUR01.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: VE1EUR01HT078 Received-SPF: pass client-ip=40.92.65.105; envelope-from=arthur.miller@live.com; helo=EUR01-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_05=-0.5, 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:272717 Archived-At: Augusto Stoffel writes: > On Thu, 19 Aug 2021 at 09:25, Philip Kaludercic wrote: > >> Just wanted to ping this message to check if there is any interest in >> doing something with my initial suggestion? > > The discussion about installing packages from a cloned git repo is > interesting, but I would like to point out that your suggestion also > addresses a much more mundane task, namely: let the user autoload (and > maybe byte-compile) their own configuration files (the stuff one > typically puts under ~/.emacs.d/lisp) without having to worry about > updating autoload files manually. > > Ideally, this should be straightforward to do, but I recall having to Adding directories to load-path is straightforward, and is easily done when Emacs starts: (let ((default-directory "~/.emacs.d/lisp/")) (normal-top-level-add-subdirs-to-load-path)) https://www.gnu.org/software/emacs/manual/html_node/elisp/Autoload.html > delve into package.el to figure it out. Your site-lisp.el would have > helped me at that point. Generating autoloads is not that straightfoward, but have you checked docs: https://www.gnu.org/software/emacs/manual/html_node/elisp/Autoload.html ? I personally am using (package-generate-autoloads) and I concat my custom autoloads with autoloads produced from package-quickstart.el, I do this as an offline procedure so I don't wait for Emacs to check all this every time it starts up, but that is an implementation detail. Maybe package-generate-autoloads form package.el should be rewritten and exposed to users as an interactive command or at least mentioned in Emacs manual so it gets more attention by Emacs users? By the way, I got to think of another thing when it comes to local repositories: couldn't package.el install a symlink to local repository in package-user-dir, instead of copying over code. That would avoid having two different copies of code, would let one use cloned repos from git directly without modifiying anything but package-install function? I haven't tested yet I just come to think of it; but hopefully xref, help & co, would work?