From: Stefan Kangas Date: Mon, 23 Oct 2023 23:01:07 +0000 (+0200) Subject: Prefer HTTPS to HTTP in thing-at-point X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b376580e975b311390308e49a2b4c951ff6a7574;p=emacs.git Prefer HTTPS to HTTP in thing-at-point * lisp/thingatpt.el (thing-at-point-url-at-point): Prefer HTTPS to HTTP. --- diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index 72acb0b749f..5d4f4df9131 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el @@ -565,9 +565,9 @@ looks like an email address, \"ftp://\" if it starts with ;; If it looks like ftp.example.com. treat it as ftp. (if (string-match "\\`ftp\\." str) (setq str (concat "ftp://" str))) - ;; If it looks like www.example.com. treat it as http. + ;; If it looks like www.example.com. treat it as https. (if (string-match "\\`www\\." str) - (setq str (concat "http://" str))) + (setq str (concat "https://" str))) ;; Otherwise, it just isn't a URI. (setq str nil))) str)))