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

Restore support of file:// and gopher:// links. Fixes #96 #97

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sarg
Copy link

@sarg sarg commented Jan 4, 2025

No description provided.

sarg added 5 commits January 4, 2025 10:04
PR remyhonig#88 introduced a regression where rmh-elfeed-org-mark-feed-ignore
stopped working properly. The ignores were made in a temp buffer and not
saved back.
@@ -3,9 +3,9 @@
;; Copyright (C) 2014 Remy Honig

;; Author : Remy Honig <[email protected]>
;; Package-Requires : ((elfeed "1.1.1") (org "8.2.7") (cl-lib "0.5"))
;; Package-Requires : ((emacs "28.1") (elfeed "1.1.1") (org "8.2.7"))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string-clean-whitespace requires 28.1
cl-lib is bundled in

@@ -85,20 +85,21 @@ Return t if it does or nil if it does not."

(defun rmh-elfeed-org-mark-feed-ignore (url)
"Set tag `rmh-elfeed-org-ignore-tag' to headlines containing the feed URL."
(dolist (org-file rmh-elfeed-org-files)
(with-temp-buffer
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with-temp-buffer made this function ineffective. The changes were not saved to the disk

(mapcar
(lambda (headline)
(let* ((text (car headline))
(link-and-title (and (string-match "^\\[\\[\\(http.+?\\)\\]\\[\\(.+?\\)\\]\\]" text)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused code, the headlines are already parsed in the input

@@ -5,12 +5,6 @@
(rmh-elfeed-org-cleanup-headlines '(("" elfeed tag1) ("" elfeed tag2)) 'elfeed)
'(("" tag1) ("" tag2)))))

(xt-deftest rmh-elfeed-org-convert-headline-to-tagger-params
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate test

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

Successfully merging this pull request may close these issues.

1 participant