From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63757: 29.0.91 order of package paths changed: random old versions of packages in load-path Date: Mon, 05 Jun 2023 10:55:50 -0400 Message-ID: References: <87ttvnoehl.fsf@posteo.net> <8335377iyo.fsf@gnu.org> <87h6rnoa8v.fsf@posteo.net> <83v8g35ybo.fsf@gnu.org> <87cz2bo3qu.fsf@posteo.net> <83pm6b5t1i.fsf@gnu.org> <878rczo28v.fsf@posteo.net> <83o7lv5sjc.fsf@gnu.org> <874jnno1bi.fsf@posteo.net> <83mt1f5rab.fsf@gnu.org> <87zg5fmkgk.fsf@posteo.net> <83a5xf5k65.fsf@gnu.org> <87cz2bxkz5.fsf@posteo.net> <87v8g3t6k4.fsf@posteo.net> <87ttvmbawt.fsf@posteo.net> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38693"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 63757@debbugs.gnu.org, artscan@list.ru To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 05 16:56:21 2023 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 1q6Bd7-0009p3-61 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Jun 2023 16:56:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6Bcr-0001Ld-It; Mon, 05 Jun 2023 10:56:05 -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 1q6Bcp-0001LU-2B for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2023 10:56:03 -0400 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 1q6Bco-0006t0-Ng for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2023 10:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6Bco-00026K-0n for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2023 10:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jun 2023 14:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63757 X-GNU-PR-Package: emacs Original-Received: via spool by 63757-submit@debbugs.gnu.org id=B63757.16859769618069 (code B ref 63757); Mon, 05 Jun 2023 14:56:01 +0000 Original-Received: (at 63757) by debbugs.gnu.org; 5 Jun 2023 14:56:01 +0000 Original-Received: from localhost ([127.0.0.1]:50080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6Bcm-000265-Mc for submit@debbugs.gnu.org; Mon, 05 Jun 2023 10:56:00 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:7113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6Bck-00025s-MJ for 63757@debbugs.gnu.org; Mon, 05 Jun 2023 10:55:59 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 6601A80796; Mon, 5 Jun 2023 10:55:53 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 38B498023E; Mon, 5 Jun 2023 10:55:52 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1685976952; bh=KI9iMRj0vzhkCCjqolSCkWnKr5E8T5xolOH83l/ekp8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=GRLFVaWNAaWfb52639sHkaseXKzFeHaBaqVelc3j83WRRVCwo2dKd2npHLu0C8mlS qkSd2iFw8hgF7+9A1VzlRnVKXA1cVxktFa9KOCvr2Wm2d9l0VhaK1l9TYZTu0K6xlU O9Hye9y3r+IViajH2+qyFZJvgE/vjn9XVG9f5o3BgCVTgq5Z7h3aRIkCKFZjRAQAxp 0ibM4LYEkqnmnhotNsDBWrSWNJPUBAJt1QL30aD5RaID6QqBEg/a8MUHje95+DXb/0 PydnWbjsJ0omzCKe8AQAUsqc4rRJKg/7IhSM6UeUFYcObBT9GivlCUbOd0KaitzG/6 Rlg7G7sDEjj7g== Original-Received: from alfajor (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E85511202AA; Mon, 5 Jun 2023 10:55:51 -0400 (EDT) In-Reply-To: <87ttvmbawt.fsf@posteo.net> (Philip Kaludercic's message of "Mon, 05 Jun 2023 07:55:46 +0000") 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:263018 Archived-At: > But in this case, if a regular package is upgraded, and a VC package > weren't (even though the user might have written some patch they are > relying on), it would be suddenly switch when starting up Emacs at some > point. Yup. AFAIK both behaviors (staying with the VC package, and switching to the non-VC package) can be "incorrect", depending on the circumstances. So I don't see this as "a bug". Note also that in the session where we perform the install of the upgraded package, the upgraded package will take precedence over the VC package, so it's mildly more consistent to do the same at startup. If the user wants to keep using the older VC package, there's always to option to use `package-pinned-packages` or to remove the non-VC package. If we want to do better, rather than forcing VC packages to the top we should detect when the ordering between VC and non-VC packages changes and emit a warning or prompt the user. Stefan