From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS Date: Sat, 19 Feb 2022 15:15:39 -0500 Message-ID: References: <164484721900.31751.1453162457552427931@vcs2.savannah.gnu.org> <20220214140020.04438C00891@vcs2.savannah.gnu.org> <87bkz9tbcj.fsf@posteo.net> <87o839ypx6.fsf@posteo.net> <87mtisnjcb.fsf@posteo.net> <87sfsizaub.fsf@posteo.net> <87sfshn917.fsf@posteo.net> <87a6em66xt.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="5040"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.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 Sat Feb 19 21:17:10 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 1nLWAI-00011Z-A8 for ged-emacs-devel@m.gmane-mx.org; Sat, 19 Feb 2022 21:17:10 +0100 Original-Received: from localhost ([::1]:43370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLWAG-0001m4-Mi for ged-emacs-devel@m.gmane-mx.org; Sat, 19 Feb 2022 15:17:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLW8z-00010Y-7X for emacs-devel@gnu.org; Sat, 19 Feb 2022 15:15:49 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:44338) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLW8v-0002oe-DV for emacs-devel@gnu.org; Sat, 19 Feb 2022 15:15:48 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4B906440F1D; Sat, 19 Feb 2022 15:15:43 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A105D440DE0; Sat, 19 Feb 2022 15:15:41 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1645301741; bh=IqTGXGD0Txd3DpNEjTG4khxRftoqTjVRFJE60bjQFd4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=b8Co8cbcTKEV3LgzyOXZy2skYN1r3BTAuaP4qNuClNRkPlal6z+VVra3eHWR0RWlN efDD0ANhfBDq17zzyu+Fgg2nJGgt1kBZcSHn33gh0p/lx55HQftMX2y38aChvNTKZt wK1b3ICZzrM2u517FiBqTrNrosJCoJapAKyuyFsC2CsHEHsczLr/VmZt0/Q1mOPIEH 6cbh1XO+3UvezzIf4b99gMfE6r8IQmL8pfXoNNvDi6tzz9YNm0EhOi47OIR9dBPKUi 8A3/Oq3tyWKmexL8S10gkha/COwtmgReKsKaYLRF+7EBUiadFsuxP5rid5ApACB0Mk mOJmQNpFLCROg== Original-Received: from ceviche (unknown [45.72.237.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7450A120175; Sat, 19 Feb 2022 15:15:41 -0500 (EST) In-Reply-To: <87a6em66xt.fsf@posteo.net> (Philip Kaludercic's message of "Sat, 19 Feb 2022 18:35:10 +0000") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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" Xref: news.gmane.io gmane.emacs.devel:286491 Archived-At: >>> --8<---------------cut here---------------start------------->8--- >>> (eval-and-compile ;for flymake >>> (require 'autoload) >>> (let* ((backup-inhibited t) >>> (dir (locate-user-emacs-file "site-lisp")) >>> (load (expand-file-name "autoload.el" dir))) >>> (dolist (dir (directory-files dir t "^[^.]")) >>> (when (file-directory-p dir) >>> (add-to-list 'load-path dir) >>> (make-directory-autoloads dir load) >>> (byte-recompile-directory dir))) >>> (add-to-list 'load-path dir) >>> (load load nil t) >>> (kill-buffer (find-buffer-visiting load)))) >>> --8<---------------cut here---------------end--------------->8--- >> >> I think we could aim to make it easier for users to do this kind of >> thing, but I don't think we want to impose the cost of >> `make-directory-autoloads` and `byte-recompile-directory` at every startup. > > In that case, I would suggest considering my site-lisp.el proposal from > last year again. The reason I dropped it was because it was implied > that the functionality should be merged into package.el, but it seems > that this wouldn't be the right way to go about it either. The way I see it the package-from-source thingy you're working on in `feature/package+vc` provides a big part of that functionality and could even provide "all of it". I just that the "all of it" needs to be controlled by a config var because it would slow down startup too much for those who prefer a slightly less automatic setup where they need to manually ask Emacs to refresh a package after it has been modified/installed outside of Emacs's knowledge. Stefan