~fitzsim/firefox-javascript-repl

9208c234cb6879b3de9f623c918d8f1baad14877 — Thomas Fitzsimmons 10 months ago 76ba08c
Fix kill-buffer-hook for Emacs 26.1

* firefox-javascript-repl.el (firefox-javascript-repl-mode): Do
not add comint--indirect-cleanup to kill-buffer-hook if it does
not exist.
1 files changed, 2 insertions(+), 1 deletions(-)

M firefox-javascript-repl.el
M firefox-javascript-repl.el => firefox-javascript-repl.el +2 -1
@@ 200,7 200,8 @@ ARGUMENTS will be used for FORMAT, like `messages'."
    (when (fboundp 'comint-fontify-input-mode)
      (comint-fontify-input-mode))
    (make-local-variable 'kill-buffer-hook)
    (add-hook 'kill-buffer-hook 'comint--indirect-cleanup)
    (when (fboundp 'comint--indirect-cleanup)
      (add-hook 'kill-buffer-hook 'comint--indirect-cleanup))
    (add-hook 'kill-buffer-hook
              (lambda ()
                (let ((network (get-process "firefox-javascript-repl")))