]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/emacs-lisp/package.el (describe-package-1): Tweak recent.
authorGlenn Morris <rgm@gnu.org>
Wed, 5 Apr 2017 00:19:24 +0000 (20:19 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 5 Apr 2017 00:19:24 +0000 (20:19 -0400)
lisp/emacs-lisp/package.el

index 85acf60d08edcabbcf8e8f42dadcfe62ff76cc68..769856262b4176491464f5e43c908b72fd340ef8 100644 (file)
@@ -2355,12 +2355,11 @@ Otherwise no newline is inserted."
         (insert "\n")))
     (when homepage
       ;; Prefer https for the homepage of packages on gnu.org.
-      (let ((gnu (cdr (assoc "gnu" package-archives))))
-        (and gnu
-             (string-match-p "^https" gnu)
-             (string-match-p "^http://\\(elpa\\|www\\)\\.gnu\\.org/" homepage)
-             (setq homepage
-                   (replace-regexp-in-string "^http" "https" homepage))))
+      (if (string-match-p "^http://\\(elpa\\|www\\)\\.gnu\\.org/" homepage)
+          (let ((gnu (cdr (assoc "gnu" package-archives))))
+            (and gnu (string-match-p "^https" gnu)
+                 (setq homepage
+                       (replace-regexp-in-string "^http" "https" homepage)))))
       (package--print-help-section "Homepage")
       (help-insert-xref-button homepage 'help-url homepage)
       (insert "\n"))