From e9fa551463b04fa88b7aa4fab237236355f4aa76 Mon Sep 17 00:00:00 2001 From: Jordi Inglada Date: Sat, 27 Mar 2021 11:29:15 +0100 Subject: [PATCH 1/2] prot-eww: allow feed regex to match consecutive lines The previous regex didn't match if the 'type' and the 'href' tags are on different lines as for instance: --- emacs/.emacs.d/prot-lisp/prot-eww.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/.emacs.d/prot-lisp/prot-eww.el b/emacs/.emacs.d/prot-lisp/prot-eww.el index da0c4f137..8a9152472 100644 --- a/emacs/.emacs.d/prot-lisp/prot-eww.el +++ b/emacs/.emacs.d/prot-lisp/prot-eww.el @@ -128,7 +128,7 @@ new EWW buffer." "Produce Occur buffer with RSS/Atom links from XML source." (interactive) (eww-view-source) - (occur "\\(rss\\|atom\\)\\+xml.*href=[\"']\\(.*?\\)[\"']" "\\2") + (occur "\\(rss\\|atom\\)\\+xml.*.\n.*href=[\"']\\(.*?\\)[\"']" "\\2") (View-quit)) (defvar prot-eww-search-engines -- GitLab From 760303222146835b6d6cbb0c25ebe023d28fbf01 Mon Sep 17 00:00:00 2001 From: Jordi Inglada Date: Sat, 27 Mar 2021 17:01:20 +0100 Subject: [PATCH 2/2] prot-eww: allow feed regex to match consecutive lines The previous regex didn't match if the 'type' and the 'href' tags are on different lines as for instance: --- emacs/.emacs.d/prot-lisp/prot-eww.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/.emacs.d/prot-lisp/prot-eww.el b/emacs/.emacs.d/prot-lisp/prot-eww.el index 8a9152472..d09b53328 100644 --- a/emacs/.emacs.d/prot-lisp/prot-eww.el +++ b/emacs/.emacs.d/prot-lisp/prot-eww.el @@ -128,7 +128,7 @@ new EWW buffer." "Produce Occur buffer with RSS/Atom links from XML source." (interactive) (eww-view-source) - (occur "\\(rss\\|atom\\)\\+xml.*.\n.*href=[\"']\\(.*?\\)[\"']" "\\2") + (occur "\\(rss\\|atom\\)\\+xml.\\(.\\|\n\\).*href=[\"']\\(.*?\\)[\"']" "\\2") (View-quit)) (defvar prot-eww-search-engines -- GitLab