I'm running the emacsformacosx.com build of Emacs 25.2.1 in daemon mode. I connect to it through emacsclient invoked from various tmux sessions in macOS Terminal.
xterm-256color. The daemon process is long-running, ideally lasting for days or weeks until a reboot is required.
At first everything is fine, but font locking eventually craps out. Here's an example from an orgmode buffer:
There is a link around the "This is a link" line. Everything after should be regular text.
It's not orgmode-specific. Other modes exhibit similarly weird effects, as if font lock is getting slightly drunk.
It's not syntax-specific. If I toggle
font-lock-mode, everything renders correctly but the problem is still present and resurfaces at the next point of syntax highlighting.
I don't think it's my configuration. I'm not doing anything exotic (with font locking, or in general), and my packages are up-to-date.
I can avoid the issue by restarting the daemon, but is there a better solution?