casouri / vundo

Visualize the undo tree.
413 stars 20 forks source link

jit-lock errors #76

Closed tmdemelo closed 1 year ago

tmdemelo commented 1 year ago

I'm getting jit-lock errors every time I run vundo:

Error during redisplay: (jit-lock-function 1) signaled (wrong-type-argument number-or-marker-p nil)

Running vundo ecc0e2c3678ba1d879e1477c08c65c53b9237da6, emacs -Q, tested with Emacs 28 and 29.

The errors disappear when I deactivate jit-lock-mode via vundo-mode-hook.

I also noticed that, in the definition of vundo-mode, jit-lock-mode is called like this:

(jit-lock-mode -1)

Perhaps you meant to deactivate jit-lock-mode there? If so, this is the correct (and unusual for minor-modes) form:

(jit-lock-mode nil)
casouri commented 1 year ago

Thank you very much! That is indeed my mistake. I've pushed a fix.