Remove duplicate tags

This commit is contained in:
Adam Porter 2023-02-20 05:56:12 -06:00
parent 72b9101e85
commit 017d8c9bcf

View file

@ -166,10 +166,11 @@ Inherited by level-specific faces.")
(with-current-buffer (marker-buffer marker) (with-current-buffer (marker-buffer marker)
(org-with-wide-buffer (org-with-wide-buffer
(goto-char marker) (goto-char marker)
(delete-dups
(cl-loop for type in (org-ql--tags-at marker) (cl-loop for type in (org-ql--tags-at marker)
unless (or (eq 'org-ql-nil type) unless (or (eq 'org-ql-nil type)
(not type)) (not type))
append type))) append type))))
;; No marker found ;; No marker found
;; TODO: Use `display-warning' with `org-ql' as the type. ;; TODO: Use `display-warning' with `org-ql' as the type.
(warn "No marker found for item: %s" item) (warn "No marker found for item: %s" item)