From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: Proposal for 'package-isolate' command Date: Thu, 17 Aug 2023 14:15:59 +0000 Message-ID: <875y5doiix.fsf@posteo.net> References: <87r0oftgye.fsf@posteo.net> <87350vt1wz.fsf@posteo.net> <871qgen1ln.fsf@posteo.net> <87edke4mou.fsf@posteo.net> <87wmy6kuan.fsf@posteo.net> <87wmy6w070.fsf@posteo.net> <87zg2sjleg.fsf@posteo.net> <87pm3nlbm7.fsf@posteo.net> <87zg2ri9g9.fsf@posteo.net> <87bkf7b7ls.fsf@posteo.net> <87v8dfi6zy.fsf@posteo.net> <877cpvb361.fsf@posteo.net> <87pm3mj0ot.fsf_-_@posteo.net> <87v8de9qel.fsf@posteo.net> <87pm3mgj8d.fsf@posteo.net> <87edk1ok5p.fsf@posteo.net> <87fs4hhijq.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39797"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Thierry Volpiatto , Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 17 16:23:38 2023 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 1qWduO-0009q3-LP for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Aug 2023 16:23:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWdtn-0003uh-QP; Thu, 17 Aug 2023 10:22:55 -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 1qWdtm-0003uZ-9z for emacs-devel@gnu.org; Thu, 17 Aug 2023 10:22:54 -0400 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 1qWdtj-0004lf-Nl for emacs-devel@gnu.org; Thu, 17 Aug 2023 10:22:54 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E0B46240027 for ; Thu, 17 Aug 2023 16:22:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692282169; bh=6f5TnyMePvBALzRCRCg4/Szd7epc2ZlSeSAM0/guKho=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Txy1+hm6/WZ+U15zaMZAx4yXl5YCisSkDPA+lCg6om4JPMRMbTpLZja1xlzJcOPqa rjzQxAfCSEm1pDPhJ/8iaU0GdzSMFGHfzm47E3RTUMiGZldeLl+IFss6NaEphYwte+ wQ8sYWhxaTvWj6nm/dBuTo1Pmr6PFcM/jejyv/qtNBKeDueEUDBECakNhpq40k6sBR mSn/0QFpplP2XtK9HSxPJ2hE4yOtwrBuZN61xUrpXAkSonVmHCggFZwvK/5009RXKs M/7OofkbDgzP+gXrYQWXrPgkTi7moozb0cPxOHRTNY/cEmDo53sxt3b6T/uY0xV96/ vS8pz4lqlZZ4w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RRRzr5qg2z6txh; Thu, 17 Aug 2023 16:22:48 +0200 (CEST) In-reply-to: <87fs4hhijq.fsf@posteo.net> Received-SPF: pass client-ip=185.67.36.65; envelope-from=thievol@posteo.net; helo=mout01.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:308869 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Philip Kaludercic writes: > Thierry Volpiatto writes: > >> Hello Philip, >> >> Philip Kaludercic writes: >> >>> Thierry Volpiatto writes: >>> >>>> Philip Kaludercic writes: >>>> >>>>>> No don't worry, helm will work in any cases, thanks. >>>>> >>>>> OK, in that case I'd prefer to keep it the way it is. >>>> >>>> Ok, fair enough. >>>> >>>>>>> Mainly to avoid issues with packages that might place files in the >>>>>>> configuration directory, which might hinder the reproduction of bug= s. >>>>>> >>>>>> Hmm, maybe, I don't have an example in mind though. >>>>> >>>>> It might not be the best example, but my package autocrypt generates a >>>>> file in the `user-emacs-directory'. If we don't use --init-directory, >>>>> the existing file would be re-used. >>>> >>>> Ok, for such case it is easy to either rename the file temporarily to >>>> foo_ori or foo_save or to set the variable handling the file (generally >>>> it is not harcoded) to something else. But another issue is if your >>>> isolated package needs the history file or tramp file or whatever file >>>> ~/.emacs.d is handling; e.g. a package providing completion on history. >>>> I still think it is more handy to reuse user-emacs-directory and its >>>> elpa directory where the packages are already installed. >>> >>> How about this patch, that will use a temporary directory when >>> `package-isolate' is invoked with a prefix argument (not sure what the >>> default should be, I guess reusing `user-emacs-directory' is less >>> surprising): >> >> Yes. >> >> Isn't these two loop the same? (save one loop) > > No, because that assumes that we are only interested in the first > package descriptor in every package--alist entry, while there might be > multiple. Ah ok. >> (cl-loop for p in (cl-loop for p in (package--alist) append (cdr p)) >> unless (package-built-in-p p) > > Also, do we want this or wouldn't it be useful to be able to force a > built-in package being loaded? Some packages seems to require a specific version of a package for their dependency e.g. seq, by excluding it the package may not work correctly, this is my understanding but I may be wrong. Also perhaps the package e.g. seq is selected later when computing dependencies but maybe user wants to select a particular version manually in the first place? =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmTeLTYTHHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvk7pWDAC3uoBpuBVyH1Nwy9mKoksM6qCC2zzH yUHyd7mHIyt4crEUIs0CFlP0vHDiEckXHRwUV6L0gEMXkqcgOmIvZH14fNsuqyer 81mHLxrPUG2Do2S7DZtPHjc8CmwHgRDzcx6mCH//xLdGDYwJmpVHrN4WTPVvyN46 MZqvkiHnW/hoOrGKGV/tYjqzPksE5oJ77Rq56xtEH53n9pEC3PXhfr9tmKPN7hpa S7zAMAwb2AYNkVApQTJ3hb3FyaF7KfFGcYATPlD2aPMsVhYijLDo4n5TPCg27VEN YJjKd1K6rGn9k0d7ojpCUeUBteuqMDRPjmNGIWGBJOEdzi7u9pjBQlqrpKKgr7Eg Avr7Tr5dz9OycoZVmc7vJH8Xl4neTjZEpDaB0EaO/6NTJDH7b80yY3sUR8oKinc8 DuFQ/s/oURYaAsUOUG3BwtMWAlkC2rRDelzqwQwQSxNSkOGEFnJ0ffixu1zMIM0V kM7dGipvk6OgAzZXimHM8TE+GHWH6htm0Bk= =G+kr -----END PGP SIGNATURE----- --=-=-=--