From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: package-update-all from command line Date: Wed, 25 May 2022 11:14:19 -0400 Message-ID: References: <877d6bd2a2.fsf@gnu.org> Reply-To: sds@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="19086"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) To: emacs-devel@gnu.org, Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 25 17:33:08 2022 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 1ntt0W-0004hQ-Lw for ged-emacs-devel@m.gmane-mx.org; Wed, 25 May 2022 17:33:08 +0200 Original-Received: from localhost ([::1]:59308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntt0V-0002AV-1h for ged-emacs-devel@m.gmane-mx.org; Wed, 25 May 2022 11:33:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntsia-0006gH-Ev for emacs-devel@gnu.org; Wed, 25 May 2022 11:14:38 -0400 Original-Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:37778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntsiY-0003kG-Hs; Wed, 25 May 2022 11:14:36 -0400 Original-Received: by mail-qt1-x835.google.com with SMTP id y15so12971590qtx.4; Wed, 25 May 2022 08:14:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:user-agent :return-receipt-to:reply-to:mail-followup-to:date:message-id :mime-version; bh=1OreK8vlLX+sfTtQZHOBgQolZzzPPAQ6ACZQfPe/Rys=; b=H0t/mr+3ntrPatfpaP67pVPbUPNaBIUCsKmBeWMrcectPh1fEw05um7rGXUaA26wHK tBHGiHEmuTFl1KnjXTEPJljp4GuLZqMl5VuYWF1ssgqa/Ohf0/onY/u3qlxzQXLy3JSW suqzm3y3FWxYKhmGZRXbaUwF5mvlDxmIY46m0SY5Qq9tcJUYqGDKQeRDY0jZH5tEpyss sK4dNKR37sd7pDNJYF7x/644qKSf/FWeSXTiA5CnsMSoKDtw/ZZKAC8+AIMNmHjtBuPg QcVYdlaGijiYSav/633KDldF2Z8TCKdXlxbQjcjL9gM9IJ6Jl8jzy2z55HGOGs58al90 Rjrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:subject:in-reply-to:references :user-agent:return-receipt-to:reply-to:mail-followup-to:date :message-id:mime-version; bh=1OreK8vlLX+sfTtQZHOBgQolZzzPPAQ6ACZQfPe/Rys=; b=5zpQBx2Igp89nW6DIOCyfvPdeqEFLT3Y1q+FxRHqZjFRM6ole2RwybOjXAWZAhyV3c /FRB9MfE2TQlmhuT+PSKOkV2II0uHUgbd7+1sNL35oifa5ysBt+I8AG2PmjoBRalAa7W lon8I3lhvD0numg7F+mtEeZH1yfraKFX7EZQS10W4G8otCT8glWCoTxRIbK3ue9OJguu MVbHPYN8MdHxax90xePeLMpQOGZRGjpUlXQnAqdYNkIjvPdW2BfbCoa42Y66gZJ+bJpQ m4MOD6K/JVzsW2BBCC6xNSyiueynoVGLMxx0PjVsFtPg641VR83HSBYnoYZ+end4c3EV +PxA== X-Gm-Message-State: AOAM532c/Eo3ZHwnMHh5wvV94bAmIsj/sV+XlrhgPtoX3bhalGnGe24J VlcWDLfMRyZw7zP7zcZFGLFoJCgPuw== X-Google-Smtp-Source: ABdhPJxH7Q4dygZOAVTjmybkcpqnno85EjHrnuP/XWyRWA0cS87aH/xueEtTT8s4Owt9FxrL5vFE9A== X-Received: by 2002:a05:622a:592:b0:2f9:29ff:daf5 with SMTP id c18-20020a05622a059200b002f929ffdaf5mr17394036qtb.601.1653491661993; Wed, 25 May 2022 08:14:21 -0700 (PDT) Original-Received: from 3c22fb11fdab.ant.amazon.com (pool-108-30-23-113.nycmny.fios.verizon.net. [108.30.23.113]) by smtp.gmail.com with ESMTPSA id d204-20020a379bd5000000b006a09515d012sm1364735qke.50.2022.05.25.08.14.20 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 May 2022 08:14:21 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 24 May 2022 15:55:41 -0400") X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Mail-Followup-To: emacs-devel@gnu.org, Stefan Monnier Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=sam.steingold@gmail.com; helo=mail-qt1-x835.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" Xref: news.gmane.io gmane.emacs.devel:290254 Archived-At: > * Stefan Monnier [2022-05-24 15:55:41 -0400]: > > Ah, that might be it. Indeed the quickstart file contains: > > `(setq package-activated-list > (append ',(mapcar #'package-desc-name package--quickstart-pkgs) > package-activated-list)) > > :-( > >> One is not supposed to do that, of course... > > If it happens accidentally, please report it as a bug. WDYM "accidentally"? At any rate, I think replacing `append' with `cl-union' (or equivalent) in the code above would be a good idea. >>> `package-archives` is a completely different problem because it's >>> a defcustom which may be set to a different value in the user's config >>> in all kinds of different ways, and which may be eval'd either before or >>> after loading the quickstart file, so it *would* mess up the user's >>> config in various circumstances. >> so save a new non-user variable like `package-current-archives' instead, >> so that I can set `package-archives' from it on the command line. > > Setting `package-archives` from `package-current-archives` doesn't seem > much easier than the ad-hoc addition of "melpa" you're currently using, > so it doesn't seem like a great improvement. It helps me maintain my additions to `package-archives' in _one_ place (.emacs) instead of 2 places (.emacs + the command line). >>> Maybe a more general way to attack this problem would be to try and >>> create a "quickinit.el" file which is a bit like a "dump" of the user's >>> config, so it can be used instead of loading `init.el`? >> here we already have package-quickstart.el which can be re-used. > > AFAIK the problem is not how to name the file but what to put into it. I am not talking about naming, but rather reusing an existing file for a related purpose. -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com https://thereligionofpeace.com https://www.dhimmitude.org Beliefs divide, doubts unite.