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: Proposal for 'package-isolate' command Date: Wed, 16 Aug 2023 18:48:48 +0000 Message-ID: <87il9ej01b.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> <83y1ic8790.fsf@gnu.org> <87r0o4jd6n.fsf_-_@posteo.net> <83v8df8c0i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7466"; mail-complaints-to="usenet@ciao.gmane.io" Cc: thievol@posteo.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 16 20:49:48 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 1qWLaV-0001is-Us for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Aug 2023 20:49:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWLZq-0003Dl-Rb; Wed, 16 Aug 2023 14:49:06 -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 1qWLZh-0003Bh-CH for emacs-devel@gnu.org; Wed, 16 Aug 2023 14:48:59 -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 1qWLZd-00039U-7u for emacs-devel@gnu.org; Wed, 16 Aug 2023 14:48:57 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id BFD3D240028 for ; Wed, 16 Aug 2023 20:48:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692211730; bh=UWyzfn7+S6wFoPWsot3H4j1S9c0AYs9DZfEDlilX2qU=; h=From:To:Cc:Subject:Autocrypt:Date:Message-ID:MIME-Version:From; b=KNDERCTTkoGSoHxDs4Ds1INx3MVE69qkXC5zWo3UrIk/YMbRDpvf3AcOHlZbmr4Ck Z997Sxu2IzoAomDxOUcAPZ6CVmkxSwF91OZSqqJcgz0GN54NXecmydMfsZ7rI8P1zb zsKxMwKDsHGcXgh/sUSEd3IVu+MmQbFkR93d31KN2SndIbMAguA/n0dH3SHSpERbC1 0e6tAWoN7nH8sEzVYdvJ755MyZbGlt2FUnNiPoHN7I9xd+tg2brAUStSP7n7yVWMb7 IgD3ibCkF4E07GybOgyYhNoZWG6q7GU70EzqXT8TKg3RNi6Gm8Pisk4dCEznnH+CMs XiWNdOrPEBbBA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RQxxG1q2Hz6tyF; Wed, 16 Aug 2023 20:48:50 +0200 (CEST) In-Reply-To: <83v8df8c0i.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 16 Aug 2023 14:25:33 +0300") 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 Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@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:308833 Archived-At: Eli Zaretskii writes: >> From: Philip Kaludercic >> Cc: thievol@posteo.net, emacs-devel@gnu.org >> Date: Tue, 15 Aug 2023 19:52:32 +0000 >> >> Eli Zaretskii writes: >> >> > Seems strange to me to have a command to start another Emacs. Why not >> > implement this as a command-line option instead? That would be >> > consistent with the several options we already have, like -q, -Q, -D, >> > which already contrl what happens at startup. >> >> Mainly because this wouldn't support a completing-read interface, that >> simplifies prompting the user for a set of packages. > > Shells can complete as well, right? And once you typed the command > once, shells have features to help you invoke commands from history, > so you won't need to retype it more than once. Each shell requires individual completion support, and figuring out what packages are installed outside of Emacs to ensure input like "magit-3.3.0,corfu-0.37" is well formed, seems too much work to me. What would be reasonable, might be a function that could be invoked from batch mode. emacs -Q --batch -f package-isolate-batch magit corfu >> But perhaps the bulk of this command could be implemented as a CLI >> option, that this command could wrap? > > Maybe. But again, it's strange to have to launch another process from > Emacs for such a simple functionality. And if the number of packages > to load is large, typing them manually would be annoying anyway, so > people will probably store the list in a file or something? So maybe > we should allow specifying a file with the list of packages as well? I don't know how this package would be used, but the way I imagine it is that a package maintainer asks the user to run M-x package-isolate RET foo-1.2.3 RET with only a few packages, to make the reproduction of bugs easier, as is the case with Helm, which is what prompted this tangent. >> >> + (make-symbolic-link real link t) >> > >> > Using symbolic links makes the program less portable, so it is best to >> > avoid them. >> >> The reason I used them here, instead of just adding the directories >> under ~/.config/emacs/elpa/ is that startup.el issues a warning along >> the lines of >> >> Your `load-path' seems to contain your `user-emacs-directory' ... >> >> My previous patch actually included the code that suppresses all >> warnings during initialisation, so I've removed this hack. > > I don't understand how this is different from a "normal" startup of > Emacs with all the packages. Here, you just want to load part of the > packages that are loaded normally, so why does this warning pop up in > this case, but not when Emacs starts "normally"? I'm probably missing > something. The point is moot anyway, since the approach that Thierry proposed circumvents the issue to begin with.