1
5
Fork
You've already forked ben.el
0

Occassional prompt to kill running process? #2

Open
opened 2026年04月13日 22:53:03 +02:00 by krisbalintona · 2 comments

Hello,

For some reason, when ben-global-mode is enabled for the first time in an Emacs session, I get prompted about killing processes in existing ben-created buffers. I'm not sure why, but it probably only occurs when I have multiple direnv-controlled projects open at the same time and ben.el tries to do its thing on all of them.

Hello, For some reason, when `ben-global-mode` is enabled for the first time in an Emacs session, I get prompted about killing processes in existing ben-created buffers. I'm not sure why, but it probably only occurs when I have multiple direnv-controlled projects open at the same time and ben.el tries to do its thing on all of them.

@krisbalintona Could it be that somehow you are triggering ben-allow multiple times? I don't have a reproducer, so I'm only guessing.

The logic that fires that prompt is here:
https://codeberg.org/pastor/ben.el/src/main/ben.el#L775

As a workaround until we find the issue, if you are really bother by this, you can set ben-async-prompt-before-kill to nil.

Thanks for the bug report.

@krisbalintona Could it be that somehow you are triggering `ben-allow` multiple times? I don't have a reproducer, so I'm only guessing. The logic that fires that prompt is here: https://codeberg.org/pastor/ben.el/src/main/ben.el#L775 As a workaround until we find the issue, if you are really bother by this, you can set `ben-async-prompt-before-kill` to nil. Thanks for the bug report.

I don't have time today (or the next few days, maybe) to find a reproducer. But this did happen on two separate occasions for me. When I have time I'll get to it.

P.S. I'm on a very recent build of Emacs from the master branch, if that makes a difference.

I don't have time today (or the next few days, maybe) to find a reproducer. But this did happen on two separate occasions for me. When I have time I'll get to it. P.S. I'm on a very recent build of Emacs from the master branch, if that makes a difference.
Sign in to join this conversation.
No Branch/Tag specified
main
v0.12.13
v0.12.12
v0.12.11
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pastor/ben.el#2
Reference in a new issue
pastor/ben.el
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?