From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: More than two choices in query Date: Sat, 07 Feb 2009 10:21:36 -0500 Message-ID: References: <286410.9156.qm@web83207.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234020521 32294 80.91.229.12 (7 Feb 2009 15:28:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Feb 2009 15:28:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chetan Pandya Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 07 16:29:56 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LVp7w-0001mK-Jm for ged-emacs-devel@m.gmane.org; Sat, 07 Feb 2009 16:29:52 +0100 Original-Received: from localhost ([127.0.0.1]:57264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVp6d-0004gs-7W for ged-emacs-devel@m.gmane.org; Sat, 07 Feb 2009 10:28:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVp05-0001A5-1z for emacs-devel@gnu.org; Sat, 07 Feb 2009 10:21:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVp03-00019M-Bl for emacs-devel@gnu.org; Sat, 07 Feb 2009 10:21:44 -0500 Original-Received: from [199.232.76.173] (port=48948 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVp03-00019F-5K for emacs-devel@gnu.org; Sat, 07 Feb 2009 10:21:43 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:31453 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LVp02-0003Tu-SC for emacs-devel@gnu.org; Sat, 07 Feb 2009 10:21:43 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtwFAGA2jUlFxIvi/2dsb2JhbACBbcwWhBoGgx0 X-IronPort-AV: E=Sophos;i="4.37,396,1231131600"; d="scan'208";a="33501532" Original-Received: from 69-196-139-226.dsl.teksavvy.com (HELO pastel.home) ([69.196.139.226]) by ironport2-out.teksavvy.com with ESMTP; 07 Feb 2009 10:21:36 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 5EDA683D4; Sat, 7 Feb 2009 10:21:36 -0500 (EST) In-Reply-To: <286410.9156.qm@web83207.mail.mud.yahoo.com> (Chetan Pandya's message of "Sat, 7 Feb 2009 07:01:18 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108858 Archived-At: > 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