emacs-async icon indicating copy to clipboard operation
emacs-async copied to clipboard

`async-when-done` raises errors when `process-buffer` returns `nil`

Open sdevlin opened this issue 5 years ago • 0 comments
trafficstars

async-when-done may encounter an error when process-status returns exit and process-buffer returns nil. I think this error can arise due to race conditions when a process exits cleanly but its buffer is deleted before the sentinel is invoked.

I think async-when-done should check if the buffer exists and do something sensible if it does not. Maybe it should raise an explicit error, since this sort of race condition is almost certainly a bug in the program using async.

sdevlin avatar Apr 11 '20 23:04 sdevlin