elfeed-org icon indicating copy to clipboard operation
elfeed-org copied to clipboard

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

Open ssl19 opened this issue 2 years ago • 3 comments

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

https://github.com/remyhonig/elfeed-org/blob/3242ec0519800a58f20480c8a6e3b3337d137084/elfeed-org.el#L260

ssl19 avatar Feb 19 '23 08:02 ssl19

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)))

niallist avatar Jul 25 '23 02:07 niallist

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 avatar Aug 21 '23 17:08 LemonBreezes

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

LemonBreezes avatar Aug 22 '23 00:08 LemonBreezes