Malabarba / spinner.el

Emacs mode-line spinner for operations in progress
104 stars 21 forks source link

Won't fail when mode-line-format is not a list. #2

Closed jordonbiondo closed 8 years ago

jordonbiondo commented 9 years ago

Fix for: https://github.com/Bruce-Connor/spinner.el/issues/1/

This allows spinner.el to work when the mode-line-format is nil, a string, or a symbol which are valid values.

The initial empty string is actually necessary. I basically copied how eldoc handles non-list mode-line-strings.

Malabarba commented 8 years ago

Sorry for not replying to this earlier. Github didn't notify me for some reason. I'll close this PR because the implementation changed quite a bit and we no longer edit this variable directly.