Browse Source

org-footnote: Fix failing test

* lisp/org-footnote.el (org-footnote-normalize): Fix failing test due to
  missing `incf' function.
Nicolas Goaziou 9 years ago
parent
commit
b62d55cbb6
1 changed files with 4 additions and 3 deletions
  1. 4 3
      lisp/org-footnote.el

+ 4 - 3
lisp/org-footnote.el

@@ -908,9 +908,10 @@ to `org-footnote-section'.  Inline definitions are ignored."
 				  definitions)))
 	       (dolist (d unreferenced)
 		 (insert "\n"
-			 (replace-regexp-in-string org-footnote-definition-re
-						   (format "[fn:%d]" (incf n))
-						   (cdr d))
+			 (replace-regexp-in-string
+			  org-footnote-definition-re
+			  (format "[fn:%d]" (cl-incf n))
+			  (cdr d))
 			 "\n"))))))
       ;; Clear dangling markers.
       (dolist (r references) (set-marker (nth 1 r) nil)))))