emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] scratch/add-vdiff 245850f 028/258: Load cl-lib for using its func


From: Justin Burkett
Subject: [elpa] scratch/add-vdiff 245850f 028/258: Load cl-lib for using its function
Date: Wed, 17 May 2017 08:13:15 -0400 (EDT)

branch: scratch/add-vdiff
commit 245850fa238f37163cb160ef09fcdf8e2be861b2
Author: Syohei YOSHIDA <address@hidden>
Commit: Syohei YOSHIDA <address@hidden>

    Load cl-lib for using its function
    
    incf is an alias of cl-incf on Emacs 24.3 or higher version.
---
 vdiff.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vdiff.el b/vdiff.el
index 776c429..857348b 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -92,6 +92,8 @@
 
 ;;; Code:
 
+(require 'cl-lib)
+
 (defgroup vdiff nil
   "Diff tool that is like vimdiff"
   :tag "Vdiff"
@@ -691,7 +693,7 @@ buffer and center both buffers at this line."
          (let ((vdiff--inhibit-sync t))
            (call-interactively real-this-command))
          (if (< vdiff--scroll-command-cnt 40)
-             (incf vdiff--scroll-command-cnt)
+             (cl-incf vdiff--scroll-command-cnt)
            ;; (message "syncing lines")
            (setq vdiff--scroll-command-cnt 0)
            (vdiff--move-to-line



reply via email to

[Prev in Thread] Current Thread [Next in Thread]