Disable 'org-use-property-inheritance' temporarily when mapping over note entries.

This commit is contained in:
louie 2018-07-01 14:51:48 +08:00
parent eab7d64708
commit 38ef26aa01

View file

@ -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))