]> git.eshelyaron.com Git - emacs.git/commit
Fix previous commit regarding revert-buffer-function
authorSean Whitton <spwhitton@spwhitton.name>
Fri, 29 Jan 2021 07:18:52 +0000 (08:18 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 29 Jan 2021 07:18:52 +0000 (08:18 +0100)
commit19afd6de25eb836014301009620091be6f0012b0
tree6fab21eaae69e305faded1921cba70f5f03c07d0
parent4e27a260e5886ee9f51877c4e66306e411c195e1
Fix previous commit regarding revert-buffer-function

* simple.el (shell-command, shell-command-on-region): Set
revert-buffer-function buffer-locally, not globally.  Also, avoid an
unnecessary call to (current-buffer) by taking advantage of the
closure (bug#46151).
lisp/simple.el