Closed hab25 closed 2 months ago
I pushed a small change to guard against this; please give it a test.
@jdtsmith thank you; I've noticed no problems with it so far. Will report back if I do.
@jdtsmith I encountered the same error from the same function again; I think the last expression in that function, i.e. (setf (buffer-local-value 'indent-bars--needs-cleanup buf) nil)
needs to be moved into the when-let
so that it is not called with a killed buffer.
Good catch, check 48c8f7e.
Unfortunately, not sure what the conditions to reproduce this are.
I think it might have to do with
consult-recent-file
which makes temporary buffers that do runprog-mode-hook
(from which I call(indent-bars-mode)
). However, I was unable to consistently reproduce.Nonetheless, it's probably trivially-implemented good practice (at least because it'll avoid similar issues) to just cancel this https://github.com/jdtsmith/indent-bars/blob/4974f6c16c7fcc8bbe53fbcd93c74794877287a1/indent-bars.el#L1394C5-L1396C79 timer on
kill-buffer-hook
, no?Here's a backtrace (n.b. I use a few customizations to
backtrace
, the most notable being(setopt backtrace-view '(:show-flags t :show-locals t))
; if it is unintelligible I can probably provide it uncustomized):