Conversation
|
Hi Michał, Ah, this is great! I just had this happen to me yesterday when I was testing something while pressing What do you think about using Thanks for submitting this! cc: @josephmturner |
|
Thank you @mkcms! I wonder if it might be more appropriate to temporarily bind |
There's no need, because we actually do want to unconditionally kill the buffer. So we don't want any query. If another user function, apart from
Sure, I can change that if you want, but I get this warning: I rarely use these - do you think it's worth it? |
That sounds reasonable to me. I was imagining a scenario where for some reason (debugging, maybe?) the user wants to never kill any process buffers. The user could add a different hook, and that would ensure the buffer stayed alive. OTOH, if we only Whatever you guys decide is fine by me. My example user story is pretty far-fetched - I'm just trying to be thorough :) |
|
According to the Elisp manual, if |
Nice, that's even better. I've updated the PR to do that. |
|
@mkcms Thank you! |
|
Note that the current solution only works on Emacs 28+. We were not able to backport |
|
@josephmturner Thanks. So do we need to bind I can't reopen this PR, so we'll have to make a new issue. |
|
@alphapapa Yes, I believe so. I think we could apply the same patch that @mkcms wrote, and then add a |
The current behavior when interrupting a sync request by C-g or in other way, externally - e.g. with
with-timeout, Emacs unexpectedly asks if I really want to kill the curl process buffer.E.g. when interrupting this long-running request with C-g:
Emacs asks if I want to really kill the curl buffer. This is unexpected, as the library itself should never be interactive.
It even does this in
--batchmode, which I caught here: https://github.com/mkcms/compiler-explorer.el/actions/runs/9200670124/job/25307608066#step:6:148I have signed the FSF papers a couple of years ago and already contributed to Emacs, so this is good to go.