Skip to content

Commit

Permalink
* lisp/org.el (org-get-buffer-tags): Remove text properties from tags
Browse files Browse the repository at this point in the history
Do not preserve buffer text properties.  They may will be shown in the
completion as well, which is not expected by users.

Fixes https://orgmode.org/list/CAKJdtO_0aUmiKFjS34hoD525vMFkUJuVCCzGrFfR_Lt2_Vm58g@mail.gmail.com
  • Loading branch information
yantar92 committed Aug 11, 2022
1 parent ad802a9 commit 6acc58c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisp/org.el
Original file line number Diff line number Diff line change
Expand Up @@ -11961,7 +11961,9 @@ Inherited tags have the `inherited' text property."
(org-element-cache-map
(lambda (el)
(dolist (tag (org-element-property :tags el))
(puthash (list tag) t hashed))))
;; Do not carry over the text properties. They may look
;; ugly in the completion.
(puthash (list (substring-no-properties tag)) t hashed))))
(dolist (tag org-file-tags) (puthash (list tag) t hashed))
(hash-table-keys hashed))
(org-with-point-at 1
Expand Down

0 comments on commit 6acc58c

Please sign in to comment.