]> git.eshelyaron.com Git - emacs.git/commitdiff
emacs-lisp/package.el (describe-package-1): Fix "incompat" handling.
authorArtur Malabarba <bruce.connor.am@gmail.com>
Fri, 13 Feb 2015 13:08:38 +0000 (13:08 +0000)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Fri, 13 Feb 2015 13:08:38 +0000 (13:08 +0000)
lisp/ChangeLog
lisp/emacs-lisp/package.el

index 75adddb038d2659aa402b4c558cb9fc543ab3b2a..030d572d90f3180abc802b714286cdb59df16113 100644 (file)
@@ -4,6 +4,7 @@
        (package--add-to-compatibility-table): New function.
        (package-read-all-archive-contents): Populate compatibility table.
        (package--incompatible-p): Also look in dependencies.
+       (describe-package-1): Fix "incompat" handling.
 
 2015-02-13  Lars Ingebrigtsen  <larsi@gnus.org>
 
index d9340e1494d90ab7d034dd42beeb4325e5d1df51..d8b4595b6e689305ae9bcb57809d61b94494cf2d 100644 (file)
@@ -1811,6 +1811,8 @@ the table."
          (installable (and archive (not built-in)))
          (status (if desc (package-desc-status desc) "orphan"))
          (signed (if desc (package-desc-signed desc))))
+    (when (string= status "incompat")
+      (setq status "incompatible"))
     (prin1 name)
     (princ " is ")
     (princ (if (memq (aref status 0) '(?a ?e ?i ?o ?u)) "an " "a "))
@@ -1825,9 +1827,7 @@ the table."
           (pkg-dir
            (insert (propertize (if (member status '("unsigned" "dependency"))
                                    "Installed"
-                                 (if (equal status "incompat")
-                                     "Incompatible"
-                                   (capitalize status))) ;FIXME: Why comment-face?
+                                 (capitalize status)) ;FIXME: Why comment-face?
                                'font-lock-face 'font-lock-comment-face))
            (insert " in `")
            ;; Todo: Add button for uninstalling.