Debugger Entered-lisp Error Void-function Defined
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 debugger entered--lisp error (void-variable {) of numbers 1 through NUMBER inclusive." (let ((total 0)) (while (> number 0) (setq emacs symbol's function definition is void total (+ total number)) (setq number (1= number))) ; Error here. total)) If you are reading this in Info, you spacemacs 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; a
word. This is because we did not https://www.gnu.org/software/emacs/manual/html_node/eintr/debug.html intend to use it as a function name. If fill-column were the first or only element of a list, the Lisp interpreter https://www.gnu.org/software/emacs/manual/html_node/eintr/Void-Function.html would attempt to find the function definition attached to it. But fill-column has no function definition. Try evaluating this: (fill-column) You will create a *Backtrace* buffer that says: ---------- Buffer: *Backtrace* ---------- Debugger entered--Lisp error: (void-function fill-column) (fill-column) eval((fill-column)) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp) ---------- Buffer: *Backtrace* ---------- (Remember, to quit the debugger and make the debugger window go away, type q in the *Backtrace* 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 http://superuser.com/questions/313398/how-to-prevent-the-symbols-function-definition-is-void-error-when-running-em Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question http://emacs.stackexchange.com/questions/2847/void-function-when-loading-ido-mode-in-emacs24 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 debugger entered-lisp voted up 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 debugger entered-lisp error the error Symbol's function 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(#
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 Emacs Questions Tags Users Badges Unanswered Ask Question _ Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. 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 and rise to the top void-function when loading ido-mode in Emacs24 up vote 0 down vote favorite I'm using Emacs 24.4.1 from Debian unstable and have added the lines from question "How do I switch buffers quickly?". However this results in an error message and I found no way to resolve it. I can reproduce it by adding the following line into the *scratch* buffer: (use-package ido-mode) When I press C-j I get the following message: Debugger entered--Lisp error: (void-function use-package) (use-package ido-mode) eval((use-package ido-mode) nil) eval-last-sexp-1(t) eval-last-sexp(t) eval-print-last-sexp(nil) call-interactively(eval-print-last-sexp) popup-menu((keymap (new-file menu-item "Visit New File..." find-file :enable (menu-bar-non-minibuffer-window-p) :help "Specify a new file's name, to edit th$ menu-bar-open() call-interactively(menu-bar-open nil nil) command-execute(menu-bar-open) Why occurs this message and what should I do to get package use-package share|improve this question edited Nov 10 '14 at 0:35 Gilles♦ 9,00722052 asked Oct 30 '14 at 10:49 Jens Kubieziel 306210 I've edited your referenced answer to now show the same implementation without having to install use-package. I'd still recommend installing that package once you understand what that does. –Kaushal Modi Oct 30 '14 at 11:05 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted use-package is not part of standard Ema