-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't yes-or-no-p query the user when killing plz process buffers #52
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 |
See <#52> and <#57>. Co-authored-by: Adam Porter <[email protected]>
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
--batch
mode, 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.