[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7144c1c 1/8: diff-hl-flydiff: Set tick to nil and use buff
From: |
Dmitry Gutov |
Subject: |
[elpa] master 7144c1c 1/8: diff-hl-flydiff: Set tick to nil and use buffer-chars-modified-tick |
Date: |
Sat, 23 Feb 2019 18:35:44 -0500 (EST) |
branch: master
commit 7144c1c3c346017a90642340747598e0e883aded
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
diff-hl-flydiff: Set tick to nil and use buffer-chars-modified-tick
#114
---
diff-hl-flydiff.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/diff-hl-flydiff.el b/diff-hl-flydiff.el
index 33cbfbd..6c7dd4b 100644
--- a/diff-hl-flydiff.el
+++ b/diff-hl-flydiff.el
@@ -38,7 +38,7 @@
"The idle delay in seconds before highlighting is updated."
:type 'number)
-(defvar diff-hl-flydiff-modified-tick 0)
+(defvar diff-hl-flydiff-modified-tick nil)
(defvar diff-hl-flydiff-timer nil)
(make-variable-buffer-local 'diff-hl-flydiff-modified-tick)
@@ -124,7 +124,7 @@ the user should be returned."
This requires the external program `diff' to be in your `exec-path'."
(interactive)
(vc-ensure-vc-buffer)
- (setq diff-hl-flydiff-modified-tick (buffer-modified-tick))
+ (setq diff-hl-flydiff-modified-tick (buffer-chars-modified-tick))
(save-current-buffer
(let* ((temporary-file-directory
(if (file-directory-p "/dev/shm/")
@@ -140,7 +140,7 @@ This requires the external program `diff' to be in your
`exec-path'."
(defun diff-hl-flydiff-update ()
(unless (or
(not diff-hl-mode)
- (= diff-hl-flydiff-modified-tick (buffer-modified-tick))
+ (= diff-hl-flydiff-modified-tick (buffer-chars-modified-tick))
(not buffer-file-name)
(not (file-exists-p buffer-file-name))
(file-remote-p default-directory))
- [elpa] master updated (5249e54 -> 08c36be), Dmitry Gutov, 2019/02/23
- [elpa] master 2cddce4 3/8: Fix the breakage, Dmitry Gutov, 2019/02/23
- [elpa] master 7144c1c 1/8: diff-hl-flydiff: Set tick to nil and use buffer-chars-modified-tick,
Dmitry Gutov <=
- [elpa] master 9ddb7da 5/8: Add the Usage section, Dmitry Gutov, 2019/02/23
- [elpa] master 76289d2 4/8: Add and use diff-hl-maybe-redefine-bitmaps, Dmitry Gutov, 2019/02/23
- [elpa] master 84a5fe1 7/8: Bump the version, Dmitry Gutov, 2019/02/23
- [elpa] master 08c36be 8/8: Merge commit '84a5fe1900af2e5cc522f02749804f0d9f094bbf' from diff-hl, Dmitry Gutov, 2019/02/23
- [elpa] master d3f90cc 6/8: Change psvn integration example to use nadvice, Dmitry Gutov, 2019/02/23
- [elpa] master b47cfe1 2/8: Update copyright, Dmitry Gutov, 2019/02/23