Debugger Entered-lisp Error Void-function Define
Example with Decrementing Counter, for a discussion.) However, your function definition has a bug. You have mistyped ‘1=’ for ‘1-’. Here is the broken definition: (defun triangle-bugged (number) "Return sum of numbers 1 through NUMBER inclusive." (let ((total 0)) (while (> number 0) (setq total (+ total number)) (setq number (1= number))) ; Error here. total)) If you are reading this in Info, you can evaluate this definition in the normal fashion. You will see triangle-bugged appear in the echo area. Now evaluate the triangle-bugged function with an argument of 4: (triangle-bugged 4) In a recent GNU Emacs, you will create and enter a *Backtrace* buffer that says: ---------- Buffer: *Backtrace* ---------- Debugger entered--Lisp error: (void-function 1=) (1= number) (setq number (1= number)) (while (> number 0) (setq total (+ total number)) (setq number (1= number))) (let ((total 0)) (while (> number 0) (setq total ...) (setq number ...)) total) triangle-bugged(4) eval((triangle-bugged 4)) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp) ---------- Buffer: *Backtrace* ---------- (I have reformatted this example slightly; the debugger does not fold long lines. As usual, you can quit the debugger by typing q in the *Backtrace* buffer.) In practice, for a bug as simple as this, the Lisp error line will tell you what you need to know to correct the definition. The function 1= is void. However, suppose you are not quite certain what is going on? You can read the complete backtrace. In this case, you need to run a recent GNU Emacs, which automatically starts the debugger that puts you in the *Backtrace* buffer; or else, you need to start the debugger manually as described below. Read the *Backtrace* buffer from the bottom up; it tells you what Emacs did that led to the error. Emacs made an interactive call to C-x C-e (eval-last-sexp), which led to the evaluation of the triangle-bugged expression. Each line above tells you what the Lisp interpreter evaluated next. The third line from the top of the buffer is (setq number (1= number)) Emacs tried to evaluate this expression; in order to do so, it tried to evaluate the inner expression shown on the second line from the top: (1= number) This is where the error occurred; as the top line says: Debugger entered--Lisp error: (void
Sign in Pricing Blog Support Search GitHub This repository Watch 215 Star 3,143 Fork 1,389 bbatsov/prelude Code Issues 133 Pull requests 10 Projects 0 Wiki Pulse Graphs New issue Debugger entered--Lisp error: (void-function filename) #307 Closed pigmej opened this Issue Apr 25, 2013 · 8 comments Projects https://www.gnu.org/software/emacs/manual/html_node/eintr/debug.html None yet Labels None yet Milestone No milestone Assignees No one assigned 6 participants pigmej commented Apr 25, 2013 Debugger entered--Lisp error: (void-function filename) filename("/home/pigmej/.emacs.d/elpa/flycheck-20130424.2259/flycheck.elc") flycheck--declare-checker-1(bash "A Bash syntax checker using the bash executable.\n\nSee URL `http://www.gnu.org/software/bash/'." :command ("bash" "--norc" https://github.com/bbatsov/prelude/issues/307 "-n" "--" source) :error-patterns (("^\\(?1:.+\\):[^0-9]+\\(?2:[0-9]+\\) *: *\\(?4:.*\\)$" error)) :modes sh-mode :predicate (eq sh-shell (quote bash))) byte-code("\300\301\302\303\304\305\306\307\310\311\312&\n\210\313\314\315\316#\207" [flycheck--declare-checker-1 bash "A Bash syntax checker using the bash executable.\n\nSee URL `http://www.gnu.org/software/bash/'." :command ("bash" "--norc" "-n" "--" source) :error-patterns (("^\\(?1:.+\\):[^0-9]+\\(?2:[0-9]+\\) *: *\\(?4:.*\\)$" error)) :modes sh-mode :predicate (eq sh-shell (quote bash)) put coffee-coffeelint :flycheck-config-file-var flycheck-coffeelintrc] 11) (global-flycheck-mode 1) (if (fboundp (quote global-flycheck-mode)) (global-flycheck-mode 1) (add-hook (quote prog-mode-hook) (quote flycheck-mode))) eval-buffer(#
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 http://superuser.com/questions/313398/how-to-prevent-the-symbols-function-definition-is-void-error-when-running-em more about Stack Overflow the company Business Learn more about hiring developers or http://stackoverflow.com/questions/8006409/send-code-to-scheme-interpreter-from-info-buffer posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up debugger entered-lisp and rise to the top How to prevent the “Symbol's function definition is void: error” when running emacs in the console? up vote 8 down vote favorite 1 To disable the scrollbar in emacs I added (toggle-scroll-bar -1) to the my .emacs file and it works great when I run emacs outside of console mode. However when I run emacs in the terminal I get the error Symbol's function debugger entered-lisp error definition is void: toggle-scroll-bar I'm running Emacs 23.3.1 heres the trace when I run --debug-init 1 Debugger entered--Lisp error: (void-function scroll-bar-mode) 2 (scroll-bar-mode -1) 3 eval-buffer(#
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 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 Send code to scheme interpreter from info buffer up vote 3 down vote favorite 2 I want to study SICP in my Emacs. I've installed MIT Scheme, Emacs 24 and downloaded sicp info (using this guide http://www.pchristensen.com/blog/articles/setting-up-and-using-emacs-infomode/). Now I'm able to run scheme interpreter in dedicated buffer(M-x run-scheme), but I get the following error when I try to send one of define expressions from info buffer (C-x C-e): Debugger entered--Lisp error: (void-function define) (define (abs x) (cond ((> x 0) x) ((= x 0) 0) ((< x 0) (- x)))) eval((define (abs x) (cond ((> x 0) x) ((= x 0) 0) ((< x 0) (- x)))) nil) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) Looks like Emacs is trying to execute this code with Lisp interpreter. As workaround for this issue now I open scheme buffer (*.scm file), copy code to it from info, and them execute it with C-x C-e. But I want to execute it directly from info buffer. How can I setup this? emacs scheme sicp share|improve this question asked Nov 4 '11 at 8:08 Pavel Khlustikov 434 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote accepted When you press (C-x C-e) in info mode Emacs is invoking eval-last-sexp because that is what the key combination is bound to in info-mode What is (C-x C-e) bound to in scheme-mode? You can find out using (C-h c)? You can bind some other key combination to that function in info mode and use that key combination. Note that info mode is read-only. If the schem