emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wrong-number-of-arguments in post-command-hook


From: Stefan Monnier
Subject: Re: wrong-number-of-arguments in post-command-hook
Date: Mon, 16 Mar 2020 11:23:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Error in post-command-hook (my-post-command): (wrong-type-argument listp t)
>
> Seeing these I was wondering why the error does not contain the called 
> function name.
> Is that info not available?

More or less: it's in the stack somewhere, but it's not trivial to
extract that info reliably.  The code that runs the hook does
store&print the name of the top-level function called
(`my-post-command` here) to try and help a bit.

> It could help debugging a lot if the error also printed theĀ 
> function name alongside with the error.

Have you tried `M-: (my-post-command) RET`?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]