projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e76eaec
)
Support HTTPS URLs in newsticker-add-url
author
Stefan Kangas
<stefankangas@gmail.com>
Wed, 25 Oct 2023 12:34:15 +0000
(14:34 +0200)
committer
Stefan Kangas
<stefankangas@gmail.com>
Wed, 25 Oct 2023 14:27:08 +0000
(16:27 +0200)
* lisp/net/newst-backend.el (newsticker-add-url): Support HTTPS.
lisp/net/newst-backend.el
patch
|
blob
|
history
diff --git
a/lisp/net/newst-backend.el
b/lisp/net/newst-backend.el
index 055a38a76e3b4462ada1a6ea3dcd726a9b6f5987..726134874ff2881671c877f26c9755df3f1c1e2e 100644
(file)
--- a/
lisp/net/newst-backend.el
+++ b/
lisp/net/newst-backend.el
@@
-618,13
+618,13
@@
If URL is nil it is searched at point."
(end-of-line)
(and
(re-search-backward
- "http://"
+ (rx "http" (? "s") "://")
(if (> (point) (+ (point-min) 100))
(- (point) 100)
(point-min))
t)
(re-search-forward
- "http://[-a-zA-Z0-9&/_.]*"
+ (rx "http" (? "s") "://" (zero-or-more (any "-a-zA-Z0-9&/_.")))
(if (< (point) (- (point-max) 200))
(+ (point) 200)
(point-max))