10
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 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(#<buffer *load*> nil "/Users/neil/.emacs.d/init.el" nil t) ;$
4 load-with-code-conversion("/Users/neil/.emacs.d/init.el" "/Users/neil/.ema$
5 load("/Users/neil/.emacs.d/init" t t)
6 #[nil "^H\205\264^@ \306=\203^Q^@\307^H\310Q\2027^@ \311=\2033^@\312\307$
7 command-line()
8 normal-top-level()
Emacs probably gave you a Warnings buffer telling you to run emacs with the
--debug-init
option to get a complete error backtrace. Try that and add that information to the question. Along with the Emacs versionM-x emacs-version
. That chunk of code works just fine with Emacs 23.2. – Trey Jackson – 2011-07-21T21:48:37.240@Trey Jackson, I added the details you requested, I seem to be running Emacs 23.1, so I'll try upgrading. Thank you for your suggestions. – bneil – 2011-07-22T16:23:40.903
Very odd. Ok, next test is running Emacs w/out your .emacs,
emacs -nw -q
, and then in the scratch buffer, type(scroll-bar-mode -1)C-j
and see if you get an error. That function is distributed with Emacs in thescroll-bar.el
package, so I'm guessing your.emacs
has something odd, or the Emacs wasn't installed properly. – Trey Jackson – 2011-07-22T16:25:59.887I get this error upon doing that
Debugger entered--Lisp error: (void-function scroll-bar-mode) (scroll-bar-mode -1) eval((scroll-bar-mode -1)) eval-last-sexp-1(t) eval-last-sexp(t) eval-print-last-sexp() call-interactively(eval-print-last-sexp nil nil) – bneil – 2011-07-22T16:30:42.270
Here is my .emacs file http://pastebin.com/4mYE91Ne too
– bneil – 2011-07-22T16:34:51.737Ok, now how about
M-x find-library simple RET
- that should take you to where Emacs is installed, thenC-x C-d
to open a dired, and in that directory there should be ascroll-bar.elc
. Though the directions might fail if the Emacs wasn't installed with source lisp code... – Trey Jackson – 2011-07-22T16:46:53.507@TreyJackson let us continue this discussion in chat
– bneil – 2011-07-22T16:53:12.203