aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-11-28 02:21:28 +0000
committerRichard M. Stallman2006-11-28 02:21:28 +0000
commit503bc651bd1d9cfa1079023df5249ee219dc44a0 (patch)
treebf4917ccc7335749ebc80f333264755dd7cd81f6
parentee4dc5d959abd9c1795d3c01a0a036d057fc5838 (diff)
downloademacs-503bc651bd1d9cfa1079023df5249ee219dc44a0.tar.gz
emacs-503bc651bd1d9cfa1079023df5249ee219dc44a0.zip
(term-exec-1): Set envvar INSIDE_EMACS.
-rw-r--r--lisp/term.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/term.el b/lisp/term.el
index 4124e2a2969..77dd921b7b6 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -1422,8 +1422,12 @@ The main purpose is to get rid of the local keymap."
1422 (format "TERMINFO=%s" data-directory) 1422 (format "TERMINFO=%s" data-directory)
1423 (format term-termcap-format "TERMCAP=" 1423 (format term-termcap-format "TERMCAP="
1424 term-term-name term-height term-width) 1424 term-term-name term-height term-width)
1425 ;; Breaks `./configure' of w3 and url which try to run $EMACS. 1425 ;; We are going to get rid of the binding for EMACS,
1426 ;; probably in Emacs 23, because it breaks
1427 ;; `./configure' of some packages that expect it to
1428 ;; say where to find EMACS.
1426 (format "EMACS=%s (term:%s)" emacs-version term-protocol-version) 1429 (format "EMACS=%s (term:%s)" emacs-version term-protocol-version)
1430 (format "INSIDE_EMACS=%s,term:%s" emacs-version term-protocol-version)
1427 (format "LINES=%d" term-height) 1431 (format "LINES=%d" term-height)
1428 (format "COLUMNS=%d" term-width)) 1432 (format "COLUMNS=%d" term-width))
1429 process-environment)) 1433 process-environment))