Skip to content

Commit

Permalink
Merge pull request #29 from tazjin/local-revert-buffer-function
Browse files Browse the repository at this point in the history
Only locally bind `revert-buffer-function'
  • Loading branch information
mmontone authored Sep 14, 2023
2 parents daff792 + c2670a2 commit 702d3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inspector.el
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ is expected to be used.")
buf))))
(with-current-buffer buffer
(add-hook 'xref-backend-functions 'elisp--xref-backend 0 'local)
(setq revert-buffer-function #'inspector--revert-buffer)
(setq-local revert-buffer-function #'inspector--revert-buffer)
(setq buffer-read-only nil)
(erase-buffer))
buffer))
Expand Down

0 comments on commit 702d3da

Please sign in to comment.