From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Renaud_Casenave-P=E9r=E9?= Newsgroups: gmane.emacs.devel Subject: Re: Interrupting an emacs server from outside emacs Date: Thu, 16 May 2013 22:10:09 +0900 Message-ID: <87ip2j1366.fsf@zahikel.casenave.fr> References: <87vc6j2ks6.fsf@sandalphon.hinata3.co.jp> <87sj1nytrh.fsf@dex.adm.naquadah.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1368709826 30098 80.91.229.3 (16 May 2013 13:10:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 May 2013 13:10:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 16 15:10:25 2013 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 1Ucxwu-0006Dy-LF for ged-emacs-devel@m.gmane.org; Thu, 16 May 2013 15:10:24 +0200 Original-Received: from localhost ([::1]:53592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucxwu-0005sS-0D for ged-emacs-devel@m.gmane.org; Thu, 16 May 2013 09:10:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucxwq-0005sJ-TD for emacs-devel@gnu.org; Thu, 16 May 2013 09:10:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ucxwp-0006N1-Q6 for emacs-devel@gnu.org; Thu, 16 May 2013 09:10:20 -0400 Original-Received: from ns211170.ovh.net ([188.165.211.207]:40222 helo=casenave-pere.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucxwp-0006Mm-Ka for emacs-devel@gnu.org; Thu, 16 May 2013 09:10:19 -0400 Original-Received: from zahikel.casenave.fr (softbank126010066235.bbtec.net [126.10.66.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by casenave-pere.fr (Postfix) with ESMTPSA id 057CA6C for ; Thu, 16 May 2013 15:10:24 +0200 (CEST) In-Reply-To: <87sj1nytrh.fsf@dex.adm.naquadah.org> (Julien Danjou's message of "Thu, 16 May 2013 14:49:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 188.165.211.207 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:159617 Archived-At: On Thu, May 16 2013, Julien Danjou wrote: > IIRC, it has already been discussed on this list. > I think you're looking for `debug-on-event' which by default allow you > to send SIGUSR2 to emacs to get a debug backtrace. Well=E2=80=A6 It does work. This would need some cleanup as it enters the debugger, but a simple emacsclient -e "(exit-recursive-edit)" seems to do the trick. I will keep this solution if nobody objects. Thanks for the quick reply! --=20 Renaud Casenave-P=C3=A9r=C3=A9