From: Alyssa Ross Date: Mon, 7 Dec 2020 15:57:31 +0000 (+0100) Subject: Only use the comint environment in comint-derived modes X-Git-Tag: emacs-28.0.90~4874 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=13651833c73b78e509a47ab38b8c5a60134f04fc;p=emacs.git Only use the comint environment in comint-derived modes * lisp/progmodes/compile.el (compilation-start): Only use the comint environment in comint-derived modes (bug#45095). Copyright-paperwork-exempt: yes --- diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 787f5d5ef30..1b7e1b9dacd 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -1868,7 +1868,8 @@ Returns the compilation buffer created." (let ((process-environment (append compilation-environment - (comint-term-environment) + (and (derived-mode-p 'comint-mode) + (comint-term-environment)) (list (format "INSIDE_EMACS=%s,compile" emacs-version)) (copy-sequence process-environment)))) (set (make-local-variable 'compilation-arguments)