]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix #49 - Don't vanish the beacon due to changes in the Echo Area
authorArtur Malabarba <bruce.connor.am@gmail.com>
Fri, 27 May 2016 00:49:56 +0000 (21:49 -0300)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Fri, 27 May 2016 00:49:56 +0000 (21:49 -0300)
beacon.el

index 8126c43448c824665a1655d4f9b32169db4d1af0..6b71ee0b2bdf084d22c0b6a5a3a323eab891fee3 100644 (file)
--- a/beacon.el
+++ b/beacon.el
@@ -242,10 +242,12 @@ COLORS applied to each one."
 
 (defun beacon--vanish (&rest _)
   "Turn off the beacon."
-  (when (timerp beacon--timer)
-    (cancel-timer beacon--timer))
-  (mapc #'delete-overlay beacon--ovs)
-  (setq beacon--ovs nil))
+  (unless (string-match "\\` \\*\\(temp-buffer\\|Echo Area.*\\)\\*"
+                        (buffer-name))
+    (when (timerp beacon--timer)
+      (cancel-timer beacon--timer))
+    (mapc #'delete-overlay beacon--ovs)
+    (setq beacon--ovs nil)))
 
 \f
 ;;; Colors