- How can I quit out of org-map-entries as soon as the first matching entry is found?
I think this is much better:
(let ((valid-found
(catch 'break
(org-map-entries
(lambda ()
(throw 'break t))
;; Only map through subtrees where
;; EXPORT_FILE_NAME property is not
;; empty.
"EXPORT_FILE_NAME<>\"\""))))
(message "valid-found: %S" valid-found))
- What's a better way to do the same?
Comments are welcome :)
Thanks.