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

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

[elpa] externals/calibre 1d23ae29ff 1/9: Use pop instead of (setf lst (c


From: ELPA Syncer
Subject: [elpa] externals/calibre 1d23ae29ff 1/9: Use pop instead of (setf lst (cdr lst))
Date: Tue, 16 Jan 2024 12:57:40 -0500 (EST)

branch: externals/calibre
commit 1d23ae29ff61695a08f4910c242e6cd17e38adf7
Author: Kjartan Oli Agustsson <kjartanoli@disroot.org>
Commit: Kjartan Oli Agustsson <kjartanoli@disroot.org>

    Use pop instead of (setf lst (cdr lst))
    
    * calibre-search.el (calibre-library-clear-last-search): Use pop
      instead of setf-ing calibre-library--filters to its cdr.
    
    pop macroexpands to equivalent code but communicates intent better
    using less characters.
---
 calibre-search.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calibre-search.el b/calibre-search.el
index d2064f349e..c17d1170a8 100644
--- a/calibre-search.el
+++ b/calibre-search.el
@@ -82,7 +82,7 @@ ARGS is the argument list of a transient command."
   "Clear the last applied search filter."
   (interactive)
   (when calibre-library--filters
-    (setf calibre-library--filters (cdr calibre-library--filters)))
+    (pop calibre-library--filters))
   (calibre-library--refresh))
 
 (transient-define-prefix calibre-search ()



reply via email to

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