New in version 6: Emacs asks, on exit: "Active processes exist; kill them and exit anyway?" Intended? Any way to disable?

Asked by Joe Peterson

I noticed that recently loading .py files in emacs (and thereby
invoking python-mode ("Pythin Outl") launches a python shell
automatically, so when I exit, I see, "Active processes exist; kill
them and exit anyway? (yes or no)" every time.

Is this something new? I cannot find much [useful] about it when
Googling. I looked at python-mode.el, and it looks like run-python
will get called when doing certain things, but not sure why the
process always gets run.

If this is indeed an intended new feature, is there a way to disable? Most of the time, I just intend to edit python code, not use a shell within emacs, so the question on exit is just a nuisance.

Thanks! Joe

Question information

Language:
English Edit question
Status:
Answered
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andreas Roehler (a-roehler) said :
#1

Am 19.04.2012 21:40, schrieb Joe Peterson:
> New question #194157 on python-mode.el:
> https://answers.launchpad.net/python-mode/+question/194157
>
> I noticed that recently loading .py files in emacs (and thereby
> invoking python-mode ("Pythin Outl") launches a python shell
> automatically, so when I exit, I see, "Active processes exist; kill
> them and exit anyway? (yes or no)" every time.
>
> Is this something new? I cannot find much [useful] about it when
> Googling. I looked at python-mode.el, and it looks like run-python
> will get called when doing certain things, but not sure why the
> process always gets run.
>
> If this is indeed an intended new feature, is there a way to disable? Most of the time, I just intend to edit python code, not use a shell within emacs, so the question on exit is just a nuisance.
>
> Thanks! Joe
>

Hi,

Python-mode uses buffer linked with processes for completion.

When completion is called, a respective shell --python or ipython-- will run in the background.

Beside you can customize `py-start-run-py-shell' to nil - which would help only until first completion...

The questions when closing are Emacs default.

Nonetheless you may file a feature request in the bug-tracker saying:

"Kill Python process buffer unconditionally when Emacs is closed"

Cheers,

Andreas

Can you help with this problem?

Provide an answer of your own, or ask Joe Peterson for more information if necessary.

To post a message you must log in.