From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Feng Shu Newsgroups: gmane.emacs.bugs Subject: bug#59087: 29.0.50; package-vc-update error Date: Sat, 19 Nov 2022 13:06:26 +0800 Message-ID: <87edtz1qjx.fsf@163.com> References: <87v8nr333x.fsf@163.com> <874jv13h6c.fsf@posteo.net> <878rkdkmqe.fsf@163.com> <874jv01ray.fsf@posteo.net> <87fsejybcz.fsf@163.com> <871qq38g54.fsf@posteo.net> <87fsejcdm2.fsf@163.com> <87sfijnlce.fsf@posteo.net> <877czvcaz3.fsf@163.com> <87k03vnjgf.fsf@posteo.net> <87v8newgve.fsf@163.com> <87r0y1inku.fsf@posteo.net> <874juxgcqd.fsf@163.com> <871qq0k2o9.fsf@posteo.net> <87sfig7a4o.fsf@163.com> <878rk8i8yo.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36802"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59087@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 19 06:07:20 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1owG4U-0009Kw-6X for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Nov 2022 06:07:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owG4H-0005As-8B; Sat, 19 Nov 2022 00:07:05 -0500 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 1owG4F-0005Ae-48 for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 00:07:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owG4E-0000e6-Ro for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 00:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owG4E-0002tI-FK for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 00:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Feng Shu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Nov 2022 05:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59087 X-GNU-PR-Package: emacs Original-Received: via spool by 59087-submit@debbugs.gnu.org id=B59087.166883441111091 (code B ref 59087); Sat, 19 Nov 2022 05:07:02 +0000 Original-Received: (at 59087) by debbugs.gnu.org; 19 Nov 2022 05:06:51 +0000 Original-Received: from localhost ([127.0.0.1]:38710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owG3o-0002sY-7e for submit@debbugs.gnu.org; Sat, 19 Nov 2022 00:06:51 -0500 Original-Received: from m12.mail.163.com ([220.181.12.199]:47936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owG3l-0002sN-5r for 59087@debbugs.gnu.org; Sat, 19 Nov 2022 00:06:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=5peYd uv8msbZY8JBWOrL9ZmQTfFtc9ZC5dzbMvmPpj0=; b=BT2cML0V0r+m+GUHOwKhM 2aqN799Pmtpce7bgEUep6deA2nleiisKDCQZyAaxap/AUGV63V3k5mVv8mLWclAw o4bfpaEXdbqH7kwzlX9pDF9sk3Cp6q78jwFOPKZz3WEWnanPgdwYooyqZvyj98g2 VU0Ol7hI5aNNQdO1lYZNZc= Original-Received: from Guix (unknown [49.88.144.183]) by zwqz-smtp-mta-g4-3 (Coremail) with SMTP id _____wD3_9NSZHhjYWkKAA--.12849S2; Sat, 19 Nov 2022 13:06:27 +0800 (CST) In-Reply-To: <878rk8i8yo.fsf@posteo.net> (Philip Kaludercic's message of "Fri, 18 Nov 2022 15:22:07 +0000") X-CM-TRANSID: _____wD3_9NSZHhjYWkKAA--.12849S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7uFW8ur1DtFW3Aw1kXw1xGrg_yoW8uFW5p3 42yF1DX34kKr10qrnrKw10kF1Ykws5Jr1aqwnrJ34IkF1qg340qFWIvF4Fkr12krnxA3Wj kw40kw43W3y5A3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0z_2-e3UUUUU= X-Originating-IP: [49.88.144.183] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiHRO+1GI671m1TgAAsx X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248299 Archived-At: Philip Kaludercic writes: > Feng Shu writes: > >> Philip Kaludercic writes: >> >>> Feng Shu writes: >>> >>>> Philip Kaludercic writes: >>>> >>>>> Feng Shu writes: >>>>> >>>>>> I have found another issue: >>>>>> >>>>>> If I run package-update when emacs first start, it will show error: >>>>>> >>>>>> package-update: Symbol=E2=80=99s function definition is void: packag= e-vc-update >>>>> >>>> >>>> When I install another package, for example: cnfonts, package-update do >>>> not show cnfonts, I need to reboot emacs. >>> >>> That is interesting, it the package listed in the Package List before >>> restarting? >> >> I have installed cnfonts tar from melpa before, when I delete it, >> package-update show cnfonts.=20 > > Ok, so it looks like the issue is in the following: > > (seq-filter > (lambda (elt) > (or (let ((available > (assq (car elt) package-archive-contents))) > (and available > (version-list-< > (package-desc-version (cadr elt)) > (package-desc-version (cadr available))))) > (package-vc-p (cadr (assq (car elt) package-alist))))) > package-alist) > > > specifically the > > (package-vc-p (cadr (assq (car elt) package-alist))) > > We store all package descriptions in `package-alist', but here we only > check the first one (which is also the one I believe that is activated). > > But after restarting Emacs, package.el makes sure that VC packages are > prioritised, so that is why the check does work later on. > > The question is, what package is enabled? I'd say that if after > installation, you run M-x find-library and end up in the MELPA > directory, then we would have to make up our mind of this is the right > thing or not. > > But if the VC package is active, then we just have to make sure that it > is inserted at the beginning of the list, and not at the end. > After I install popon and corfu-terminal, and reboot emacs. package-update show nothing, but package-vc-update-all works, after package-vc-update-all finish, package-update will show popon and corfu-term= inal. --=20