Skip to content
Jonas Bernoulli edited this page Oct 14, 2021 · 3 revisions

FAQ and Common Issues

Potential incompatiblity with things that don't use font-lock

hl-todo-mode uses font-lock but it can also be enabled in buffers whose major-mode does not use font-lock itself. text-mode is such a mode and by default global-hl-todo-mode enables hl-todo-mode in buffers using that major-mode.

If font-lock-mode would not be enabled otherwise, then it is enabled just for the benefit of hl-todo-mode. That in turn can conflict with other things that propertize parts of the buffer without using font-lock, because the first thing that font-lock does is to remove such text properties.

Currently if enriched-mode is enabled in a buffer, then global-hl-todo-mode does not enable hl-todo-mode in that buffer. Similar kludges can be added for other minor-modes but unfortunately this has to be done on a case by case basis when users report issues.

Also see #55, and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42138.

Apparent incompatibility with tex-mode and AucTeX

tex-mode and Tex-latex-mode may discard font-lock keywords that were added by third-party packages like hl-todo. Our keywords therefore have to be forcefully reinstated using:

(add-hook 'TeX-update-style-hook 'hl-todo-mode)

Also see #26, and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37945.