emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/calibre 9df0a29972 1/5: Return no books if an inclusive


From: ELPA Syncer
Subject: [elpa] externals/calibre 9df0a29972 1/5: Return no books if an inclusive with no matches is defined
Date: Thu, 18 May 2023 18:57:25 -0400 (EDT)

branch: externals/calibre
commit 9df0a2997261363583a1e133ea1c5f51da9da23c
Author: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Commit: Kjartan Óli Ágústsson <kjartanoli@disroot.org>

    Return no books if an inclusive with no matches is defined
    
    * calibre-core.el (calibre-library--filter): Return nil if any
    inclusive filters are passed and no books match them.
---
 calibre-core.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/calibre-core.el b/calibre-core.el
index 47b690794c..f7537e9565 100644
--- a/calibre-core.el
+++ b/calibre-core.el
@@ -245,7 +245,9 @@ FILTERS should be a list of vectors, for the exact contents 
see
                                                   (= id (calibre-book-id b)))
                                                 include-ids))
                                         books)
-                    books))))
+                    (if include
+                        nil
+                      books)))))
 
 ;; The ignored optional argument makes these functions valid arguments
 ;; to completion-table-dynamic.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]