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

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

[nongnu] elpa/dslide 8b4336db4d 02/16: use the current slide's filter


From: ELPA Syncer
Subject: [nongnu] elpa/dslide 8b4336db4d 02/16: use the current slide's filter
Date: Mon, 25 Nov 2024 01:00:01 -0500 (EST)

branch: elpa/dslide
commit 8b4336db4db4d6c3c6e310e288d96f766d3535ff
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>

    use the current slide's filter
    
    Which may be more specific
    
    Still not correct for child slides...
---
 dslide.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dslide.el b/dslide.el
index cae9e76094..a8b8235b50 100644
--- a/dslide.el
+++ b/dslide.el
@@ -829,7 +829,9 @@ Class can be overridden to affect root behaviors.  See
            (user-error "No more previous slides!")))))
 
 (cl-defmethod dslide--filter-function ((obj dslide-deck))
-  (oref obj filter))
+  ;; If the active slide has a more specific filter, return that
+  (or (oref (oref obj slide) filter)
+      (oref obj slide)))
 
 (cl-defmethod dslide--choose-slide ((obj dslide-deck) how)
   "Set the current slide of OBJ, according to HOW."



reply via email to

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