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

No tagging when masking user's elfeed-feeds with another list and running elfeed-update. #497

Open
kakafarm opened this issue Nov 5, 2023 · 1 comment

Comments

@kakafarm
Copy link

kakafarm commented Nov 5, 2023

I want to write a function that would update a different feed list each time it is called.

(defun update-a-different-feed-list-each-call ()
  (let ((elfeed-feeds (make-a-random-feed-list)))
    (elfeed-update)))

The function make-a-random-feed-list behaves correctly, producing a legal feed list each time, feed lists like:

'(("https://example.com/blog/rss" blog example)
  ("https://example.com/podcast/rss" podcast example))

The function elfeed-update adds new entries to the elfeed database with only the unread tag, without blog, example, or podcast.

If I define the function in this way:

(defun update-a-different-feed-list-each-call ()
  (setq elfeed-feeds (make-a-random-feed-list))
  (elfeed-update))

each of the new entries has the expected tags, but the user defined list of feeds is overwritten.

How do I provide a dynamically generated feed list for elfeed from which to fetch entries and properly tag them while also not overwriting the user configuration?

@kakafarm kakafarm changed the title No tagging when masking user's efleed-feeds with another list and running elfeed-update. No tagging when masking user's elfeed-feeds with another list and running elfeed-update. Nov 5, 2023
@kakafarm
Copy link
Author

kakafarm commented Nov 6, 2023

This one also only adds the "unread" tag:

(defun update-a-different-feed-list-each-call ()
  (let ((old-elfeed-feeds elfeed-feeds))
    (setq elfeed-feeds (make-a-random-feed-list))
    (elfeed-update)
    (setq elfeed-feeds old-elfeed-feeds)))

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

1 participant