diff options
| author | Ivan Sokolov <ivan-p-sokolov@ya.ru> | 2023-03-24 23:27:13 +0300 |
|---|---|---|
| committer | Stefan Kangas <stefankangas@gmail.com> | 2023-10-01 14:25:13 +0200 |
| commit | a96dc984dd6fd6e81a1ee53e4d82bd7ff9789f49 (patch) | |
| tree | 68589423d6cc3b12579fe826267caeb62ffa1b7a | |
| parent | 9966db38b2c021057fe2671344f5880e6750cf35 (diff) | |
| download | emacs-a96dc984dd6fd6e81a1ee53e4d82bd7ff9789f49.tar.gz | |
Sort package-selected-packages on save
| -rw-r--r-- | lisp/emacs-lisp/package.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 5a50888..e23a61c 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1986,7 +1986,7 @@ Used to populate `package-selected-packages'." ;; It is valid to set it to nil, for example when the last package ;; is uninstalled. But it shouldn't be done at init time, to ;; avoid overwriting configurations that haven't yet been loaded. - (setq package-selected-packages value)) + (setq package-selected-packages (sort value #'string<))) (if after-init-time (customize-save-variable 'package-selected-packages package-selected-packages) (add-hook 'after-init-hook #'package--save-selected-packages))) |
