Debugger Entered-lisp Error Void-variable
Sign in Pricing Blog Support Search GitHub This repository Watch 63 Star 1,033 Fork 111 magnars/multiple-cursors.el Code Issues 54 Pull requests 13 Projects 0 Pulse Graphs New issue Debugger entered--Lisp error: (void-variable xxxx) #81 Closed jccode opened this Issue May 17, 2013 · 8 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants jccode commented May 17, 2013 Hi magnars, when I use the multiple-cursor, I found some warning messages. Could you help to find out the cause of this? The steps to turn out this warning messages: 1. Turn on lisp-interaction-mode in current buffer(or you can open the "scratch" buffer). 2. use "C->" to select several words. 3. use "C-j" to insert newline. Then, The warning messages will appear now. The full warning messages as below: Debugger entered--Lisp error: (void-variable modes) eval(modes nil) eval-last-sexp-1(t) eval-last-sexp(t) eval-print-last-sexp() call-interactively(eval-print-last-sexp nil nil) The symbol "modes" in the warning messages, is the word which I selected. I have test it in Linux & windows xp, and the results are consistent. Emacs version: GNU Emacs 24.2.1 (x86_64-suse-linux-gnu) GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600) Owner magnars commented May 17, 2013 Aha. That's because C-j is not bound to newline-and-indent in lisp-interaction-mode. It is bound to eval-print-last-sexp. My guess is that you will get the same error if you do: 1. Turn on lisp-interaction-mode in current buffer 2. mark the word "modes" 3. use "C-j" Since it will then try to evaluate the current region. jccode commented May 17, 2013 Yes, I see. Thank you magnars. I encounter another problem. And I'm not sure whether it's a problem of multiple-cursors. I found the problem only occur in windows emacs, while which works fine in linux emacs. In windows emacs, turn org-mod on, use "C->" to mark several words, then hit space-bar to insert a space. All the region should have been inserted one space now, but i found only the first region have been successfully inserted, others didn't change at all. It seems strangely. Do you think that what might
Sign in Pricing Blog Support Search GitHub This repository Watch 38 Star 630 Fork 149 xiaohanyu/oh-my-emacs Code Issues 1 Pull requests 0 Projects 0 Pulse Graphs New issue Debugger entered--Lisp error: (void-variable Labels upstream-bug-maybe https://github.com/magnars/multiple-cursors.el/issues/81 Milestone No milestone Assignees No one assigned 4 participants dadaphl commented May 30, 2014 when i start wich --debug-init Debugger entered--Lisp error: (void-variable
Bad Request
Your https://github.com/xiaohanyu/oh-my-emacs/issues/75 browser sent a request that this server could not understand\.
Reason: You speaking plain HTTP to an SSL-enabled port\.
] 2) require(linum-relative) byte-code("\306 �\307 \n\"�\310�!�\311\312�\313\"!�\312�\314\"�6\311\312�\315\"!�7\311\316 !!�8\317�\320�9#�:\312�\321\"�;\312�\322\"�<\312�\323\"�=\312�\324\"�>\312�\325\"�?\326 !�@\327�!\210\f\330=\204\272 Ok seems like my clipboard is too small for the whole error. This is without the bytecode parts: Debugger entered--Lisp error: (void-variable
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow http://stackoverflow.com/questions/1360562/lisp-void-variable-error-when-evaluating-function Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Lisp void-variable error when evaluating function up vote 3 down vote favorite I'm trying to learn Lisp (elisp, actually), and I tried writing the following function as an exercise Project Euler Problem 2 (defun sumfib (n fn1 fn2 sum) "Calculate Fibonacci numbers up to 4,000,000 and sum all debugger entered-lisp the even ones" (if (< 4000000 (+ fn1 fn2)) sum (if (equal n 3) (sumfib 1 (+ fn1 fn2) fn1 (+ sum (+fn1 fn2))) (sumfib (+ n 1) (+ fn1 fn2) fn1 sum))) When I evaluate it I get the following error: Debugger entered--Lisp error: (void-variable fn1) (+ fn1 fn2) (< 4000000 (+ fn1 fn2)) ... Why wouldn't it recognize fn1? If I try to put (+ fn1 fn2) before the 'if' it doesn't complain about it there, so why the error here? Also, I realize the function debugger entered-lisp error may not actually be correct, but for now I'm not worried about the logic - I'll figure that out later. For now, I'm only interested in understanding this error. lisp elisp share|improve this question edited Jan 22 '15 at 17:55 iCodez 76.9k16107134 asked Sep 1 '09 at 4:45 Tal Pressman 5,0062029 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote accepted Not sure if this solves your problem (I don't have an elisp interpreter handy), but you're missing a right paren. There should be one at the end of the first 'if' statement, after 'sum'. (if (< 4000000 (+ fn1 fn2)) sum) instead of: (if (< 4000000 (+ fn1 fn2)) sum I also think there might be some other issues in there. share|improve this answer edited Sep 1 '09 at 4:59 answered Sep 1 '09 at 4:52 Sam DeFabbia-Kane 2,0911110 Ooh, I am missing a parenthesis... It's not after the first 'if' though, as that's supposed to be and 'if-else'. Thanks. –Tal Pressman Sep 1 '09 at 5:02 Ah, ok. I'm used to Scheme, which does things a bit differently. Glad I was at least somewhat helpful. –Sam DeFabbia-Kane Sep 1 '09 at 5:08 add a comment| up vote 4 down vote You need an extra close parenthesis at the end of your function. You need a space in the first clause of the second if: (+fn1 fn2) should be (+ fn1 fn2). ELisp otherwise reads it as passing fn2 to a function named +fn1. Couple of other style issues: