branch: externals/minimap
commit 2ff29c5d6abae3637d6174d889f39745fcd13fa5
Author: Adam Spiers <[email protected]>
Commit: Lars Ingebrigtsen <[email protected]>

    Check whether timer exists before killing it in minimap
    
    * packages/minimap/minimap.el (minimap-kill): Check whether the
    timer exists before killing it.  This avoids signalling an error.
---
 minimap.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/minimap.el b/minimap.el
index c360673..98c8a15 100644
--- a/minimap.el
+++ b/minimap.el
@@ -4,7 +4,7 @@
 
 ;; Author: David Engster <[email protected]>
 ;; Keywords:
-;; Version: 1.3
+;; Version: 1.4
 
 ;; This file is part of GNU Emacs.
 
@@ -531,7 +531,8 @@ Re-use already existing minimap window if possible."
   (interactive)
   (when (minimap-get-window)
     (delete-window (minimap-get-window)))
-  (cancel-timer minimap-timer-object))
+  (when minimap-timer-object
+    (cancel-timer minimap-timer-object)))
 
 ;;; Minimap update
 

Reply via email to