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 02:21:42 +0200 Message-ID: References: <87y29cj65y.fsf@posteo.net> <871r6pu6pc.fsf@posteo.net> <87v941hz9o.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="13058"; 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 Fri Aug 20 02:23:03 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 1mGsJI-000396-Om for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 02:23:02 +0200 Original-Received: from localhost ([::1]:40232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGsJH-0000LM-JC for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 20:22:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGsIF-0007hk-EQ for emacs-devel@gnu.org; Thu, 19 Aug 2021 20:21:56 -0400 Original-Received: from mail-db8eur06olkn2049.outbound.protection.outlook.com ([40.92.51.49]:61381 helo=EUR06-DB8-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 1mGsIA-0002ym-E5 for emacs-devel@gnu.org; Thu, 19 Aug 2021 20:21:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZEVcX6hDBFetIq2KBZynm032EtzbXiG6ARaCdMHTmRIg0Gc53npdlu4jR//wHTUBEqFCwl3qNQsdkrL1aD4gDXOebhvzFr54dKRKioHyA3Yxf5/4zcLe5QMBisbQ2+ciYrQFUmLizGvv3/coRTUTsLx7rcHBtu4EEcgQ+OJ9/1pusdaElerH4NZCNZH8zxMnr5Uqt5VIa78pL4H8tKLMFCs1ARXEIoAKL2O28274acJginaN3qmZdUpKRHIxaKCH0/bXgHbZqvBoFqtZrUMuCMCSRgIjoaD76zFAhEdMfaivYN3Y9Jd9nWJ/GuIXL2TlvrsXvuT1gTQ60jC41Vxm7w== 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=BS0uBVIUauLxMsKwV/rgVkS4utq6t8JMRSHxuvaCkjA=; b=CtX9gXuKjZN3wh8pSQgsz8AhiLlB9XNUZ0DT0KMHz1ozI1cZrfdeq0Q7txH2f7AaP/zxRDzUNSVGR0Irfu8mXbX1YbgJygdRvJq8e9nJknBdtet7dsemDWrTNxeu8xOEvMliLYBinJ94/SNIMF3qGkRe1WpaLKJeTVN9eLRuTz1b3IWpwFO2zLNQ75IMnZ/b/hz0okCvWJgi3qbWTVeNsR0qjH1Lz5A1WAAyUOfGkv0tooLCABWdIqpkiaNByqLVSeznUCfgXdVE/tw/NQeavF92JK52xRvUiiFwmCqOIKcpfv6jO9rLRL5dviNGqbXU3QUoPygPv87zrRijlMuc+w== 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=BS0uBVIUauLxMsKwV/rgVkS4utq6t8JMRSHxuvaCkjA=; b=oyaZ8bL7t26GjUn9BQjghFM0eQRN/JHQSPNB+uc5mCaYeXtBVG6wGdz8Iw7ggapncdaGTQ6+DyhC78FJl2S3z7w0nVrsTMYyciJdlJLh98/8D/2StUh8iD+sGMtwZiMrJr/9L4Pf6A5NXbcVs93hBvPd2bI0FvIcSSB7BWTDTVQNWdHMK4eS4Ym0hiWDoR6jro8AnrDU0A3Ce3KnN9zhxChz6KsQU0+BhXeNRbZ6Jx+T65iKaeWnPMm3gsfm2hKcwGISq+6u6XyVffF1Yo3BLhViZUN+wsojT4mQhHR4ujMBBRMdP8j098CDRBXpj1ISqoCDF/xrwbmORupEW8lgcw== Original-Received: from VI1EUR06FT013.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc37::43) by VI1EUR06HT052.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc37::186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16; Fri, 20 Aug 2021 00:21:43 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc37::53) by VI1EUR06FT013.mail.protection.outlook.com (2a01:111:e400:fc37::116) 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 00:21:43 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:B689EC4A5C4FF81D23DCEB9BB10ACD4C628E09E34BFD2333B81DCD40865F6913; UpperCasedChecksum:D6864C2FAE9C02716C5E0EEC0D069333542DE43ED929D6E4D309ADC49B26238E; SizeAsReceived:7696; 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 00:21:43 +0000 In-Reply-To: <87v941hz9o.fsf@posteo.net> (Philip Kaludercic's message of "Thu, 19 Aug 2021 21:59:15 +0000") X-TMN: [AZV12iKkYhaBD7fq/xZYEJgaf37nuvnv] X-ClientProxiedBy: AM5PR04CA0001.eurprd04.prod.outlook.com (2603:10a6:206:1::14) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87im01hso9.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM5PR04CA0001.eurprd04.prod.outlook.com (2603:10a6:206:1::14) 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 00:21:42 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: a42dcf8a-ecf9-4e81-eed8-08d963707c9b X-MS-TrafficTypeDiagnostic: VI1EUR06HT052: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lXnMH4UTzdyjeTfLN4+sYfmmySC+bgTVaue2U37sBSyIvCusM6U9tVKK2PPgWRTuOt2oVCgwaHPSVYPRh1uGig0I71eh3ZEnQtGIyPmdRe0HTDz7PvKbHCti+gM3VLHf5Sl6073YS8micskQc8N0g+WcJnMJnMqzWjoTZpoGu58pn+X8KDL9jPLQCx7EbxAvVM4l7RoBice8PLLZpURHYirPXa5rfwLGKbQlLYC/XNr7oJ8pG5F4P1uGLAEZ7nyoDGb3vydw2HJM4hrOoRjxMJkqfz2p1ker2zcyQKUjcsLZFdbGRJ9XvSexkU110ror0qjyT4lY/2NEcOJi3UTuP71SSygmjpHOTZOBn/GNN5kcFvoAzZIGMn3PFWu9ByoE1W++RGa4YEthEll4+kqbp+q76pH2Ip6Sy6jied5kLm5HkPWzsPPCPpXn0s8pcHeK X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zxQWjkJGc0Ala6ZBcU9LAM9SP9WZDP4mmSKPN02i7gcQh4+YWL+al88E+/DLL50S4/nGR9BGMshbViBqdtelhn2aMTdLGGNvE0HpAfn9LG0Up3qR8cl8xOQ15UgmC35aOA6WYhZ87a5Hqpwb5hT+Ew== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: a42dcf8a-ecf9-4e81-eed8-08d963707c9b X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2021 00:21:43.0932 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR06FT013.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: VI1EUR06HT052 Received-SPF: pass client-ip=40.92.51.49; envelope-from=arthur.miller@live.com; helo=EUR06-DB8-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:272694 Archived-At: Philip Kaludercic writes: > Arthur Miller writes: > >> 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? > > I do think this is useful, because it prevents confusion with xref. When > I am working on my own packages/packages I am contributing to, I want > M-. to jump to the actual definition I can work on, not a copy that > might get lost. Yes, I am aware of that one. I think that is also the reason why people prefer straight.el. Isn't it possible to advise something in xref to use the working copy? How do you deal with incomplete code? When you are working on something and it is not ready to be used in Emacs yet. Do you switch branches or do you use some other strategy? >>> 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. > > I assume you mean package-install-file? I goofed there, I wasn't aware package-archives can already be spciefied as local paths, forgoett about that one. Sorry I was making noise there. >> And I also realized that package-archives can already deal with local >> directories. So everything is there. >> >> Users can already install from local repos. > > The issue is that this is just a repository I know, I am aware. It also duplicates the code; working and installed. But it does offer better granularity what gets installed. > the very least adds a redundant step (fetch the > code, install the code) and always makes it harder to work on local True. But we can automate that one. We still have to do fetch if the source is not on local disk, and some kind of action is still needed, at least to create autoloads, and maybe to update package-quickstart.el. The only part we skip is making an extra copy to package-user-dir, all the other parts are performed anyway. Also package-quickstart expects everything in package-user-dir so it would have to be hacked. What I thinking of is benefit of extra complexity a new procedure adds, like to explain it in user manual etc, compared to if user installs packages via already existing mechanism, add site-lisp to package-archives. I have never seen anyone mention that local repos can be used that way on any blog or anywwhere, I wasn't myself aware of that one.