From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How can I rethrow an error after recording a backtrace? Date: Fri, 05 Aug 2016 16:40:27 +0300 Message-ID: <83fuqjl4fo.fsf@gnu.org> References: <53ca9864-3a3b-8406-65c9-8458d0512299@gmail.com> <83mvkrlp6c.fsf@gnu.org> <73dc7988-7b41-385d-1083-6a6fa4bfbd91@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1470404540 22062 195.159.176.226 (5 Aug 2016 13:42:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 5 Aug 2016 13:42:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 05 15:42:15 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVfNy-0003jj-SI for ged-emacs-devel@m.gmane.org; Fri, 05 Aug 2016 15:42:02 +0200 Original-Received: from localhost ([::1]:45457 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVfNv-0000AL-HQ for ged-emacs-devel@m.gmane.org; Fri, 05 Aug 2016 09:41:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVfMs-00006h-Mi for emacs-devel@gnu.org; Fri, 05 Aug 2016 09:40:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVfMm-0002nM-Pa for emacs-devel@gnu.org; Fri, 05 Aug 2016 09:40:53 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVfMm-0002mN-La; Fri, 05 Aug 2016 09:40:48 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1099 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bVfMj-0003O5-TR; Fri, 05 Aug 2016 09:40:47 -0400 In-reply-to: <73dc7988-7b41-385d-1083-6a6fa4bfbd91@gmail.com> (message from =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel on Fri, 5 Aug 2016 03:20:17 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:206425 Archived-At: > From: Clément Pit--Claudel > Date: Fri, 5 Aug 2016 03:20:17 -0400 > > > If so, the bug is that the daemon thinks it is in a situation > > described by the comment you quote, while "emacs -batch" somehow > > avoids that pitfall. You should debug Emacs to understand why the > > difference happens. > > Ok, I'll look into this. But I need help in understanding exactly what I'm trying to track: with emacs -batch (without a daemon), there's only at most one entry into the debugger, right? That one is possible because the when_entered_debugger variable is initialized to -1, whereas the num_nonmacro_input_events counter is initialized to 0. But with -daemon, even the first invocation of emacsclient already doesn't display the backtrace, right? So there's still something different between these two use cases.