From 3794b3716bcdbac96b327ca639c5297966ea708d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 13 Aug 2021 17:24:44 -0500 Subject: Don't error on bad drawers --- lisp/acdw-org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/acdw-org.el') diff --git a/lisp/acdw-org.el b/lisp/acdw-org.el index 3acc1f1..189ac67 100644 --- a/lisp/acdw-org.el +++ b/lisp/acdw-org.el @@ -333,7 +333,7 @@ instead of the true count." ;; Ignore drawers ((or (looking-at org-drawer-regexp) (looking-at org-clock-drawer-re)) - (search-forward ":END:")) + (search-forward ":END:" nil :noerror)) ;; Count everything else (t (setq words (1+ words)) (if (and limit -- cgit 1.4.1-21-gabe81