Don't manually fontify ANSI escapes in error tracebacks

The fontification is handled by font-lock in the Org buffer.

See https://github.com/nnicandro/emacs-jupyter/issues/328#issuecomment-968406494.
This commit is contained in:
Nathaniel Nicandro 2021-11-19 20:12:58 -06:00
parent b87ecf0cd3
commit bb53fdd864

View file

@ -265,7 +265,6 @@ to."
;; is re-added.
(unless (memq 'jupyter-org-add-error-keymap org-font-lock-hook)
(add-hook 'org-font-lock-hook 'jupyter-org-add-error-keymap nil t))
(setq traceback (ansi-color-apply traceback))
(jupyter-org--add-result
req (jupyter-org-comment
(with-temp-buffer