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 11:19:54 +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 1382610028 13905 80.91.229.3 (24 Oct 2013 10:20:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Oct 2013 10:20:28 +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 12:20:32 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 1VZI1n-00075y-Ux for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Oct 2013 12:20:32 +0200 Original-Received: from localhost ([::1]:53718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZI1n-0007Fk-CY for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Oct 2013 06:20:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZI1J-0006pC-EA for help-gnu-emacs@gnu.org; Thu, 24 Oct 2013 06:20:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZI1E-0001Cw-Jc for help-gnu-emacs@gnu.org; Thu, 24 Oct 2013 06:20:01 -0400 Original-Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:55123 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZI1E-0001Cm-Ea for help-gnu-emacs@gnu.org; Thu, 24 Oct 2013 06:19:56 -0400 Original-Received: from localhost ([127.0.0.1] helo=sloy) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1VZI37-000141-H9; Thu, 24 Oct 2013 12:21:53 +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: kernel-hacker@bennee.com 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-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:94186 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