From: Artur Malabarba Date: Fri, 27 May 2016 00:49:56 +0000 (-0300) Subject: Fix #49 - Don't vanish the beacon due to changes in the Echo Area X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/e3df6b5cf259a38bb2c0188cc70c7ca0f8e957eb Fix #49 - Don't vanish the beacon due to changes in the Echo Area --- diff --git a/beacon.el b/beacon.el index 8126c4344..6b71ee0b2 100644 --- 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))) ;;; Colors