From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: How to debug "Debugger entered--Lisp error: (void-function nil)"
Date: Wed, 14 Mar 2007 18:06:43 +1100 [thread overview]
Message-ID: <873b485mnw.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: 85abygg2j7.fsf@robf.de
newsspam5REMOVETHIS@robf.de writes:
> Hi,
>
> I am using "GNU Emacs 22.0.92.1 (i686-pc-linux-gnu, X toolkit)"
> and run VM (view mail) in it, but the error comes also with
> 21.4.1.
>
> Whenever I enable debug-on-error I get a backtrace with the
> following content:
>
> ,------------------------------------------
> | Debugger entered--Lisp error: (void-function nil)
> | (nil)
> `------------------------------------------
>
> How can I debug this to find the source of this problem?
>
> It also happens most of the time when I single step in edebug
> mode which makes edebug practically useless. When running with
> debug-on-error set to nil I do not see the error.
>
> Also it seems to be there already for some time as I found other
> references when googling for <<<emacs debugger entered--Lisp error:
> "(void-function nil)">>>, e.g. http://tinyurl.com/yv6t2j!
>
> Thanks,
> Robert
Normally you will see this error when emacs is trying to execute a symbol which
it believes is a function (i.e. because it is the first element in a list). A
common cause is some config setting where you have a list and have forgotten to
quote it. For example,
(setq x (nil "fred" 1))
where the intention is to set x to the value of the list (nil "fred" 1).
However, the list is not quoted, so emacs tries to execute the function 'nil'
with the arguements "fred" and 1. The correct way to do this is
(setq x '(nil "fred" 1))
or
(setq x (list nil "fred" 1)
What you need to do is track down the init error in your .vm file. Normally,
the backtrace will show the call stack, but what you have copied appears to
just be the last (top) element in the stack. With the rest of the call stack
you can usually narrow down the search as it will show you what emacs was doing
prior to trying to call the void function.
I'd suggest going through your VM config and comment out everything and then
try adding each value back, one at a time until you get the error again.
To give you confidence it will work, I'm running VM under emacs 22. I've not
had any problems except a couple of weeks ago when a change to emacs 22 caused
problems with compiling vm (an issue with new emacs approach to printing data
structures and fixed easily once I was pointed to the solution). You should
also note that you can get some unexpecttd/odd behavior/errors if you have some
emacs code compiled with emacs 21 and you try to run it under emacs 22 (though
code compiled with emacs 22 is more likely to cause issues for emacs 21). I run
different source trees for emacs 21 and emacs 22 for this reason.
HTH
Tim
--
tcross (at) rapttech dot com dot au
next prev parent reply other threads:[~2007-03-14 7:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-13 23:13 How to debug "Debugger entered--Lisp error: (void-function nil)" newsspam5REMOVETHIS
2007-03-14 7:06 ` Tim X [this message]
2007-03-31 23:51 ` newsspam5REMOVETHIS
2007-04-01 1:47 ` Tim X
2007-04-08 20:02 ` newsspam5REMOVETHIS
2007-04-08 20:17 ` newsspam5REMOVETHIS
2007-04-01 0:01 ` newsspam5REMOVETHIS
2007-04-01 2:04 ` Tim X
2007-04-08 19:14 ` newsspam5REMOVETHIS
2007-04-01 2:05 ` Tim X
2007-04-08 20:04 ` newsspam5REMOVETHIS
2007-04-09 5:16 ` Tim X
2007-04-09 9:38 ` Tim X
2007-04-09 20:17 ` newsspam5REMOVETHIS
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=873b485mnw.fsf@lion.rapttech.com.au \
--to=timx@nospam.dev.null \
--cc=help-gnu-emacs@gnu.org \
/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.