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

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

[elpa] master 3a638b2: Check whether timer exists before killing it in m


From: Lars Ingebrigtsen
Subject: [elpa] master 3a638b2: Check whether timer exists before killing it in minimap
Date: Sun, 13 Sep 2020 10:13:00 -0400 (EDT)

branch: master
commit 3a638b22f5342c55bd8d4311f639ec82550c845d
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.
---
 packages/minimap/minimap.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/packages/minimap/minimap.el b/packages/minimap/minimap.el
index c360673..98c8a15 100644
--- a/packages/minimap/minimap.el
+++ b/packages/minimap/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]