; * lisp/emacs-lisp/package.el (describe-package-1): Tweak recent.
This commit is contained in:
parent
fe8cf45710
commit
ab0a27517c
1 changed files with 5 additions and 6 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Reference in a new issue