]> git.eshelyaron.com Git - emacs.git/commit
Set the current buffer in esh-mode before running filter functions
authorSteven Allen <steven@stebalien.com>
Sun, 16 Aug 2020 12:31:27 +0000 (14:31 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 16 Aug 2020 12:31:27 +0000 (14:31 +0200)
commitba9a2b6c27b3f17e4d320ff9cbee17c79c07d5db
treeeddc917969987d5109022088627e8ae9f64f5ef1
parent9f464ccaf9acc36b22bc292c6c572048e147d281
Set the current buffer in esh-mode before running filter functions

* lisp/eshell/esh-mode.el: (eshell-output-filter): Match
current-buffer behavior of comint-output-filter (bug#42870).

This change (a) sets the current buffer to the process-buffer when
invoking preoutput filter functions and (b) only invokes them when the
process-buffer is live. Otherwise, the preoutput filter functions be
invoked in whatever buffer happens to be focused, breaking hooks that
read buffer-local variables.
lisp/eshell/esh-mode.el