summaryrefslogtreecommitdiff
path: root/lisp/comint.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@penguin.cs.ucla.edu>2016-03-23 15:07:56 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-03-23 15:08:19 -0700
commit73d213f2816876fe9c6c429e75a3be5454a42b34 (patch)
tree392e90323b75f8ffdc1862c996e6271d77df4ff7 /lisp/comint.el
parent9524ec5e4e3c7c3036f2640b2595d3755894c1b3 (diff)
downloademacs-73d213f2816876fe9c6c429e75a3be5454a42b34.tar.gz
Comint, term, and compile now set EMACS
This fixes directory tracking in ansi-term, at the expense of breaking some usages of 'configure'. Setting EMACS is meant to be a somewhat temporary measure, until Bash 4.4 comes out and is common. (Bug#20484). * etc/NEWS: Document this. * lisp/comint.el (comint-exec-1): * lisp/net/tramp-sh.el (tramp-remote-process-environment): * lisp/progmodes/compile.el (compilation-start): * lisp/term.el (term-exec-1): Go back to setting the EMACS environment variable, for backward compatibility to Bash 4.3 and earlier.
Diffstat (limited to 'lisp/comint.el')
-rw-r--r--lisp/comint.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index dcd4a5ae4cf..cb79c175f0e 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -816,6 +816,13 @@ series of processes in the same Comint buffer. The hook
(format "COLUMNS=%d" (window-width)))
(list "TERM=emacs"
(format "TERMCAP=emacs:co#%d:tc=unknown:" (window-width))))
+
+ ;; This hack is for backward compatibility with Bash 4.3 and
+ ;; earlier. It can break common uses of 'configure', so
+ ;; remove it once Bash 4.4 or later is common.
+ (unless (getenv "EMACS")
+ (list "EMACS=t"))
+
(list (format "INSIDE_EMACS=%s,comint" emacs-version))
process-environment))
(default-directory