mirror of
https://github.com/SqrtMinusOne/elfeed-summary.git
synced 2025-12-10 17:43:03 +03:00
fix: action-mark-read
This commit is contained in:
parent
76f447bd0e
commit
07486b6058
1 changed files with 6 additions and 6 deletions
|
|
@ -655,7 +655,7 @@ POS and EVENT are forwarded to `widget-button-press'."
|
|||
(let ((elfeed-summary--search-show-read t))
|
||||
(elfeed-summary--action pos event)))
|
||||
|
||||
(defun elfeed-summary--widget-press-mark-read (pos &optional event)
|
||||
(defun elfeed-summary--action-mark-read (pos &optional event)
|
||||
"Press a button with `elfeed-summary--search-mark-read' set to t.
|
||||
|
||||
POS and EVENT are forwarded to `widget-button-press'."
|
||||
|
|
@ -663,14 +663,14 @@ POS and EVENT are forwarded to `widget-button-press'."
|
|||
(let ((elfeed-summary--search-mark-read t))
|
||||
(elfeed-summary--action pos event)))
|
||||
|
||||
(defun elfeed-summary--mark-read (feed)
|
||||
"Mark all items in the FEED as read.
|
||||
(defun elfeed-summary--mark-read (feeds)
|
||||
"Mark all the FEEDS items as read.
|
||||
|
||||
FEED is an instance of `elfeed-feed'."
|
||||
FEEDS is a list of instances of `elfeed-feed'."
|
||||
(when (or (not elfeed-summary-confirm-mark-read)
|
||||
(y-or-n-p "Mark all entries in feed as read? "))
|
||||
(with-elfeed-db-visit (entry feed-2)
|
||||
(when (equal feed feed-2)
|
||||
(with-elfeed-db-visit (entry feed)
|
||||
(when (member feed feeds)
|
||||
(when (member elfeed-summary-unread-tag (elfeed-entry-tags entry))
|
||||
(setf (elfeed-entry-tags entry)
|
||||
(seq-filter (lambda (tag) (not (eq elfeed-summary-unread-tag tag)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue