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: Sat, 06 Aug 2016 13:02:13 +0300 Message-ID: <83zioqjjve.fsf@gnu.org> References: <53ca9864-3a3b-8406-65c9-8458d0512299@gmail.com> <83mvkrlp6c.fsf@gnu.org> <73dc7988-7b41-385d-1083-6a6fa4bfbd91@gmail.com> <83fuqjl4fo.fsf@gnu.org> 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 1470477764 29882 195.159.176.226 (6 Aug 2016 10:02:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Aug 2016 10:02:44 +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 Sat Aug 06 12:02:36 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 1bVyR4-0006NA-Vz for ged-emacs-devel@m.gmane.org; Sat, 06 Aug 2016 12:02:31 +0200 Original-Received: from localhost ([::1]:48682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVyR1-00018V-RC for ged-emacs-devel@m.gmane.org; Sat, 06 Aug 2016 06:02:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVyQw-00018F-U6 for emacs-devel@gnu.org; Sat, 06 Aug 2016 06:02:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVyQt-00044g-P5 for emacs-devel@gnu.org; Sat, 06 Aug 2016 06:02:22 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVyQt-00044a-MJ; Sat, 06 Aug 2016 06:02:19 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1826 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bVyQr-0003b7-U5; Sat, 06 Aug 2016 06:02:18 -0400 In-reply-to: (message from =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel on Fri, 5 Aug 2016 11:38:14 -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:206437 Archived-At: > Cc: emacs-devel@gnu.org > From: Clément Pit--Claudel > Date: Fri, 5 Aug 2016 11:38:14 -0400 > > On 2016-08-05 09:40, Eli Zaretskii wrote: > > 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. > > Well, it depends what you mean by "display the backtrace": the server doesn't respect debug-on-error Why doesn't it? Isn't that already a bug? > but if I register my own debugger, then I *can* capture the first backtrace. I have attached a file cpc-server.el that will explain the issue better than I can explain it in words (thanks for your patience!). Here's how it's used: So you are saying that the problem is the daemon doesn't increment num-nonmacro-input-events for each new connection? That should be easy enough to fix, isn't it?