Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function rmh-elfeed-org-filter-subscriptions is missing in latest version #78

Open
ssl19 opened this issue Feb 19, 2023 · 3 comments
Open

Comments

@ssl19
Copy link

ssl19 commented Feb 19, 2023

Currently, there is no rmh-elfeed-org-filter-subscriptions function in the latest version of elfeed-org, might be related with #76.

(subscriptions (rmh-elfeed-org-filter-subscriptions headlines))

@niallist
Copy link

niallist commented Jul 25, 2023

In my case elfeed-apply-autotags-now was failing when calling this function, and hopefully you've resolved this by now, but for anyone facing a similar problem, the following may help.

With the caveat that I'm very new to Emacs/Org/Lisp, and am not knowledgeable as to the potential ill side effects!

  • Grab an old copy of the function from the Spacelpa repo starting on line 246 here.
  • Stick it in the custom functions section of your init file
    • Near the top, or at least before any relevant packages(?) such as org, elfeed-org, elfeed or related commands are called.

The function from that file

;;;; Custom Functions

;; *DONE* Replace the missing function from elfeed-org's latest available version(s).
(defun rmh-elfeed-org-filter-subscriptions (headlines)
  "(Replacement) Filter subscriptions to rss feeds from the HEADLINES in the tree."
  (-non-nil (-map
             (lambda (headline)
               (let* ((text (car headline))
                      (link-and-title (s-match "^\\[\\[\\(http.+?\\)\\]\\[\\(.+?\\)\\]\\]" text))
                      (hyperlink (s-match "^\\[\\[\\(http.+?\\)\\]\\(?:\\[.+?\\]\\)?\\]" text)))
                 (cond ((s-starts-with? "http" text) headline)
                       (link-and-title (-concat (list (nth 1 hyperlink))
                                                (cdr headline)
                                                (list (nth 2 link-and-title))))
                       (hyperlink (-concat (list (nth 1 hyperlink)) (cdr headline))))))
             headlines)))

@LemonBreezes
Copy link
Contributor

LemonBreezes commented Aug 21, 2023

Hi. I'm working on this bug in my PR #81. Currently I have removed that function call as it seems to have been replaced with other functions elsewhere in the code. Right now I'm working on another issue where it seems the tag hooks are being exported twice:
image

@LemonBreezes
Copy link
Contributor

Man. There were a lot of bugs but I finally finished fixing this package and addressed this issue in PR #81.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants