[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 6490628 1/3: Fix #43 - Actually use beacon-blink-when-buff
From: |
Artur Malabarba |
Subject: |
[elpa] master 6490628 1/3: Fix #43 - Actually use beacon-blink-when-buffer-changes |
Date: |
Fri, 01 Apr 2016 14:07:57 +0000 |
branch: master
commit 6490628efd046db0751847c5286fff822723b75a
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
Fix #43 - Actually use beacon-blink-when-buffer-changes
---
beacon.el | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/beacon.el b/beacon.el
index 4226149..e978a7c 100644
--- a/beacon.el
+++ b/beacon.el
@@ -5,7 +5,7 @@
;; Author: Artur Malabarba <address@hidden>
;; URL: https://github.com/Malabarba/beacon
;; Keywords: convenience
-;; Version: 1.0
+;; Version: 1.1
;; Package-Requires: ((seq "1.11"))
;; This program is free software; you can redistribute it and/or modify
@@ -387,6 +387,11 @@ The same is true for DELTA-X and horizonta movement."
(cond
;; Sanity check.
((not (markerp beacon--previous-place)))
+ ;; Blink for switching buffers.
+ ((and beacon-blink-when-buffer-changes
+ (not (eq (marker-buffer beacon--previous-place)
+ (current-buffer))))
+ (beacon-blink-automated))
;; Blink for switching windows.
((and beacon-blink-when-window-changes
(not (eq beacon--previous-window (selected-window))))