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: Should debug-on-quit becomes t after kill -SIGUSR2? Date: Tue, 03 Jul 2012 09:51:48 -0400 Message-ID: References: <4FF283CC.2030901@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341323537 20810 80.91.229.3 (3 Jul 2012 13:52:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2012 13:52:17 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 03 15:52:15 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sm3WO-00035L-Nm for ged-emacs-devel@m.gmane.org; Tue, 03 Jul 2012 15:52:04 +0200 Original-Received: from localhost ([::1]:43661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm3WN-0003Ph-Je for ged-emacs-devel@m.gmane.org; Tue, 03 Jul 2012 09:52:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm3WG-000344-4D for emacs-devel@gnu.org; Tue, 03 Jul 2012 09:52:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sm3WB-0004Xn-DU for emacs-devel@gnu.org; Tue, 03 Jul 2012 09:51:55 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:3935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm3WB-0004XN-9C for emacs-devel@gnu.org; Tue, 03 Jul 2012 09:51:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09MCquH/2dsb2JhbABEtBGBCIIVAQEEAVYjEAsOJhIUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="192533988" Original-Received: from 76-10-171-135.dsl.teksavvy.com (HELO pastel.home) ([76.10.171.135]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 03 Jul 2012 09:51:49 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id CD6364E706; Tue, 3 Jul 2012 09:51:48 -0400 (EDT) In-Reply-To: <4FF283CC.2030901@dancol.org> (Daniel Colascione's message of "Mon, 02 Jul 2012 22:31:56 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151389 Archived-At: >> I start using this new debug-on-event a bit and I find the side effect >> of permanently changing debug-on-quit to t annoying. Is it intentional? > It's intention in the sense that that's how it was intended to work, > but that's because the feature is designed to bring you to the > debugger no matter what, and as a last resort. Maybe we can set a > timer to undo the change to the variable once we break into the debugger. Or rather than a timer, we could define that a special value (e.g. `once') for debug-on-quit means that it is reset to nil after we enter the debugger. Stefan