Bad-ptr / persp-mode.el

named perspectives(set of buffers/window configs) for emacs
401 stars 44 forks source link

Fix not restoring read-buffer-function issue #24

Closed syohex closed 8 years ago

syohex commented 8 years ago

In original code, read-buffer-function is not restored after disabled persp-mode. Because "#'" is prefixed to read-buffer-function and persp-saved-read-buffer-function. They are variables, not functions. Value of #'read-buffer-function is the symbol 'read-buffer-function, not its value. So "#'" must be removed.

You can see this issue by following step.

  1. % emacs -Q -l persp-mode.el"
  2. Check value of read-buffer-function. It is nil.
  3. Enable persp-mode by M-x persp-mode
  4. Disable persp-mode by M-x persp-mode
  5. Check value of read-buffer-function again. It is 'persp-saved-read-buffer-function(Expected nil).
Bad-ptr commented 8 years ago

Thanks!