From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: feature/package-vc has been merged Date: Mon, 07 Nov 2022 08:42:18 +0000 Message-ID: <87bkpjyx3p.fsf@posteo.net> References: <164484721900.31751.1453162457552427931@vcs2.savannah.gnu.org> <875yg1bc02.fsf@posteo.net> <878rkxgpms.fsf@posteo.net> <87sfiyk3a2.fsf_-_@posteo.net> <838rkp4ptj.fsf@gnu.org> <87zgd58i7y.fsf@posteo.net> <83k0492u5i.fsf@gnu.org> <87fsew8g18.fsf@posteo.net> <83mt941cyd.fsf@gnu.org> <87fsewp0ec.fsf@posteo.net> <837d0814c9.fsf@gnu.org> <878rkooz1o.fsf@posteo.net> <831qqg1306.fsf@gnu.org> <874jvcowzm.fsf@posteo.net> <83y1soypvx.fsf@gnu.org> <87y1song5x.fsf@posteo.net> <83v8nsyof7.fsf@gnu.org> <87leoond7l.fsf@posteo.net> <83r0yfzz01.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3347"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 07 09:43:48 2022 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 1orxjP-0000g1-4m for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Nov 2022 09:43:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orxi9-0001N8-La; Mon, 07 Nov 2022 03:42:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orxi7-0001MF-AW for emacs-devel@gnu.org; Mon, 07 Nov 2022 03:42:27 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orxi4-0004NA-3N for emacs-devel@gnu.org; Mon, 07 Nov 2022 03:42:27 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6CE80240028 for ; Mon, 7 Nov 2022 09:42:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667810539; bh=pNRNcrgAdq0bZ8MhViROVAUv0coRa5Od3de6nAlpR6w=; h=From:To:Cc:Subject:Date:From; b=bxbgavv3W5BPWo/rro+eK6rlaTndNuMewz/geFk/SV6aKGm2Yw21FBJKzgXpGQi3X L9gGAmQs5F5VQrUF9gi8YM55UTC03f5KUM2MyBL7HpegXMCleWzUILNByiDEnVCkLB CGVt8Rdql6ZB7SpsnXzbnuMFnTtrmMJuwBUTrHUAQm/JFA3wE3tQ/IbfAbgpEdhC4R 35ZvPKEvD/f9ZePOeeaifwmwW49Hla9yOt4XEhCtPaUr0c7cRdotwrCQ+HRmmz3Hx9 6fP1PmjYt2Xy3cOvfb44H4G2+xzrJ5UDrLnUsrwCmv4BeZCLXvymnNaMc9XTUnGYbi nsTmS2La2nDog== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N5PqZ53H7z6trd; Mon, 7 Nov 2022 09:42:18 +0100 (CET) In-Reply-To: <83r0yfzz01.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 06 Nov 2022 21:03:42 +0200") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299283 Archived-At: Eli Zaretskii writes: >> From: Philip Kaludercic >> Cc: monnier@iro.umontreal.ca, rms@gnu.org, emacs-devel@gnu.org >> Date: Sun, 06 Nov 2022 18:35:10 +0000 >> >> Eli Zaretskii writes: >> >> > And if you think many do, why not clone the repository directly into >> > ~/.emacs.d/elpa/? >> >> Because that won't take care of scraping for autoloads, byte >> compilation and installing missing dependencies. > > I don't see why. Please elaborate how having the repository inside > ~/.emacs.d gets in the way of these activities. It doesn't get in the way, the issue just is that if you were to just clone a package right into .emacs.d, you would still have to do all these steps individually and manually. >> >> All of this would only apply to packages with external `:lisp-dir's, >> >> which doesn't immediately interest a user/developer. Having to keep >> >> this in mind would pointlessly expose an internal detail of package-vc >> >> that I'd like to avoid. >> > >> > But it is us who introduced and support :lisp-dir. If we think it's a >> > leaky abstraction, we could decide not to support it. >> >> You mean as in only allowing for packages to distribute lisp code in the >> root directory of the repository? That would pointlessly break too many >> packages that decide to structure their file hierarchy for whatever >> reason. > > Is that what :lisp-dir is about? then the doc strings in package-vc.el > doesn't even hint about that. In particular, there's nothing there > about the root directory of the repository. The docstring for `package-vc--archive-spec-alist' has the following (I'm still looking for a better way to document this): `:lisp-dir' (string) The repository-relative name of the directory to use for loading the Lisp sources. If not given, the value defaults to the root directory of the repository. One example where this is being used is for org-mode: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/. > (Not that I understand > why having Lisp files in a subdirectory of the repository would be a > problem that needs an explicit configuration of the package, probably > missing something else again.) Maybe I am mistaken, but having a directory in `load-path' doesn't mean all sub-directories are automatically indexed, right?