feature/popup: fix 'Cancelled timer' spam

https://youtu.be/fn4jIlFwuLU
This commit is contained in:
Henrik Lissner 2018-01-06 16:38:37 -05:00
parent eab079724d
commit 03d77c0bef
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -3,7 +3,8 @@
(defun +popup--cancel-buffer-timer ()
"Cancel the current buffer's transient timer."
(when (timerp +popup--timer)
(message "Cancelled timer")
(let ((inhibit-message (not doom-debug-mode)))
(message "Cancelled timer in %s" (current-buffer)))
(cancel-timer +popup--timer)
(setq +popup--timer nil))
t)