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
This commit is contained in:
parent
60cf0aa21c
commit
13651833c7
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue