]> code.delx.au - gnu-emacs-elpa/commitdiff
Use cl-incf instead of cl
authorSyohei YOSHIDA <syohex@gmail.com>
Mon, 29 Sep 2014 03:25:01 +0000 (12:25 +0900)
committerJoão Távora <joaotavora@gmail.com>
Mon, 29 Sep 2014 09:38:31 +0000 (10:38 +0100)
* yasnippet.el (yas--snippet-next-id, yas--real-line-beginning):
Use `cl-incf'.

yasnippet.el

index bddfa3a5e14d83d7a7937f2752dfc197085a12cb..65d8e7cee7369fad1499dc4d8f0df4b6194c41a9 100644 (file)
@@ -559,7 +559,7 @@ snippet itself contains a condition that returns the symbol
 
 (defun yas--snippet-next-id ()
   (let ((id yas--snippet-id-seed))
-    (incf yas--snippet-id-seed)
+    (cl-incf yas--snippet-id-seed)
     id))
 
 \f
@@ -3953,7 +3953,7 @@ Meant to be called in a narrowed buffer, does various passes"
         (n (line-beginning-position)))
     (while (or (eql c ?\ )
                (eql c ?\t))
-      (incf n)
+      (cl-incf n)
       (setq c (char-after n)))
     n))