I recently started seeing this error pop up randomly in my Emacs, and managed to get this backtrace:
Debugger entered--Lisp error: (wrong-type-argument overlayp nil)
overlay-start(nil)
highlight-parentheses--highlight()
apply(highlight-parentheses--highlight nil)
timer-event-handler([t 26120 29583 160101 nil highlight-parentheses--highlight nil nil 0 nil])
This seems to happen mostly when I switch buffers. I see that highlight-parentheses--highlight
is run on a timer. Perhaps it needs to either set the current buffer to the one that was current when highlight-parentheses--initiate-highlight
was called, or else simply do not run if the buffer has changed (I don't know much about this package so I do not know which is the appropriate behavior here).
Tassilo Horn referenced this ticket in commit 6a41199.
Should be fixed now on the
main
branch and version 2.2.1 which will appear onELPA
soon.Thanks for the report! Tassilo
Terrific, thanks for the very fast fix!
Tassilo Horn referenced this ticket in commit [e6a4ce1].
[e6a4ce1]: https://git.sr.ht/~tsdh/highlight-parentheses.el/commit/e6a4ce1 "Improve fix for #6 by always running the highlight fn in the right buffer"