emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] org-get-buffer-tags no longer strips text properties


From: Anders Johansson
Subject: [BUG] org-get-buffer-tags no longer strips text properties
Date: Thu, 11 Aug 2022 11:31:21 +0200

Hi,
Commit 819409 introduced a change where the text-properties of tags collected from a buffer are no longer stripped, which means tags may be fontified in unwanted ways in completing-read (this became especially ugly using org-modern and code for right aligning tags with display properties).

Something like this would fix it:
@@ -11974,7 +11974,7 @@ (defun org-get-buffer-tags ()
         (org-element-cache-map
          (lambda (el)
            (dolist (tag (org-element-property :tags el))
-             (puthash (list tag) t hashed))))
+             (puthash (list (substring-no-properties tag)) t hashed))))

Best,
Anders Johansson

reply via email to

[Prev in Thread] Current Thread [Next in Thread]