]> code.delx.au - gnu-emacs-elpa/commitdiff
Don't blink on the minibuffer
authorArtur Malabarba <bruce.connor.am@gmail.com>
Thu, 15 Oct 2015 15:27:05 +0000 (16:27 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Thu, 15 Oct 2015 15:27:05 +0000 (16:27 +0100)
beacon.el

index b9a7072dda5557d4d7c2d67a28f24b321473fba2..76d7652de8ba4f14c1e5e05fa93468f84055e5c9 100644 (file)
--- a/beacon.el
+++ b/beacon.el
@@ -218,11 +218,12 @@ Only returns `beacon-size' elements."
   "Blink the beacon at the position of the cursor."
   (interactive)
   (beacon--vanish)
-  (beacon--shine)
-  (setq beacon--timer
-        (run-at-time beacon-blink-delay
-                     (/ beacon-blink-duration 1.0 beacon-size)
-                     #'beacon--dec)))
+  (unless (window-minibuffer-p)
+    (beacon--shine)
+    (setq beacon--timer
+          (run-at-time beacon-blink-delay
+                       (/ beacon-blink-duration 1.0 beacon-size)
+                       #'beacon--dec))))
 
 \f
 ;;; Movement detection
@@ -261,8 +262,7 @@ If DELTA is nil, return nil."
    ((not (equal (marker-buffer beacon--previous-place)
                 (current-buffer)))
     (when beacon-blink-when-buffer-changes
-      (unless (window-minibuffer-p)
-        (beacon-blink))))
+      (beacon-blink)))
    ;; Blink for scrolling.
    ((and beacon-blink-when-window-scrolls
          beacon--window-scrolled