emacs-devel
[Top][All Lists]
Advanced

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

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


From: ndame
Subject: wrong-number-of-arguments in post-command-hook
Date: Fri, 13 Mar 2020 17:23:29 +0100 (CET)

I'm working on some code using post command hook and there were some errors
in it which were not trivial to find, because post-command-hook does not print
backtraces when debug on error is enabled.

It prints an error message though, here are two examples from my code:

Error in post-command-hook (my-post-command): (wrong-number-of-arguments (2 . 2) 1)

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? It could help debugging a lot if the error also printed the 
function name alongside with the error.
reply via email to

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