branch: externals/slime-volleyball
commit 6f42cf75d7e7a4a79e053154400387a58967dd7f
Author: Steve Purcell <[email protected]>
Commit: Thomas Fitzsimmons <[email protected]>

    Fail when svg is not supported
    
    Without this check, the timer functions continue to
    run (and throw errors) even though the `slime-volleyball`
    function fails to set up and create the buffer.
---
 slime-volleyball.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/slime-volleyball.el b/slime-volleyball.el
index 09e613f..d81d062 100644
--- a/slime-volleyball.el
+++ b/slime-volleyball.el
@@ -1715,6 +1715,8 @@
 ;;;###autoload
 (defun slime-volleyball ()
   (interactive)
+  (unless (image-type-available-p 'svg)
+    (error "Sorry: this Emacs does not support svg images."))
   (setq slime-volleyball-starting t)
   (message "Loading slime strategies...")
   (load-file (expand-file-name "grey-slime.el.gz"

Reply via email to