mmontone / emacs-inspector

Inspection tool for Emacs Lisp objects.
GNU General Public License v3.0
107 stars 9 forks source link

Only locally bind `revert-buffer-function' #29

Closed tazjin closed 1 year ago

tazjin commented 1 year ago

Setting this variable globally causes #'revert-file to stop working. I got very confused by this, as Emacs was prompting me about a file I was editing having changed on disk, but me being unable to reload it.

Note that this is not required for the following line because that variable automatically becomes buffer-local when set.

tazjin commented 1 year ago

I have copyright paperwork on file with the FSF, but this change is small enough to not require it anyways.

mmontone commented 1 year ago

Thanks for the fix!

tazjin commented 1 year ago

And thanks for the package! :)