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.bugs Subject: bug#60418: [PATCH] Add :vc keyword to use-package Date: Wed, 12 Apr 2023 07:34:01 +0000 Message-ID: <87r0spa712.fsf@posteo.net> References: <87zgb6uk2r.fsf@hyperspace> <87tu0tl1s4.fsf@hyperspace> <87a5zt2emd.fsf@betli.tmit.bme.hu> <87fs9l9bim.fsf@posteo.net> <87y1n3zsro.fsf@posteo.net> <871qku220f.fsf@betli.tmit.bme.hu> <874jpq920b.fsf@posteo.net> <87cz4ezpwi.fsf@betli.tmit.bme.hu> <87h6tlinft.fsf@hyperspace> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39386"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60418@debbugs.gnu.org, Felician Nemeth , stefankangas@gmail.com To: Tony Zorman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 12 09:45:24 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pmVAR-000A2L-TZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Apr 2023 09:45:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmVA9-0004os-5q; Wed, 12 Apr 2023 03:45:05 -0400 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 1pmVA6-0004oK-Ne for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 03:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmVA6-00007m-DG for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 03:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmVA5-0002CE-Qg for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 03:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Apr 2023 07:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60418 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 60418-submit@debbugs.gnu.org id=B60418.16812854678346 (code B ref 60418); Wed, 12 Apr 2023 07:45:01 +0000 Original-Received: (at 60418) by debbugs.gnu.org; 12 Apr 2023 07:44:27 +0000 Original-Received: from localhost ([127.0.0.1]:38933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmV9X-0002AY-1K for submit@debbugs.gnu.org; Wed, 12 Apr 2023 03:44:27 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:57423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmV9U-0002A9-Fi for 60418@debbugs.gnu.org; Wed, 12 Apr 2023 03:44:25 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id ED5A12401B7 for <60418@debbugs.gnu.org>; Wed, 12 Apr 2023 09:44:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681285459; bh=7E4LUgL8e5ZXj748C9IwOZPZIMthjqtB9J4c+0uZEig=; h=From:To:Cc:Subject:Date:Autocrypt:From; b=pQwSUv7mwnR0sS4t8cRAR6rt3AX+IAYJqn0RxAIwVzGwG37zjpfSgg70lfo8Hiwju CGRZ3GIrjGFvRplI3Ey++7EiGFglDmQsrnov8DrwUPbfkrSUFBKzGYMrzALx+tc7eE rQ9wzoTzBMOL3LZwM2TlBfxFg3DH3N+7oqg0bW0nMghoxgxeHUkMV+ZUAU+6grdX2G lsVCJMj3XkkgY842+MHGCZhRhANRtABzA8AEftQYg/WPbBguXUpdfsbhpzXS5iQDcs QTCQW4nTJ+vUweLtYvFBqLfny2LR5lz7zRqM0rpdpk+gTafdIpmI1PfGcEDKjZX/rF T54gx19BAoSLA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PxF8d6jm4z9rxL; Wed, 12 Apr 2023 09:44:17 +0200 (CEST) In-Reply-To: <87h6tlinft.fsf@hyperspace> (Tony Zorman's message of "Wed, 12 Apr 2023 09:12:22 +0200") Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259705 Archived-At: Tony Zorman writes: > On Sat, Apr 08 2023 11:25, Felician Nemeth wrote: >>> [...] All I want to understand is the motivation behind this feature >>> in the first place. >> >> One use-case is to let package developers to distribute thier packages >> without a package archive. Or more precisely, to let users conveniently >> install packages that are not in a package archive. > > FWIW, this was also my motivation for making this change. It's just > incredibly convenient to be able to do this without installing > third-party dependencies. I think that this is a legitimate point, and I would be ready to push this change if you could adjust the patch to checkout the latest release instead of the latest commit by default, as Felician proposed. Does that sound good to you? > Further, it also makes testing out new changes very easy. For example, I > wanted to try out the overhauled LaTeX preview system that was proposed > for Org mode [1]. Rather than having to clone the respective repo and > check out the branch manually, this was just a > > (use-package org > :vc (:url "https://git.tecosaur.net/tec/org-mode.git" :branch "dev")) > > away, which is certainly a win in my book. To be fair, use-package is not necessary here. You can also just use package-vc-checkout to download a package to some directory and check it out that way. I have a command somewhere that even automates the selection and would just "install" the package for a single session. > [1]: https://lists.gnu.org/archive/html/emacs-orgmode/2023-03/msg00196.html