kiwanami / emacs-window-manager

Customizable window manager for emacs
230 stars 28 forks source link

fixed advices for switch/pop-to-buffer: return buffer #11

Closed tkf closed 12 years ago

tkf commented 12 years ago

The first argument of switch-to-buffer and pop-to-buffer can be a string, so you can't return it as-is. You must convert it to a buffer explicitly.

(invalid-function "*Local Variables*") なるエラーが出て困っていました。どうやら、 files.el の hack-local-variables-confirm(let* (... (buf (pop-to-buffer "*Local Variables*"))) ...) を呼んでいるのが原因だったようです。