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: Docs on ELPA (was Re: Adding Flycheck to NonGNU ELPA) Date: Sat, 24 Feb 2024 08:04:52 +0000 Message-ID: <87edd28ezf.fsf@posteo.net> References: <87ttlzqhuw.fsf@posteo.net> <5321a510-250a-4b48-9ad8-02a590a64aa2@alphapapa.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="2991"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Adam Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 24 09:05:46 2024 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 1rdn2X-0000ZA-Ky for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Feb 2024 09:05:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdn1p-0008NU-3O; Sat, 24 Feb 2024 03:05:01 -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 1rdn1n-0008Lc-Lo for emacs-devel@gnu.org; Sat, 24 Feb 2024 03:04:59 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdn1l-0002RJ-At for emacs-devel@gnu.org; Sat, 24 Feb 2024 03:04:59 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B92A8240103 for ; Sat, 24 Feb 2024 09:04:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708761893; bh=86eFJgY3G4mSJtdE6yGXdW81pImIFS9ynfsm4DtC9So=; h=From:To:Cc:Subject:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=WSWQcw+LeXDqbcn/UHfMt9vnsq9mBngdZq+yVHEK7z9+KzZsVyUQhd/zO+Olsfbzn SAlnkCHUlnaWtgn98CwPr0xzqjldyhAUDyzTUqVdudVye8jZxrO08W+pwC6Yueh8j+ Gr4dOO2ED6WUEWY/XfpTKqzeq8BfZHNpfO8xsXXfqr3KDNxERKOgyqyL17hr/2uQ11 ByUl6vxfidxCAyfoAi1KTQE+wfaUYoTS/G+YR2BvGfHguLgrC1bnQP4d534C8ewyeb GsE07CgzgcWezl36iBUH2X3m4KLThJcdiKeDQggh/rXpO7k9x/KnLT4GOTWNYyQIdf gZDcMNT83Rl8g== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4ThfYc6n9xz9rxR; Sat, 24 Feb 2024 09:04:52 +0100 (CET) In-Reply-To: <5321a510-250a-4b48-9ad8-02a590a64aa2@alphapapa.net> (Adam Porter's message of "Fri, 23 Feb 2024 17:37:52 -0600") OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316481 Archived-At: Adam Porter writes: >> Something similar I had in mind was a variation on package-install that >> wouldn't persist the installation, and instead of extracting the files >> into .../elpa/, would store them in a /tmp/ sub-directory. That would >> go further than what you are describing, but would make trying out a >> package easier. > > FYI, that exists in the form of the `try' package available on > MELPA. I am surprised to hear that someone had to write a package for that, when the basic functionality can be provided by --8<---------------cut here---------------start------------->8--- (defun package-install-temporarily (pkg) (interactive (progn (package--archives-initialize) (list (intern (completing-read "Try: " package-archive-contents))))) (let ((package-user-dir (make-temp-file "package-tmp" t nil))) (package-install pkg t))) --8<---------------cut here---------------end--------------->8--- (and if we extracted the interactive part from package-install, then it would be even shorter). Another idea would be to provide a generic temporary package prefix command or minor mode. > It works well. Maybe it could be added to GNU ELPA. Or maybe > a `package-try' command could be added to package.el. That name is a bit short, and it is not clear what is meant. Try to install a package, try to find a package, etc.