diff options
| author | Stefan Kangas | 2023-10-25 14:34:15 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2023-10-25 16:27:08 +0200 |
| commit | aa79a5fc0fb7c33d5502fbb3e4ba98479323e06d (patch) | |
| tree | 1173c49b470c447b152f64bf6bce61a1022631d8 | |
| parent | e76eaecbdef9593a61503b55dea39fcf3a075640 (diff) | |
| download | emacs-aa79a5fc0fb7c33d5502fbb3e4ba98479323e06d.tar.gz emacs-aa79a5fc0fb7c33d5502fbb3e4ba98479323e06d.zip | |
Support HTTPS URLs in newsticker-add-url
* lisp/net/newst-backend.el (newsticker-add-url): Support HTTPS.
| -rw-r--r-- | lisp/net/newst-backend.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/net/newst-backend.el b/lisp/net/newst-backend.el index 055a38a76e3..726134874ff 100644 --- 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." | |||
| 618 | (end-of-line) | 618 | (end-of-line) |
| 619 | (and | 619 | (and |
| 620 | (re-search-backward | 620 | (re-search-backward |
| 621 | "http://" | 621 | (rx "http" (? "s") "://") |
| 622 | (if (> (point) (+ (point-min) 100)) | 622 | (if (> (point) (+ (point-min) 100)) |
| 623 | (- (point) 100) | 623 | (- (point) 100) |
| 624 | (point-min)) | 624 | (point-min)) |
| 625 | t) | 625 | t) |
| 626 | (re-search-forward | 626 | (re-search-forward |
| 627 | "http://[-a-zA-Z0-9&/_.]*" | 627 | (rx "http" (? "s") "://" (zero-or-more (any "-a-zA-Z0-9&/_."))) |
| 628 | (if (< (point) (- (point-max) 200)) | 628 | (if (< (point) (- (point-max) 200)) |
| 629 | (+ (point) 200) | 629 | (+ (point) 200) |
| 630 | (point-max)) | 630 | (point-max)) |