]> git.eshelyaron.com Git - emacs.git/commit
Fix pre- and post-command-hook errors in term.el
authorKarl Otness <karl@karlotness.com>
Sun, 22 Apr 2018 03:01:11 +0000 (23:01 -0400)
committerEli Zaretskii <eliz@gnu.org>
Sun, 22 Apr 2018 17:06:50 +0000 (20:06 +0300)
commitd6e2c593180934926fa4cc5b58fdab82b20f5f14
treefa91f17df79d95916ea2b34d7aadc1d8fd8e5fec
parent6cf83131e263fd66fb0ae224bf83b1909b66157d
Fix pre- and post-command-hook errors in term.el

Before this patch, after the terminal process dies the command
hooks added in term-mode's char mode would produce errors.
This fix removes these hooks when the process dies.
* lisp/term.el (term-handle-exit): Remove pre-command-hook and
post-command-hook because the process is dead.  (Bug#31236)

Copyright-paperwork-exempt: yes
lisp/term.el