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

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

[elpa] externals/ellama 92fa390ba6 1/3: Fix for closures on stream done


From: ELPA Syncer
Subject: [elpa] externals/ellama 92fa390ba6 1/3: Fix for closures on stream done
Date: Fri, 5 Jul 2024 18:57:55 -0400 (EDT)

branch: externals/ellama
commit 92fa390ba61ef75c1f1c7998b3ed008b11d96200
Author: Sergey Kostyaev <sskostyaev@gmail.com>
Commit: Sergey Kostyaev <sskostyaev@gmail.com>

    Fix for closures on stream done
---
 ellama.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ellama.el b/ellama.el
index edb619d8c8..bad86298fe 100644
--- a/ellama.el
+++ b/ellama.el
@@ -1305,7 +1305,8 @@ failure (with BUFFER current).
                                    (with-current-buffer buffer
                                      (accept-change-group ellama--change-group)
                                      (spinner-stop)
-                                     (if (listp donecb)
+                                     (if (and (listp donecb)
+                                              (functionp (car donecb)))
                                          (mapc (lambda (fn) (funcall fn text))
                                                donecb)
                                        (funcall donecb text))



reply via email to

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