From: "Alex Bennée" <kernel-hacker@bennee.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Help debugging backtrace
Date: Thu, 24 Oct 2013 11:19:54 +0100 [thread overview]
Message-ID: <p14n87otrp.fsf@linaro.org> (raw)
In-Reply-To: <877gd3lcou.fsf@web.de>
michael_heerdegen@web.de writes:
> Alex Bennée <kernel-hacker@bennee.com> 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 #<frame Edit
>> 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
next prev parent reply other threads:[~2013-10-24 10:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-23 20:25 Help debugging backtrace Alex Bennée
2013-10-24 0:44 ` Michael Heerdegen
2013-10-24 9:54 ` Alex Bennée
2013-10-24 10:19 ` Alex Bennée [this message]
2013-10-24 10:57 ` Michael Heerdegen
2013-10-24 11:04 ` `defun' doesn't complain when arglist is missing Nicolas Richard
2013-10-24 17:14 ` Stefan Monnier
[not found] ` <mailman.4604.1382612629.10748.help-gnu-emacs@gnu.org>
2013-10-24 21:23 ` Pascal J. Bourguignon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=p14n87otrp.fsf@linaro.org \
--to=kernel-hacker@bennee.com \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.