]> git.eshelyaron.com Git - emacs.git/commit
Always perform Eshell process cleanup runs in the Eshell buffer
authorJim Porter <jporterbugs@gmail.com>
Wed, 26 Jun 2024 04:39:35 +0000 (21:39 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 26 Jun 2024 13:34:30 +0000 (15:34 +0200)
commita5d4c3659b7029fd58138210fb47249e77f65e15
treebf3ea051b78f73a77dfadf6c3a9c8469053c54b7
parent78ddaeb6d339d1c900cf76e3edff2ec3f0fd523a
Always perform Eshell process cleanup runs in the Eshell buffer

Previously, some code executed in a timer, which could execute in the
wrong buffer, leading to a hang.

* lisp/eshell/esh-proc.el (eshell-sentinel): Use 'with-current-buffer'
in the timer function.

* test/lisp/eshell/esh-proc-tests.el (eshell-test-value): New variable.
(esh-proc-test/sentinel/change-buffer): New test.

(cherry picked from commit da4bc5c9274a6705501e24fb8f2984f5bf5fe099)
lisp/eshell/esh-proc.el
test/lisp/eshell/esh-proc-tests.el