From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: package-update-all from command line Date: Fri, 27 May 2022 12:21:16 +0200 Message-ID: <87r14f9syr.fsf@gnus.org> References: <87r14hes20.fsf@gnus.org> <877d69223i.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="14335"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 27 12:29:11 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 1nuXDT-0003Zr-O1 for ged-emacs-devel@m.gmane-mx.org; Fri, 27 May 2022 12:29:11 +0200 Original-Received: from localhost ([::1]:41096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuXDS-0001vs-JD for ged-emacs-devel@m.gmane-mx.org; Fri, 27 May 2022 06:29:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuX5z-0005pj-FG for emacs-devel@gnu.org; Fri, 27 May 2022 06:21:29 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:56758) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuX5x-0004Zi-3p; Fri, 27 May 2022 06:21:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kqmYP3TscTftt6O97CONpLeY5WblGFAxAgmhrcQlGB0=; b=H/00R7lY6RdN0EjAq6JMRN5ZVH g9v9u9hP9xmJG6uD6d9XS56LbrsBmtQUVjTjdW4IyGEciYmOEGKig4PkblYO1FMVdE9VYoKbNNHn9 Kr5JKL1EWVb5ERbCBmlg+Jkw3gNCoFltVE/tM3o1MeX6aBWeZ5s3msY/w8NZbAehKOCQ=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuX5q-0006me-FC; Fri, 27 May 2022 12:21:21 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEWvra3DurvTz86V kZOEe4BmX2c5NT/////DykhKAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YFGwoON2iYAIYAAAGbSURB VDjLddNLcoMwDABQEZeuDblA8QkcZLruNLBnasQFOuj+R6j8wUPSoJls/KyPsQPQmFfxAdC0JwBV pK79ByJ7PEEUyJYSmwQpmmPouKQmWokIJW6hXQGNxMybGP0ECEupip62VYhp7TPkUOQdRWqfYO0B nVRazBEsvJExGnJvs4+q0DqCsFPD5ZihEIZF2SquPWbowYNDC43sbZ8AFS2IVnI6Y3f4uk4ecUjH 69p63uE7Ag7MfdNUV7+XeusT4LBaUEAtZqh7lQCVlJv6YT7CGAVX/q1nXeA6LWMWmi3YAlpKjIkA 1b4O9fdHGHXEcB+EFgv8dOHD0peT69oQdSk1GxU3W3R3Gbovzb0JTdKlOxzm/YD1dulS/dTJl4zt ZlRKoWUkupfmPLedvKAciy0Z7CujMYvHqvTgzV5Ewsx3lJsMoOT3zuxtmx6DlRvs0nVH2O5hodHh SXcgjBmYMD2G/IqwAEt1qMI4cnR/BKb83V0Y7AgcjrBP/ADpb3CET36MAgpfBTzEP1AnGWelXq27 s97DyboAnsAfc5uzr9+2q1YAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDUtMjdUMTA6MTQ6NTUr MDA6MDB6MfV1AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA1LTI3VDEwOjE0OjU1KzAwOjAwC2xN yQAAAABJRU5ErkJggg== X-Now-Playing: A. G. Cook's _7G (2): Guitar_: "Gold Leaf" In-Reply-To: <877d69223i.fsf@gnu.org> (Tassilo Horn's message of "Wed, 25 May 2022 14:27:16 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org 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, 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" Xref: news.gmane.io gmane.emacs.devel:290300 Archived-At: Tassilo Horn writes: > Lars Ingebrigtsen writes: >> Yes, perhaps -update-all should also call -refresh-contents? > > IMHO, yes. I've now done this. > The same question applies to `package-update' but there it > would be annoying if it always refreshed first when updating one package > after the other. So maybe the refreshes should be restricted to "there > hasn't been a refresh in the last ". Yes, perhaps that'd be nice? But I'd expect somebody who'd use that function would already know that the package in question has an update, so a refresh might not be vital there. Or... Hm. No, I think you're right. Perhaps it should only do these refreshes when called interactively, though? > However, your "emacs -batch -l ~/.emacs ..." recipe doesn't work with > every init file, at least it didn't work with mine. I use > `user-init-file' in my ~/.emacs.d/init.el which is nil if emacs is > started with -batch, and it seems that packages are not initialized so > emacs complained about void-function use-package. I've catered for it > in my init file now but I guess -batch -l cannot be > recommended as a general practice for this purpose. It's a bit of a chicken/egg problem, perhaps? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no