emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More than two choices in query


From: Chetan Pandya
Subject: Re: More than two choices in query
Date: Sat, 7 Feb 2009 11:48:01 -0800 (PST)

From: Stefan Monnier <address@hidden>


>> There was a question some time back if there is a way to query with
>> more than two choices (y/n).  Was there a resolution of that question
>> or everyone who needs something like that is supposed to implement
>> their own solution?

> There's still no predefined function for that, AFAIK.

>> I start firefox with browse-url. When I try to exit Emacs, it shows me
>> active process and gives me two choices, either don't exit Emacs or
>> kill Emacs and take down firefox as well.

> IIUC the problem here is not really the prompt but the fact that the
> C code of Emacs does not offer any way to exit Emacs without killing the
> subprocesses (no way to "detach" from them).  If this were possible
> a simple y/n prompt would still be sufficient, where "y" means "kill the
> process", "n" means "don't kill but exit nevertheless" and C-g would
> mean "don't exit".

>        Stefan

Here is a patch to proess.c:kill_buffer_processes that does not kill processes 
not associated with a buffer.

However, this still gives a message there are active processes kill them?
If the answer is y, the firefox process is not killed.

Chetan

Attachment: patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]