cleanup: if with 3 lines (better readable).
diff --git a/kanban.el b/kanban.el
--- a/kanban.el
+++ b/kanban.el
@@ -122,7 +122,9 @@
(concat match "+TODO=\"" (nth (- row 1) org-todo-keywords-1) "\"")
(concat "+TODO=\"" (nth (- row 1) org-todo-keywords-1) "\""))
; read all agenda files
- (if scope scope 'agenda))))))
+ (if scope
+ scope
+ 'agenda))))))
(if (equal elem nil)
""
elem)))
@@ -162,7 +164,9 @@
(if match
(concat match "+TODO=\"" (nth 0 org-todo-keywords-1) "\"")
(concat "+TODO=\"" (nth 0 org-todo-keywords-1) "\""))
- (if scope scope 'agenda))))))
+ (if scope
+ scope
+ 'agenda))))))
(if
(or (member elem (list cels)) (equal elem nil))
" " ; the element exists in another table or is nil: Keep the cel empty