jonathanchu / emacs-powerline

Powerline for Emacs
497 stars 37 forks source link

define get-scroll-bar-mode function if it is not available #6

Closed prakashk closed 12 years ago

prakashk commented 12 years ago

In emacs 23.2, I was getting a blank modeline, similar to the issue https://github.com/jonathanchu/emacs-powerline/issues/4. But the cause turned out to be different in my case.

It turns out that get-scroll-bar-mode was defined in the scroll-bar.el that came with emacs 24, but it wasn't available in 23.2.

The patch fixes emacs 23.2 for me. It is not tested in emacs 24.

jonathanchu commented 12 years ago

Thanks for this! Let me test against v24.1.90 and I'll merge if all looks good.

gorakhargosh commented 12 years ago

+1 I get the following error in Emacs 24.1.50.1

Symbol's function definition is void: scroll-bar-mode

when running emacs in the terminal.