From 1598b536e67d29f17684b5ab50c36801910a4812 Mon Sep 17 00:00:00 2001 From: petrucci4prez Date: Fri, 4 May 2018 22:18:04 -0400 Subject: [PATCH] better syntax for let --- conf.org | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/conf.org b/conf.org index 7d93ccd..b4ebca4 100644 --- a/conf.org +++ b/conf.org @@ -616,9 +616,8 @@ Returns t if heading has certain relationship to other headings (defun nd/heading-has-children (heading-test) "returns t if heading has subheadings that return t when assessed with heading-test function" - (let ((has-children) - (subtree-end (save-excursion (org-end-of-subtree t))) - (previous-point)) + (let ((subtree-end (save-excursion (org-end-of-subtree t))) + has-children previous-point) (save-excursion (setq previous-point (point)) (outline-next-heading)