Fix undefined incf.

Calling org-roam-extract-subtree failes with "Symbol’s function definition is void: incf"

org-roam.el includes cl-lib. org-roam--h1-count uses a bare incf call, which is undefined. Fix this by using cl-incf.
This commit is contained in:
Ralf Doering
2022-05-12 08:34:21 +02:00
committed by GitHub
parent 455f139d3e
commit 8ec2e59e67

View File

@@ -837,7 +837,7 @@ Any top level properties drawers are incorporated into the new heading."
(org-with-wide-buffer
(org-map-region (lambda ()
(if (= (org-current-level) 1)
(incf h1-count)))
(cl-incf h1-count)))
(point-min) (point-max))
h1-count)))