Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b376580e
Commit
b376580e
authored
Oct 24, 2023
by
Stefan Kangas
Browse files
Prefer HTTPS to HTTP in thing-at-point
* lisp/thingatpt.el (thing-at-point-url-at-point): Prefer HTTPS to HTTP.
parent
ad47beb8
Pipeline
#26885
failed with stages
in 176 minutes and 53 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lisp/thingatpt.el
lisp/thingatpt.el
+2
-2
No files found.
lisp/thingatpt.el
View file @
b376580e
...
...
@@ -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 http
s
.
(
if
(
string-match
"\\`www\\."
str
)
(
setq
str
(
concat
"http://"
str
)))
(
setq
str
(
concat
"http
s
://"
str
)))
;; Otherwise, it just isn't a URI.
(
setq
str
nil
)))
str
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment