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: Changes to make in elpa-packages file for nongnu elpa Date: Wed, 16 Aug 2023 06:51:29 +0000 Message-ID: <87pm3nlbm7.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> 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="13633"; 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 Wed Aug 16 08:57:02 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 1qWASi-0003Lg-Mu for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Aug 2023 08:57:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWARm-0004Va-1N; Wed, 16 Aug 2023 02:56:03 -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 1qWARf-0004V9-Kg for emacs-devel@gnu.org; Wed, 16 Aug 2023 02:55:56 -0400 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 1qWARc-0001di-Oy for emacs-devel@gnu.org; Wed, 16 Aug 2023 02:55:55 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7A037240106 for ; Wed, 16 Aug 2023 08:55:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692168949; bh=dhSk712HduUXCJJiPX0qeoi3jzygzN2H8UbGdsVYUU8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Autocrypt:OpenPGP: From; b=XCIPxRoq8Wl2y6Vzgib3eSRuYuC29ZdRZHyQxXTtGQ+eGr8/c5NWTj+j6QAD8gxmh BQtwtW26oZTI4M3ay/vGBUiSRzsNT8LnAw7QAl5diB3dBq26f+M7W92sPnnnRSSgVJ 4zZWVMXCrBLFOQ6R+B/d/U7E23VNFBtrn7EjTUGLMVan6qNbIMEmhg1VgVXQ3opK4+ w+A/qy8QqPoHl38p3HbfrWg97DDWSSEWLfYZx7qNd6MjMPZg25YFp5zEgXREvphNR1 Uxa6crOy0D2+SwhBjFSRaYlwcNoiEcnxUsPeW57im9s8k97E22H0lcBrdYO33B3atL PDpFrYeFZ8I4g== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RQf6W38wvz6twY; Wed, 16 Aug 2023 08:55:47 +0200 (CEST) In-reply-to: <87zg2sjleg.fsf@posteo.net> Autocrypt: addr=thievol@posteo.net; prefer-encrypt=mutual; keydata=xsDNBF8ylcIBDADG+hy+zR6L4/vbdDDZuSaMmSrU3A5QZJpeBCvxTr7MpzzruZbhLPW1K3R6N2MAedi8Y+C8o27FVRIjpdbaKMGu9je7JV/TbUQYo3SOwCK1vM4LUn4V6ZLzSYkuiEt4eyMoiDdyvN0pkcK6P9x9DCetcEVszXzQg+yzCVrQ2hXWDXWT4M18EC3wtO7RHPouMqGiwBFhBAYErCqFWFxQHkfbtG/4yGyJ58rglb65O3qijjMWvYwcWZun9/7qm8Z4/4mHopmo2zgU+OrptnLSZfkZGz3Y7Uf452xQGVq0Fv75NPvQru7y+DYVhuVXXyAmGxt+vf4rIiixMBbhKEPjcxEPAa2LTzex2IsTZR+QVG9uDnqCWcgaOEQ58fzXNvNhtwwF/Rgio2XWAJVdmFWS59/k9W58CIUSNKBMZh2XeGdEmtHvDtCxW3z6FJha36RzOM3fMNNiAGdFZJA84gcdloJR+sHCDTTPT3784fjr+V8An7sI581NGFzkRQqPvEQCZbUAEQEAAc0SdGhpZXZvbEBwb3N0ZW8ubmV0wsEOBBMBCgA4AhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmL3HCoACgkQDsVtFB0W75OVEAv/f6XxmtIFz08fUb8hBp/zJP6IC4/rhhh+0GMRIRzLN8DK0jV8JCzYdFHiRJOy2lNIOpmrrCmjRRxferc2G42+ePFIsslxhU46VSz1Z83NwIG3mpdYNV5WUTUdgzx ExHTNTFCd7NKv0nlHKQaAtdXm5bYnSHsnL7cx8z OpenPGP: url=https://posteo.de/keys/thievol@posteo.net.asc; preference=encrypt Received-SPF: pass client-ip=185.67.36.66; envelope-from=thievol@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_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:308798 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Philip Kaludercic writes: > Philip Kaludercic writes: > >>>>> It is used specially for reproducing bugs in a clean environment, see= it >>>>> as emacs -Q for Emacs when reporting bugs. This script starts Emacs -Q >>>>> with only Helm loaded, this ensure the bug if one comes from Helm and >>>>> not another package. This is important especially nowaday people are >>>>> using "Emacs distribution" with the world list of packages installed. >>>>> Apart that the script is useful to quickly launch Emacs with helm, one >>>>> can use it from the Helm directory or symlinked to e.g. ~/bin.=20 >>>> >>>> I see. In that case is there any reason you implement this as a shell >>>> script? >>> >>> Well when I wrote the script, packages where not existing and from >>> outside emacs it is actually the only way to run a package isolated. >>> >>>> (It might be interesting to provide something like this for >>>> package.el, to test packages in a generic way.) >>> >>> Yes, this would be interesting, it would be something like this: >>> >>> Emacs -Q >>> M-x >> packages nuisances> >> >> I was actually thinking of a command like >> >> M-x package-isolate RET foo,bar,baz RET >> >> and a new instance of Emacs using -Q is spun up, with all the packages >> you have listed loaded, and nothing else... Sounds like a fun little >> weekend project ;^) > > Here is my first attempt at providing this kind of a command. Any > comments? Why not reusing package.el functions? Why do you want to start in an isolated elpa directory? Isn't something like this suffice? (just missing to fallback to CRM when helm is not available) (defun package-isolate (packages) "Start an uncustomised Emacs and only load a set of PACKAGES." (interactive (list (let ((helm-comp-read-use-marked t)) (completing-read "Packages: " (mapcar #'car (package--alist)= ))))) (let* ((name (concat "package-isolate-" (mapconcat #'identity packages ","))) (deps (cl-loop for p in packages for sym =3D (intern p) append (package--dependencies sym)))) (apply #'start-process (concat "*" name "*") nil (list (file-truename (expand-file-name invocation-name invoc= ation-directory)) "--quick" "--debug-init" (format "--eval=3D%S" `(progn (require 'warnings) (add-to-list 'warning-suppress-log-types 'in= itialization) (require 'package) (setq package-load-list ',(append (mapcar (lambda (p) (list (intern= p) t)) packages) (mapcar (lambda (p) (list p t)) d= eps))) (package-initialize))))))) > [2. text/x-diff; 0002-Add-command-to-start-Emacs-with-specific-packages.p= atch]... > > [3. text/x-diff; 0001-Add-a-function-to-query-the-Emacs-executable.patch]= ... =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmTccvATHHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvk1ygDACQjOkhf/kbIQqywOFimox8EeTue3xD PbQrnPWhcVPq803EYsvKlvAzaGOxR573DwHAvMHYVcocAh+GCBsGLli9bPqM/jVz eNMl42Smf4tjiz4jInzTL3O9Uc+FezmJPl8kQ2NceD4IdztO9EbAYiKSztllD1II /20MhQunhoJndvEyeX0iJta4Q7LyB+dixbKprMT0AYw1swOtMcAPOrsYWsv7HVzV Q3W+VW/JrPi420mhpPCqvYOJVdU/Ep+vJ+u+mCGT/uISQo9fjjeODLVH8+YXj/6V 0lcX5NuWuoC025g7OSHPtUcinhKc9HLXzDZhyrR/REq3I1t/GwmxpBwrwPP8zRvh HgSzH7JQJjKgj2t7VkECgq1BTReXpufdRZ684a4q6Ww4kl6xCWs9uagqUmE/TPGi cJj8xw6TUUWrZJ99jQ1H2YNMtpd0zwdv5u9j7E998k8wjfZ3MhD7Ty2s5HCQpqLe Q6CTG9X1vJ25H5PkHfj+8eCFuOoE1oJo3tY= =yVjR -----END PGP SIGNATURE----- --=-=-=--