# HG changeset patch # User Richard M. Stallman # Date 814381006 0 # Node ID 6a084ce822e0ed9bf94261ccbf7c076a2ee0fd03 # Parent 76e69b0af94d127777410951401fa01036c5e5db (comint-exec-1): Don't alter EMACS envvar if it's already defined. diff -r 76e69b0af94d -r 6a084ce822e0 lisp/comint.el --- a/lisp/comint.el Sun Oct 22 16:40:53 1995 +0000 +++ b/lisp/comint.el Sun Oct 22 16:56:46 1995 +0000 @@ -587,10 +587,11 @@ ;; Some programs that use terminfo get very confused ;; if TERM is not a valid terminal type. (if (and (boundp 'system-uses-terminfo) system-uses-terminfo) - (list "EMACS=t" "TERM=unknown" + (list "TERM=unknown" (format "COLUMNS=%d" (frame-width))) - (list "EMACS=t" "TERM=emacs" + (list "TERM=emacs" (format "TERMCAP=emacs:co#%d:tc=unknown:" (frame-width)))) + (if (getenv "EMACS") nil (list "EMACS=t")) process-environment)) (default-directory (if (file-directory-p default-directory)