Commit 643c67cf authored by Stefan Kangas's avatar Stefan Kangas
Browse files

Prefer HTTPS to HTTP in ffap

* lisp/ffap.el (ffap-fixup-machine): Prefer HTTPS to HTTP for things
looking like URIs (for example www.example.org).
parent 64aa01f6
Pipeline #26904 failed with stages
in 192 minutes and 26 seconds
......@@ -554,7 +554,7 @@ Looks at `ffap-ftp-default-user', returns \"\" for \"localhost\"."
(concat "gopher://" mach "/"))
;; www.ncsa.uiuc.edu
((and (string-match "\\`w\\(ww\\|eb\\)[-.]" mach))
(concat "http://" mach "/"))
(concat "https://" mach "/"))
;; More cases?
(ffap-ftp-regexp (ffap-host-to-filename mach))
))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment