From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex =?utf-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.help Subject: Re: Help debugging backtrace Date: Thu, 24 Oct 2013 10:54:23 +0100 Message-ID: References: <87zjpzybt9.fsf@linaro.org> <877gd3lcou.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1382623211 13955 80.91.229.3 (24 Oct 2013 14:00:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Oct 2013 14:00:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 24 16:00:15 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1VZLSP-0003Yu-Tc for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Oct 2013 16:00:14 +0200 Original-Received: from localhost ([::1]:54559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZLSP-0004au-Ja for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Oct 2013 10:00:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZHcc-0003PQ-Rr for help-gnu-emacs@gnu.org; Thu, 24 Oct 2013 05:54:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZHcY-0000AY-7C for help-gnu-emacs@gnu.org; Thu, 24 Oct 2013 05:54:30 -0400 Original-Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:54968 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZHcX-00009u-NC for help-gnu-emacs@gnu.org; Thu, 24 Oct 2013 05:54:26 -0400 Original-Received: from localhost ([127.0.0.1] helo=sloy) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1VZHeQ-0000sL-7Q; Thu, 24 Oct 2013 11:56:22 +0200 User-agent: mu4e 0.9.9.6pre2; emacs 24.3.1 In-reply-to: <877gd3lcou.fsf@web.de> X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: alex.bennee@linaro.org X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 88.198.71.155 X-Mailman-Approved-At: Thu, 24 Oct 2013 09:59:52 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94192 Archived-At: michael_heerdegen@web.de writes: > Alex Bennée writes: > >> crmbk-frame-mode: cleaning up, running hooks: (crmbk-reset-search >> crmbk-reenable-touchpad crmbk-remove-powerd-hooks) Error during >> redisplay: (run-hook-with-args crmbk-delete-frame-handler #> Server Frame 0x3830530>) signaled (invalid-function (lambda "Clean-up >> any hooks into powerd and it's dbus interface" (message (format "in >> crmbk-remove-powerd-hooks: %s" post-command-hook)) (remove-hook (quote >> post-command-hook) (quote crmbk-notify-powerd-user-activity)) (message >> "done"))) > > This error message says that an invalid function was called. It is this > one (you're missing to specify the argument list): > > (defun crmbk-remove-powerd-hooks > "Clean-up any hooks into powerd and it's dbus interface" > (remove-hook 'post-command-hook 'crmbk-notify-powerd-user-activity)) Ahh seems so obvious now, I should have noticed. I was surprised though: (defun my-test-defun "This is a test" (message " in my test")) (defun my-test-defun2 () "This is a test" (message " in my test 2")) You can happily C-x C-e eval-last-sexp both of those defuns without complaint. The error in the defun only shows up when you try and execute them. -- Alex Bennée