bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63757: 29.0.91 order of package paths changed: random old versions o


From: Philip Kaludercic
Subject: bug#63757: 29.0.91 order of package paths changed: random old versions of packages in load-path
Date: Sun, 04 Jun 2023 12:12:16 +0000

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Philip Kaludercic <philipk@posteo.net>
>> Cc: artscan@list.ru,  monnier@iro.umontreal.ca,  63757@debbugs.gnu.org
>> Date: Sun, 04 Jun 2023 11:39:53 +0000
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> > Is that a reverse diff or something?  The code we have now already
>> > does sort the list...
>> 
>> No, the current code passes a non-nil NOSORT flag to `directory-files',
>> which inhibits sorting?

I'm sorry, that was the wrong patch -.-

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index de5108430aa..fdc09a939be 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -739,7 +739,7 @@ package-load-all-descriptors
 updates `package-alist'."
   (dolist (dir (cons package-user-dir package-directory-list))
     (when (file-directory-p dir)
-      (dolist (pkg-dir (directory-files dir t "\\`[^.]" t))
+      (dolist (pkg-dir (directory-files dir t "\\`[^.]"))
         (when (file-directory-p pkg-dir)
           (package-load-descriptor pkg-dir))))))
 
(I attached the *vc-diff* buffer, but before sending the message I
invoked vc-diff again which modified the buffer contents.  Should have
just copied the diff manually...)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]