]> git.eshelyaron.com Git - emacs.git/commitdiff
Always display the "Archive" column in the package list
authorPhilip Kaludercic <philipk@posteo.net>
Wed, 15 Mar 2023 15:47:48 +0000 (16:47 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Wed, 15 Mar 2023 15:49:20 +0000 (16:49 +0100)
* lisp/emacs-lisp/package.el (package-menu-mode): Always display
column.
(package-menu--print-info-simple): Always provide column information.

Since NonGNU ELPA has been added to the default value of
'package-archives', this condition is practically never satisfied,
meaning the code can be simplified.

lisp/emacs-lisp/package.el

index a0bb5e753937ba30c941ef680e87800fa0166294..0258ed52beeafc9c2e203a4e60d6dd6b7c688806 100644 (file)
@@ -3083,8 +3083,7 @@ The most useful commands here are:
         `[("Package" ,package-name-column-width package-menu--name-predicate)
           ("Version" ,package-version-column-width package-menu--version-predicate)
           ("Status"  ,package-status-column-width  package-menu--status-predicate)
-          ,@(if (cdr package-archives)
-                `(("Archive" ,package-archive-column-width package-menu--archive-predicate)))
+          ("Archive" ,package-archive-column-width package-menu--archive-predicate)
           ("Description" 0 package-menu--description-predicate)])
   (setq tabulated-list-padding 2)
   (setq tabulated-list-sort-key (cons "Status" nil))
@@ -3512,9 +3511,8 @@ Return (PKG-DESC [NAME VERSION STATUS DOC])."
                  (package-desc-version pkg)))
               'font-lock-face face)
             ,(propertize status 'font-lock-face face)
-            ,@(if (cdr package-archives)
-                  (list (propertize (or (package-desc-archive pkg) "")
-                                    'font-lock-face face)))
+            ,(propertize (or (package-desc-archive pkg) "")
+                                    'font-lock-face face)
             ,(propertize (package-desc-summary pkg)
                          'font-lock-face 'package-description)])))