From: PythonNut Date: Wed, 2 Sep 2015 18:16:21 +0000 (-0700) Subject: Require nadvice at toplevel X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/e0f8fe106187ffa1f1034b7fb3b72c10f9010c6c Require nadvice at toplevel --- diff --git a/diff-hl-flydiff.el b/diff-hl-flydiff.el index 4cd2bad5f..c1cfe6437 100644 --- a/diff-hl-flydiff.el +++ b/diff-hl-flydiff.el @@ -26,6 +26,7 @@ ;;; Code: (require 'diff-hl) +(require 'nadvice) (defvar diff-hl-flydiff-modified-tick 0) (defvar diff-hl-flydiff-timer) @@ -177,7 +178,6 @@ This requires the external program `diff' to be in your `exec-path'." :global t (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 #'ignored)