浏览代码

Use cl function to increment a variable

Christian Egli 15 年之前
父节点
当前提交
2b906dcfd7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lisp/org-taskjuggler.el

+ 2 - 2
lisp/org-taskjuggler.el

@@ -199,7 +199,7 @@
 (defun org-taskjuggler-open-task (task)
   (let ((id (org-taskjuggler-clean-id (cdr (assoc "ID" task))))
 	(headline (cdr (assoc "headline" task)))
-	(effort (org-taskjuggler-clean-effort(cdr (assoc org-effort-property task))))
+	(effort (org-taskjuggler-clean-effort (cdr (assoc org-effort-property task))))
 	(depends (cdr (assoc "depends" task)))
 	(allocate (cdr (assoc "allocate" task)))
 	(account (cdr (assoc "account" task)))
@@ -210,7 +210,7 @@
     (insert
      (concat 
       "task " 
-      (or id (concat "id" (number-to-string (setq current-id (1+ current-id))))) 
+      (or id (concat "id" (number-to-string (incf current-id)))) 
       " \"" headline "\" {" 
       (and effort (concat "\n effort " effort))
       (and depends (concat "\n depends " depends))