magit-org-todos.el icon indicating copy to clipboard operation
magit-org-todos.el copied to clipboard

Formatting in org items causes errors when loading `magit-status`

Open rweir opened this issue 1 year ago • 0 comments

Hi,

[I believe this is a duplicate of this, but that was closed and I think this is worth fixing and is more general than described there]

Many types of formatting in org headline text causes magit-status to spit out an error:

magit-run-section-hook: Wrong type argument: char-or-string-p, (bold (:standard-properties [291 nil 292 302 303 0 nil nil nil nil ...]) #("projection" 0 10 (:parent #0)))

So far I've checked ~foo~, _foo_, $foo$, but that's just my lack of imagination. Sorry for the lack of a proper traceback, I'm not sure why toggle-debug-on-error isn't working for my right now. For reference, I've enable magit-org-todos like this:

(use-package magit-org-todos
  :mode "\\COMMIT_EDITMSG\\'"
  :commands (magit-org-todos-autoinsert)
  :config
  (magit-org-todos-autoinsert))

rweir avatar Oct 14 '23 21:10 rweir