emacs-devel
[Top][All Lists]
Advanced

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

Sort definition-prefixes?


From: Glenn Morris
Subject: Sort definition-prefixes?
Date: Wed, 18 Apr 2018 20:41:35 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Hi,

Should definition prefixes be sorted to prevent meaningless churn like
in http://lists.gnu.org/r/emacs-diffs/2018-04/msg00007.html ?
Or is the frequency (?) order that they are now in useful for anything?

--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -607,7 +607,8 @@ autoload--make-defs-autoload
                       nil))))
               prefixes)))
         `(if (fboundp 'register-definition-prefixes)
-             (register-definition-prefixes ,file ',(delq nil strings)))))))
+             (register-definition-prefixes ,file ',(sort (delq nil strings)
+                            'string<)))))))



reply via email to

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