aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2015-04-09 11:01:04 -0400
committerStefan Monnier2015-04-09 11:01:04 -0400
commitbeaab898968caf8b243a33d24824d430fabc31fc (patch)
tree6b20cee8a25d64a1d890a91e3cdefdf2010feef1
parent6083965958381b29aa55948670d2b85289b0be6d (diff)
downloademacs-beaab898968caf8b243a33d24824d430fabc31fc.tar.gz
emacs-beaab898968caf8b243a33d24824d430fabc31fc.zip
Stop messing with the EMACS env var
Fixes: debbugs:20202 * lisp/net/tramp-sh.el (tramp-remote-process-environment): * lisp/comint.el (comint-exec-1): * lisp/term.el (term-exec-1): Don't set EMACS envvar. * lisp/progmodes/compile.el (compilation-start): Same and bring INSIDE_EMACS's format in line with other users.
-rw-r--r--lisp/comint.el2
-rw-r--r--lisp/net/tramp-sh.el1
-rw-r--r--lisp/progmodes/compile.el6
-rw-r--r--lisp/term.el5
4 files changed, 1 insertions, 13 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 31649ff31ca..2769c8717d2 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -816,8 +816,6 @@ series of processes in the same Comint buffer. The hook
816 (format "COLUMNS=%d" (window-width))) 816 (format "COLUMNS=%d" (window-width)))
817 (list "TERM=emacs" 817 (list "TERM=emacs"
818 (format "TERMCAP=emacs:co#%d:tc=unknown:" (window-width)))) 818 (format "TERMCAP=emacs:co#%d:tc=unknown:" (window-width))))
819 (unless (getenv "EMACS")
820 (list "EMACS=t"))
821 (list (format "INSIDE_EMACS=%s,comint" emacs-version)) 819 (list (format "INSIDE_EMACS=%s,comint" emacs-version))
822 process-environment)) 820 process-environment))
823 (default-directory 821 (default-directory
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index f59c5fbdf67..3f006e84dc1 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -496,7 +496,6 @@ as given in your `~/.profile'."
496(defcustom tramp-remote-process-environment 496(defcustom tramp-remote-process-environment
497 `("TMOUT=0" "LC_CTYPE=''" 497 `("TMOUT=0" "LC_CTYPE=''"
498 ,(format "TERM=%s" tramp-terminal-type) 498 ,(format "TERM=%s" tramp-terminal-type)
499 "EMACS=t" ;; Deprecated.
500 ,(format "INSIDE_EMACS='%s,tramp:%s'" emacs-version tramp-version) 499 ,(format "INSIDE_EMACS='%s,tramp:%s'" emacs-version tramp-version)
501 "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH=" "PAGER=cat" 500 "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH=" "PAGER=cat"
502 "autocorrect=" "correct=") 501 "autocorrect=" "correct=")
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 362bbf54c0b..9d36e91cf8f 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1666,11 +1666,7 @@ Returns the compilation buffer created."
1666 (list "TERM=emacs" 1666 (list "TERM=emacs"
1667 (format "TERMCAP=emacs:co#%d:tc=unknown:" 1667 (format "TERMCAP=emacs:co#%d:tc=unknown:"
1668 (window-width)))) 1668 (window-width))))
1669 ;; Set the EMACS variable, but 1669 (list (format "INSIDE_EMACS=%s,compile" emacs-version))
1670 ;; don't override users' setting of $EMACS.
1671 (unless (getenv "EMACS")
1672 (list "EMACS=t"))
1673 (list "INSIDE_EMACS=t")
1674 (copy-sequence process-environment)))) 1670 (copy-sequence process-environment))))
1675 (set (make-local-variable 'compilation-arguments) 1671 (set (make-local-variable 'compilation-arguments)
1676 (list command mode name-function highlight-regexp)) 1672 (list command mode name-function highlight-regexp))
diff --git a/lisp/term.el b/lisp/term.el
index 43138fa6dd8..4c829864200 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -1505,11 +1505,6 @@ Using \"emacs\" loses, because bash disables editing if $TERM == emacs.")
1505 (format "TERMINFO=%s" data-directory) 1505 (format "TERMINFO=%s" data-directory)
1506 (format term-termcap-format "TERMCAP=" 1506 (format term-termcap-format "TERMCAP="
1507 term-term-name term-height term-width) 1507 term-term-name term-height term-width)
1508 ;; We are going to get rid of the binding for EMACS,
1509 ;; probably in Emacs 23, because it breaks
1510 ;; `./configure' of some packages that expect it to
1511 ;; say where to find EMACS.
1512 (format "EMACS=%s (term:%s)" emacs-version term-protocol-version)
1513 (format "INSIDE_EMACS=%s,term:%s" emacs-version term-protocol-version) 1508 (format "INSIDE_EMACS=%s,term:%s" emacs-version term-protocol-version)
1514 (format "LINES=%d" term-height) 1509 (format "LINES=%d" term-height)
1515 (format "COLUMNS=%d" term-width)) 1510 (format "COLUMNS=%d" term-width))