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

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

[elpa] externals/minimap 2ff29c5 09/10: Check whether timer exists befor


From: Stefan Monnier
Subject: [elpa] externals/minimap 2ff29c5 09/10: Check whether timer exists before killing it in minimap
Date: Tue, 1 Dec 2020 16:26:47 -0500 (EST)

branch: externals/minimap
commit 2ff29c5d6abae3637d6174d889f39745fcd13fa5
Author: Adam Spiers <emacs@adamspiers.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 <deng@randomsample.de>
 ;; 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

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