# HG changeset patch # User Richard M. Stallman # Date 1164680488 0 # Node ID efbf3bcfde0b2be5b5314a897248a44db6dc51aa # Parent 2ba390dee91152273144732276df48f4affc0476 (term-exec-1): Set envvar INSIDE_EMACS. diff -r 2ba390dee911 -r efbf3bcfde0b lisp/term.el --- a/lisp/term.el Tue Nov 28 02:21:03 2006 +0000 +++ b/lisp/term.el Tue Nov 28 02:21:28 2006 +0000 @@ -1422,8 +1422,12 @@ (format "TERMINFO=%s" data-directory) (format term-termcap-format "TERMCAP=" term-term-name term-height term-width) - ;; Breaks `./configure' of w3 and url which try to run $EMACS. + ;; 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)) process-environment))