mhayashi1120 / yagist.el

Yet another Emacs paste mode, this one for Gist.
32 stars 9 forks source link

Change revert-buffer-function to buffer local variable. #4

Closed yasuyk closed 11 years ago

yasuyk commented 11 years ago

Change revert-buffer-function from global variable to to buffer local variable in yagist-list-mode. IF revert-buffer-function is global variable, revert-buffer function is called in any other buffer each time yagist-list-revert-buffer is called too in any other buffer.

Step to reproduce:

  1. M-x yagist-list
  2. switch to any other buffer (e.g scratch)
  3. M-x revert-buffer
mhayashi1120 commented 11 years ago

Oops, I didn't know that. Thanks

yasuyk commented 11 years ago

Thank you, too. I enjoy Gist with your yagist.el.