aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-08-31 07:38:22 +0000
committerStefan Monnier2007-08-31 07:38:22 +0000
commitdb30aa125eb51f143165ec4b21cea170681bc244 (patch)
tree107efb663411bde4e2191aa840d72038d3f37bfc
parent33c1b22ccba5e96e41539b9924d6e942bc41bb61 (diff)
downloademacs-db30aa125eb51f143165ec4b21cea170681bc244.tar.gz
emacs-db30aa125eb51f143165ec4b21cea170681bc244.zip
(frame-initialize, make-frame): Don't set
term-environment-variable since it's not used any more.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/frame.el5
2 files changed, 7 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ff7b73e50c1..390fd60555a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,12 @@
12007-08-31 Stefan Monnier <monnier@iro.umontreal.ca> 12007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * frame.el (frame-initialize, make-frame):
4 * server.el (server-process-filter):
5 * faces.el (tty-set-up-initial-frame-faces): Don't set
6 term-environment-variable since it's not used any more.
7
8 * env.el (setenv): Don't treat $TERM specially.
9
3 * startup.el (normal-top-level): Set $TERM to `dumb' so that unless 10 * startup.el (normal-top-level): Set $TERM to `dumb' so that unless
4 stated otherwise, subprocesses do not send back escape sequences 11 stated otherwise, subprocesses do not send back escape sequences
5 corresponding to the terminal from which Emacs was started. 12 corresponding to the terminal from which Emacs was started.
diff --git a/lisp/frame.el b/lisp/frame.el
index 6b8dba81318..e9d9489fb63 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -241,8 +241,6 @@ Pass it BUFFER as first arg, and (cdr ARGS) gives the rest of the args."
241 ;; Copy the environment of the Emacs process into the new frame. 241 ;; Copy the environment of the Emacs process into the new frame.
242 (set-frame-parameter frame-initial-frame 'environment 242 (set-frame-parameter frame-initial-frame 'environment
243 (frame-parameter terminal-frame 'environment)) 243 (frame-parameter terminal-frame 'environment))
244 (set-frame-parameter frame-initial-frame 'term-environment-variable
245 (getenv "TERM"))
246 (set-frame-parameter frame-initial-frame 'display-environment-variable 244 (set-frame-parameter frame-initial-frame 'display-environment-variable
247 (getenv "DISPLAY")) 245 (getenv "DISPLAY"))
248 ;; At this point, we know that we have a frame open, so we 246 ;; At this point, we know that we have a frame open, so we
@@ -731,14 +729,11 @@ setup is for focus to follow the pointer."
731 ;; Inherit the 'environment and 'client parameters. 729 ;; Inherit the 'environment and 'client parameters.
732 (let ((env (frame-parameter oldframe 'environment)) 730 (let ((env (frame-parameter oldframe 'environment))
733 (client (frame-parameter oldframe 'client)) 731 (client (frame-parameter oldframe 'client))
734 (termenv (frame-parameter oldframe 'term-environment-variable))
735 (displayenv (frame-parameter oldframe 'display-environment-variable))) 732 (displayenv (frame-parameter oldframe 'display-environment-variable)))
736 (if (not (framep env)) 733 (if (not (framep env))
737 (setq env oldframe)) 734 (setq env oldframe))
738 (if (and env (not (assq 'environment parameters))) 735 (if (and env (not (assq 'environment parameters)))
739 (set-frame-parameter frame 'environment env)) 736 (set-frame-parameter frame 'environment env))
740 (if (and termenv (not (assq 'term-environment-variable parameters)))
741 (set-frame-parameter frame 'term-environment-variable termenv))
742 (if (and displayenv (not (assq 'display-environment-variable parameters))) 737 (if (and displayenv (not (assq 'display-environment-variable parameters)))
743 (set-frame-parameter frame 'display-environment-variable displayenv)) 738 (set-frame-parameter frame 'display-environment-variable displayenv))
744 (if (and client (not (assq 'client parameters))) 739 (if (and client (not (assq 'client parameters)))