]> code.delx.au - gnu-emacs/commitdiff
Stop messing with the EMACS env var
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 9 Apr 2015 15:01:04 +0000 (11:01 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 9 Apr 2015 15:01:04 +0000 (11:01 -0400)
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.

lisp/comint.el
lisp/net/tramp-sh.el
lisp/progmodes/compile.el
lisp/term.el

index 31649ff31cae140c2ee312e72a2e9422b45f8d83..2769c8717d2878286a238e62dae842d9eab477ea 100644 (file)
@@ -816,8 +816,6 @@ 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))))
-         (unless (getenv "EMACS")
-           (list "EMACS=t"))
          (list (format "INSIDE_EMACS=%s,comint" emacs-version))
          process-environment))
        (default-directory
index f59c5fbdf67eaf48e606ead732927fc2d334f2e1..3f006e84dc1ff1c0eb40183463ce1fe1fc0d0a83 100644 (file)
@@ -496,7 +496,6 @@ as given in your `~/.profile'."
 (defcustom tramp-remote-process-environment
   `("TMOUT=0" "LC_CTYPE=''"
     ,(format "TERM=%s" tramp-terminal-type)
-    "EMACS=t" ;; Deprecated.
     ,(format "INSIDE_EMACS='%s,tramp:%s'" emacs-version tramp-version)
     "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH=" "PAGER=cat"
     "autocorrect=" "correct=")
index 362bbf54c0bd3ceb0b373285a0584a72825c4b9b..9d36e91cf8f49e1a378b0e09eeabbde9bbe84619 100644 (file)
@@ -1666,11 +1666,7 @@ Returns the compilation buffer created."
                (list "TERM=emacs"
                      (format "TERMCAP=emacs:co#%d:tc=unknown:"
                              (window-width))))
-             ;; Set the EMACS variable, but
-             ;; don't override users' setting of $EMACS.
-             (unless (getenv "EMACS")
-               (list "EMACS=t"))
-             (list "INSIDE_EMACS=t")
+             (list (format "INSIDE_EMACS=%s,compile" emacs-version))
              (copy-sequence process-environment))))
        (set (make-local-variable 'compilation-arguments)
             (list command mode name-function highlight-regexp))
index 43138fa6dd8b83ef14cf10f1e06b5c3bfaffe346..4c829864200c9115b6a69dfb327183a6f471ebbb 100644 (file)
@@ -1505,11 +1505,6 @@ Using \"emacs\" loses, because bash disables editing if $TERM == emacs.")
           (format "TERMINFO=%s" data-directory)
           (format term-termcap-format "TERMCAP="
                   term-term-name term-height term-width)
-          ;; We are going to get rid of the binding for EMACS,
-          ;; probably in Emacs 23, because it breaks
-          ;; `./configure' of some packages that expect it to
-          ;; say where to find EMACS.
-          (format "EMACS=%s (term:%s)" emacs-version term-protocol-version)
           (format "INSIDE_EMACS=%s,term:%s" emacs-version term-protocol-version)
           (format "LINES=%d" term-height)
           (format "COLUMNS=%d" term-width))