aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2017-04-04 19:39:57 -0400
committerGlenn Morris2017-04-04 19:39:57 -0400
commitf981c611e26e906a88ee52806c78e07bbaa2b14b (patch)
tree5bedc87417f22ec9b510d3d19000adbd8f1f69e9
parent048133d4886d2e7fa547879478127edc9a9243f6 (diff)
downloademacs-f981c611e26e906a88ee52806c78e07bbaa2b14b.tar.gz
emacs-f981c611e26e906a88ee52806c78e07bbaa2b14b.zip
Advertise https for homepage of gnu.org packages
* lisp/emacs-lisp/package.el (describe-package-1): Use https, if supported, for the homepage of packages on gnu.org.
-rw-r--r--lisp/emacs-lisp/package.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index fadd869c9d9..85acf60d08e 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -2354,6 +2354,13 @@ Otherwise no newline is inserted."
2354 (package-desc-name pkg)))) 2354 (package-desc-name pkg))))
2355 (insert "\n"))) 2355 (insert "\n")))
2356 (when homepage 2356 (when homepage
2357 ;; Prefer https for the homepage of packages on gnu.org.
2358 (let ((gnu (cdr (assoc "gnu" package-archives))))
2359 (and gnu
2360 (string-match-p "^https" gnu)
2361 (string-match-p "^http://\\(elpa\\|www\\)\\.gnu\\.org/" homepage)
2362 (setq homepage
2363 (replace-regexp-in-string "^http" "https" homepage))))
2357 (package--print-help-section "Homepage") 2364 (package--print-help-section "Homepage")
2358 (help-insert-xref-button homepage 'help-url homepage) 2365 (help-insert-xref-button homepage 'help-url homepage)
2359 (insert "\n")) 2366 (insert "\n"))