From 3e64ed5d420363ff564b58682f06b71aa848a652 Mon Sep 17 00:00:00 2001 From: PythonNut Date: Wed, 2 Sep 2015 11:15:41 -0700 Subject: [PATCH] =?utf8?q?#'diff-hl-flydiff/overlay-modified=20=E2=86=92?= =?utf8?q?=20#'ignored?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- diff-hl-flydiff.el | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/diff-hl-flydiff.el b/diff-hl-flydiff.el index b464ec687..4cd2bad5f 100644 --- a/diff-hl-flydiff.el +++ b/diff-hl-flydiff.el @@ -170,8 +170,6 @@ This requires the external program `diff' to be in your `exec-path'." ((eq state 'removed) `((1 ,(line-number-at-pos (point-max)) delete)))))))) -(defun diff-hl-flydiff/overlay-modified (&rest args)) - ;;;###autoload (define-minor-mode diff-hl-flydiff-mode "Highlight diffs on-the-fly" @@ -180,12 +178,9 @@ This requires the external program `diff' to be in your `exec-path'." (if diff-hl-flydiff-mode (progn (require 'nadvice) - (advice-add 'diff-hl-update :around - #'diff-hl-flydiff/update) - (advice-add 'diff-hl-changes :override - #'diff-hl-flydiff/changes) - (advice-add 'diff-hl-overlay-modified :override - #'diff-hl-flydiff/overlay-modified) + (advice-add 'diff-hl-update :around #'diff-hl-flydiff/update) + (advice-add 'diff-hl-changes :override #'diff-hl-flydiff/changes) + (advice-add 'diff-hl-overlay-modified :override #'ignored) (remove-hook 'after-change-functions #'diff-hl-edit t) (setq diff-hl-flydiff-timer @@ -193,8 +188,7 @@ This requires the external program `diff' to be in your `exec-path'." (advice-remove 'diff-hl-update #'diff-hl-flydiff/update) (advice-remove 'diff-hl-changes #'diff-hl-flydiff/changes) - (advice-remove 'diff-hl-overlay-modified - #'diff-hl-flydiff/overlay-modified) + (advice-remove 'diff-hl-overlay-modified #'ignored) (cancel-timer diff-hl-flydiff-timer) (when diff-hl-mode -- 2.39.2