From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Why post-command-hook so difficult to debug? Date: Sun, 22 Jul 2012 10:40:20 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342924841 14269 80.91.229.3 (22 Jul 2012 02:40:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 22 Jul 2012 02:40:41 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 22 04:40:41 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 1Ssm61-0007jI-Ta for ged-emacs-devel@m.gmane.org; Sun, 22 Jul 2012 04:40:38 +0200 Original-Received: from localhost ([::1]:51028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssm61-00041q-7O for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2012 22:40:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssm5y-00041i-VX for emacs-devel@gnu.org; Sat, 21 Jul 2012 22:40:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ssm5y-0007vk-5G for emacs-devel@gnu.org; Sat, 21 Jul 2012 22:40:34 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:51020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssm5x-0007vc-UD for emacs-devel@gnu.org; Sat, 21 Jul 2012 22:40:34 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ssm5w-0007ev-2H for emacs-devel@gnu.org; Sun, 22 Jul 2012 04:40:32 +0200 Original-Received: from 123.123.253.139 ([123.123.253.139]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 22 Jul 2012 04:40:32 +0200 Original-Received: from sdl.web by 123.123.253.139 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 22 Jul 2012 04:40:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 11 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 123.123.253.139 Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+ vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMO DhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QH w/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnY DQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V 7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ7 0hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloe m/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (Mac OS X 10.6.8) Cancel-Lock: sha1:v7tE8V83htS2ubnhXPjuACsllIg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:151796 Archived-At: For example, some days ago I was seeing this error: Error in post-command-hook (completion-in-region--postch): (wrong-type-argument characterp 134217855) and it turned out the error was generated by another function 100 miles from completion-in-region--postch. debug-on-error is mostly useless in this case. Can post-command-hook errors be more informative? Thanks. Leo