Hi Nicolas, Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:
> You are right. This deserves an entry in ORG-NEWS. thanks for your feedback, I've added this entry: https://code.orgmode.org/bzg/org-mode/commit/1a84a8b611 > I think this is inefficient. It would be better to search directly for > > (format "\\[\\[\\*%s\\s-+" (regexp-opt org-todo-keywords-1 t)) Indeed... I've pushed a simpler version, feel free to enhance it. >> (setq new (replace-regexp-in-string >> (concat (regexp-opt org-todo-keywords-1) "\\s-+") >> "" raw)) >> (set-text-properties 0 (length new) nil new) > > Why do you remove all text properties? Also, see `org-no-properties'. For the record, it seems that completing-read fifth argument cannot be a string with properties - at least from the quick test I did. Thanks, -- Bastien