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

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

[nongnu] elpa/symbol-overlay 0707b8cc3e 146/152: Cancel a buffer’s ‘sym


From: ELPA Syncer
Subject: [nongnu] elpa/symbol-overlay 0707b8cc3e 146/152: Cancel a buffer’s ‘symbol-overlay-cancel-timer’ when it is killed
Date: Thu, 7 Jul 2022 12:04:23 -0400 (EDT)

branch: elpa/symbol-overlay
commit 0707b8cc3e1746c7f4aba00e4a325f72c6a7d480
Author: Matt Beshara <m@mfa.pw>
Commit: Matt Beshara <m@mfa.pw>

    Cancel a buffer’s ‘symbol-overlay-cancel-timer’ when it is killed
---
 symbol-overlay.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/symbol-overlay.el b/symbol-overlay.el
index 2150c5e4f8..f7ebd4ebf6 100644
--- a/symbol-overlay.el
+++ b/symbol-overlay.el
@@ -227,6 +227,7 @@ You can re-bind the commands to any keys you prefer.")
   (if symbol-overlay-mode
       (progn
         (add-hook 'post-command-hook 'symbol-overlay-post-command nil t)
+        (add-hook 'kill-buffer-hook 'symbol-overlay-cancel-timer)
         (symbol-overlay-update-timer symbol-overlay-idle-time))
     (remove-hook 'post-command-hook 'symbol-overlay-post-command t)
     (symbol-overlay-cancel-timer)



reply via email to

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