Fix orgtre/anki-editor#16 to make org tags work again

Scanner tags cannot be trusted.
This commit is contained in:
orgtre 2023-01-05 18:07:07 +01:00
parent abdee78b2e
commit 88895abfcd

View file

@ -709,8 +709,7 @@ and else from variable `anki-editor-prepend-heading'."
(defun anki-editor-note-at-point () (defun anki-editor-note-at-point ()
"Make a note struct from current entry." "Make a note struct from current entry."
(let* ((org-trust-scanner-tags t) (let* ((deck (org-entry-get-with-inheritance anki-editor-prop-deck))
(deck (org-entry-get-with-inheritance anki-editor-prop-deck))
(format (anki-editor-entry-format)) (format (anki-editor-entry-format))
(prepend-heading (anki-editor-prepend-heading)) (prepend-heading (anki-editor-prepend-heading))
(note-id (org-entry-get nil anki-editor-prop-note-id)) (note-id (org-entry-get nil anki-editor-prop-note-id))
@ -744,6 +743,7 @@ and else from variable `anki-editor-prepend-heading'."
:fields exported-fields))) :fields exported-fields)))
(defun anki-editor--get-tags () (defun anki-editor--get-tags ()
"Return list of tags of org entry at point."
(let ((tags (anki-editor--entry-get-multivalued-property-with-inheritance (let ((tags (anki-editor--entry-get-multivalued-property-with-inheritance
nil nil
anki-editor-prop-tags))) anki-editor-prop-tags)))