From 38ef26aa019e5d90c8eee196ebf1285ddfdb967b Mon Sep 17 00:00:00 2001 From: louie Date: Sun, 1 Jul 2018 14:51:48 +0800 Subject: [PATCH] Disable 'org-use-property-inheritance' temporarily when mapping over note entries. --- anki-editor.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/anki-editor.el b/anki-editor.el index 3c9e59b..deea36a 100644 --- a/anki-editor.el +++ b/anki-editor.el @@ -566,11 +566,12 @@ of that heading." (t nil)))) (setq match (concat match "&" anki-editor-prop-note-type "<>\"\"")) - (let ((total (progn - (message "Counting notes...") - (length (org-map-entries t match scope)))) - (acc 0) - (failed 0)) + (let* ((org-use-property-inheritance nil) + (total (progn + (message "Counting notes...") + (length (org-map-entries t match scope)))) + (acc 0) + (failed 0)) (org-map-entries (lambda () (message "[%d/%d] Processing notes in buffer \"%s\", wait a moment..." (cl-incf acc) total (buffer-name))