From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: How do I debug errors in post-command-hook? Date: Thu, 29 Jul 2010 22:30:58 +0200 Message-ID: <201007292230.58883.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1280435635 29958 80.91.229.12 (29 Jul 2010 20:33:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Jul 2010 20:33:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 29 22:33:53 2010 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.69) (envelope-from ) id 1OeZna-000093-4L for ged-emacs-devel@m.gmane.org; Thu, 29 Jul 2010 22:33:50 +0200 Original-Received: from localhost ([127.0.0.1]:46945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeZnZ-0005mP-Iw for ged-emacs-devel@m.gmane.org; Thu, 29 Jul 2010 16:33:49 -0400 Original-Received: from [140.186.70.92] (port=33929 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeZl7-0004dm-ET for emacs-devel@gnu.org; Thu, 29 Jul 2010 16:31:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeZl5-0001Tg-AX for emacs-devel@gnu.org; Thu, 29 Jul 2010 16:31:16 -0400 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]:50682) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeZl5-0001TI-89 for emacs-devel@gnu.org; Thu, 29 Jul 2010 16:31:15 -0400 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 8994316F89B for ; Thu, 29 Jul 2010 16:31:06 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Thu, 29 Jul 2010 16:31:06 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:subject:date:mime-version:content-type:content-transfer-encoding:message-id; s=smtpout; bh=qhMpoHor41aJiyy/6PKRGk459oM=; b=JmAJvEaPZCmKwAZxp3op4DMGioa5DNARjCSSs1wgbYdaeYZ599/rQx+VECtlbJsBLbKbIF8EF25x+mBVLqhhsCyjRpkfSB+L8/Zwua5+eERfyFFRWDb2PBj66YfnrvOHhfMStxBrNsyc2deeLFbTki/90p2AYOEM4TVWUJjtYEQ= X-Sasl-enc: l8PlRwH7CQODfP6So0bu6wdGaxHfqlzIg+VDiNMDKQCM 1280435461 Original-Received: from thinkpad.localnet (p54AF1814.dip0.t-ipconnect.de [84.175.24.20]) by mail.messagingengine.com (Postfix) with ESMTPSA id 0C4534E94C7 for ; Thu, 29 Jul 2010 16:31:01 -0400 (EDT) User-Agent: KMail/1.13.5 (Linux/2.6.35-rc6-git4; KDE/4.4.5; x86_64; ; ) X-Face: `TY6r/ws=N5uqO1E`M=Sups<}n%T[E^o_?MJj< =?utf-8?q?O4j=265ljV6lU=7DcXU7oftH=26/x=5F=7EK=7B=26zv9=7D=0A=09sB=7D5/Ea=5B?= =?utf-8?q?hU=7BCS=23=3F=3F0=3F=3Fn?=@sX+ft]?{(l?, mp"a`u 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:127982 Archived-At: Hi all, how do I debug errors that happen while executing a function in `post-command-hook'? The usual debugging facilities like `toggle-debug-on-error' and `edebug-function' are not triggered in there... Background: There seem to be some packages that error when emacs is started with the --daemon option. One example is the lusty-explorer's `lusty-buffer-explorer' function. It works fine when run in a "normal" emacs, but I get an error in `post-command-hook' when emacs was initially started as daemon, and I'd like to know what's going wrong. Bye, Tassilo