~tsdh/highlight-parentheses.el#6: 
Error running timer ‘highlight-parentheses--highlight’: (wrong-type-argument overlayp nil)

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).

Status
RESOLVED FIXED
Submitter
~bcc32
Assigned to
No-one
Submitted
a month ago
Updated
a month ago
Labels
bug

~tsdh REPORTED FIXED a month ago

Tassilo Horn referenced this ticket in commit 6a41199.

~tsdh a month ago

Should be fixed now on the main branch and version 2.2.1 which will appear on ELPA soon.

Thanks for the report! Tassilo

~bcc32 a month ago

Terrific, thanks for the very fast fix!

~tsdh referenced this from #5 a month ago

~yantar92 referenced this from #5 a month ago

~tsdh a month ago

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"

~tsdh referenced this from #5 a month ago

~tsdh referenced this from #5 a month ago

Register here or Log in to comment, or comment via email.