Skip to content

Commit

Permalink
Update index & entry buffers when reading list items are added/removed
Browse files Browse the repository at this point in the history
  • Loading branch information
swflint committed Jan 7, 2024
1 parent f0f65cc commit 83e50cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ebib-reading-list.el
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ return nil."
(insert (ebib--reading-list-fill-template key db))
(run-hooks 'ebib-reading-list-new-item-hook)
(save-buffer)
(ebib-db-set-current-entry-key (ebib--get-key-at-point) ebib--cur-db)
(ebib--update-buffers)
key)))

(defun ebib--reading-list-remove-item (key)
Expand All @@ -221,6 +223,8 @@ do nothing and return nil."
(funcall ebib-reading-list-remove-item-function)
(run-hooks 'ebib-reading-list-remove-item-hook)
(save-buffer)
(ebib-db-set-current-entry-key (ebib--get-key-at-point) ebib--cur-db)
(ebib--update-buffers)
key))))

(defun ebib--reading-list-fill-template (key db)
Expand Down

0 comments on commit 83e50cf

Please sign in to comment.