]> code.delx.au - gnu-emacs-elpa/commitdiff
* diff-hl: Fix byte compilation errors
authorBarry <gundaetiapo@gmail.com>
Fri, 27 Dec 2013 03:48:59 +0000 (22:48 -0500)
committerBarry <gundaetiapo@gmail.com>
Fri, 27 Dec 2013 03:48:59 +0000 (22:48 -0500)
diff-hl-margin.el

index f805aabf4a1281aef8403c59cd178789af70447f..eb871b225a8c64154255e305c5818eb2f2a0d45f 100644 (file)
@@ -34,6 +34,7 @@
 ;;
 ;; (unless (window-system) (diff-hl-margin-mode))
 
+(require 'cl-lib)
 (require 'diff-hl)
 (require 'diff-hl-dired)
 
   (walk-windows (lambda (win) (set-window-buffer win (window-buffer win)))))
 
 (defvar diff-hl-margin-spec-cache
-  (loop for (type . char) in '((insert . "+") (delete . "-")
-                               (change . "|") (unknown . "?"))
+  (cl-loop for (type . char) in '((insert . "+") (delete . "-")
+                                  (change . "|") (unknown . "?"))
         nconc
-        (loop for side in '(left right)
-              collect
-              (cons (cons type side)
-                    (propertize
-                     " " 'display
-                     `((margin ,(intern (format "%s-margin" side)))
-                       ,(propertize char 'face
-                                    (intern (format "diff-hl-%s" type)))))))))
+        (cl-loop for side in '(left right)
+                 collect
+                 (cons (cons type side)
+                       (propertize
+                        " " 'display
+                        `((margin ,(intern (format "%s-margin" side)))
+                          ,(propertize char 'face
+                                       (intern (format "diff-hl-%s" type)))))))))
 
 (defun diff-hl-highlight-on-margin (ovl type _shape)
   (let ((spec (cdr (assoc (cons type diff-hl-margin-side)