From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS Date: Fri, 18 Feb 2022 09:57:32 +0100 Message-ID: <87pmnktuv7.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8620"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Philip Kaludercic , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 18 10:09:38 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 1nKzGj-00020y-62 for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Feb 2022 10:09:37 +0100 Original-Received: from localhost ([::1]:52050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nKzGh-000512-Jk for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Feb 2022 04:09:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKzCL-0002xn-Jk for emacs-devel@gnu.org; Fri, 18 Feb 2022 04:05:11 -0500 Original-Received: from [2a00:1450:4864:20::62b] (port=35515 helo=mail-ej1-x62b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nKzCH-0006vd-H1 for emacs-devel@gnu.org; Fri, 18 Feb 2022 04:05:04 -0500 Original-Received: by mail-ej1-x62b.google.com with SMTP id qk11so13485779ejb.2 for ; Fri, 18 Feb 2022 01:04:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=40zHMdO/05GsAy3tv7ZK2ndHD1c/DkmAeXP0+Wqtju8=; b=VzpkVz23JZ/Qbb7TQgsNUy7hNPB9jUn02bmOAe4mKqvXt5qzxEjGB5xRtW5HPSn76i Z+4naS4djS0YTyFkhIb8Y3GVZOqFnrWael67K8IWFVqNIMjTaDsMhUdOLh0EwtSyDZ3U MjeBi2ArkTWg7+0y/oFbHr0NlZV/4yyxcKL8q3fFnEsIUuj2o+XC2BCmjOK6BBXbIbyp U7llxZc2FqOVr2V8ar+L8oqOrMkf++xuVK92FC2+6yVhWxb2364J08ui5FA1oYS+/+tw qYnqyjnuGoD/P6+2QQic/wCtJx2IdgJlyFs5DtXcjBPS1IhDRxZzA8pzwvP6HY1WooVf wUOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=40zHMdO/05GsAy3tv7ZK2ndHD1c/DkmAeXP0+Wqtju8=; b=eLF4CVskyyoBnTFoT8ZWQZq0uKqcB2PQGa1LrXSfRVPWykd7qEsQc+OW+HlnIYPZ2m FoVgtenQk7slQNfscEB3X9LmuKd3FYlDnJBocTu0GYyaMisNAdjxrNEcvk1VkPEQ0EpR Z7Ca5HPoYTnQm7Mzbr7DyNELIgVQhmeMwvWt587xcoS1PSxFzKgBTD2mCQ6rpdOPlp36 U6yWtWgVTzMrrI/Ljc8V3cCva5+zFJw9lvFqtOhu22m+wx6UPNSgQnEWP91tI3Je2SIg vnC3a7NHVlj6dJbP+bskPNhmdx1YpCwmKmHk/JBTvwb2ctKHzWRNII+QDqB4rON5/XHr pa6Q== X-Gm-Message-State: AOAM533SYL9/mSMxCsvi+GixlJtfdUlkoDdoBppCldIko80dpvoNeEC+ Oy7l99RIcBu0NEGNvXLH5Gzw/CjllyY= X-Google-Smtp-Source: ABdhPJzEQSaB2XyTjzvePDoFEJkWAgyL506miHFDJRpFm60zW3YVMgw/8dvL3JiaEi9mXiJr6KGRww== X-Received: by 2002:a17:906:95d5:b0:6b3:2e97:25ab with SMTP id n21-20020a17090695d500b006b32e9725abmr5665697ejy.322.1645174654198; Fri, 18 Feb 2022 00:57:34 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::758e]) by smtp.gmail.com with ESMTPSA id s19sm1678793edx.60.2022.02.18.00.57.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 00:57:33 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Wed, 16 Feb 2022 21:56:19 -0500") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::62b (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=arstoffel@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:286438 Archived-At: On Wed, 16 Feb 2022 at 21:56, Stefan Monnier wrote: > I don't think we should spend too much time trying to support the case > where a user only does `git clone` and expects Emacs to notice the new > package and set it up magically. Instead, I'd expect > `package-activate-all` to warn the user about a missing `-pkg.el` > when collecting the available packages and about a missing > `-autoloads.el` file when trying to activate a given package. > > Then the user can use some `package--refresh` or somesuch to > (re)create those files (and (re)compile the `.el` files along the way > and (re)generate the docs, ...). > >> Say a repository consists of only an init.el, and a few submoduled git >> repositories under /elpa/devel/. These wouldn't include the -pkg.el or >> -autoload.el files, so they should be generated as soon as necessary. > > Let those users write specific code for that if they so wish. > Generating the `-pkg.el` file as well as the `-autoloads.el` > cannot be done fully automatically in all cases. More specifically it > may require the package's spec to find the `:main-file` and other such > things. I don't think we should aim for that level of automation yet. It seems reasonable that installing a new package from source will take a certain number of steps. On the other hand, there is also the case of personal configuration files to consider. Parts of my config are under ~/.emacs.d/lisp and I would like to autoload (and perhaps byte-compile) definitions from there files without having to worry about anything. I believe such a feature would make sense for lots of people.