better syntax for let
This commit is contained in:
parent
01cc350a49
commit
1598b536e6
5
conf.org
5
conf.org
|
@ -616,9 +616,8 @@ Returns t if heading has certain relationship to other headings
|
||||||
(defun nd/heading-has-children (heading-test)
|
(defun nd/heading-has-children (heading-test)
|
||||||
"returns t if heading has subheadings that return t when assessed with
|
"returns t if heading has subheadings that return t when assessed with
|
||||||
heading-test function"
|
heading-test function"
|
||||||
(let ((has-children)
|
(let ((subtree-end (save-excursion (org-end-of-subtree t)))
|
||||||
(subtree-end (save-excursion (org-end-of-subtree t)))
|
has-children previous-point)
|
||||||
(previous-point))
|
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(setq previous-point (point))
|
(setq previous-point (point))
|
||||||
(outline-next-heading)
|
(outline-next-heading)
|
||||||
|
|
Loading…
Reference in New Issue