From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13611 invoked from network); 27 Feb 1997 17:52:00 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 27 Feb 1997 17:52:00 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id MAA17621; Thu, 27 Feb 1997 12:36:02 -0500 (EST) Resent-Date: Thu, 27 Feb 1997 12:35:33 -0500 (EST) From: "Bart Schaefer" Message-Id: <970227094300.ZM19654@candle.brasslantern.com> Date: Thu, 27 Feb 1997 09:43:00 -0800 In-Reply-To: "James B. Crigler" "Re: problem with GNU Emacs shell mode" (Feb 27, 9:38am) References: <199702271438.JAA05284@catbert.seo.com> Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (4.0b.820 20aug96) To: "James B. Crigler" , zsh-users@math.gatech.edu Subject: Re: problem with GNU Emacs shell mode MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"XvdWr2.0.pH4.aNS5p"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/727 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Feb 27, 9:38am, James B. Crigler wrote: } Subject: Re: problem with GNU Emacs shell mode } } >>>>> "Bart" == Bart Schaefer writes: } Bart> Placing a } Bart> (setenv "TERM" "emacs") } Bart> in your ~/.emacs file seems to fix this. } } Neither of these works for me. I start a shell and get ^M's and "echo } $TERM" still returns "dumb". Next idea? If you C-h v process-environment RET in emacs, what is TERM set to? Maybe you're stomping on the (setenv ...) with a (setq process-environment ...) or some such, elsewhere? Try this: ;; Don't set TERM=dumb, it bugs zsh. (require 'comint) (defun comint-exec-1 (name buffer command switches) (let ((process-environment (nconc (if (and (boundp 'system-uses-terminfo) system-uses-terminfo) (list "EMACS=t" "TERM=emacs" (format "COLUMNS=%d" (frame-width))) (list "EMACS=t" "TERM=emacs" (format "TERMCAP=emacs:co#%d:tc=unknown" (frame-width)))) process-environment))) (apply 'start-process name buffer command switches))) -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.nbn.com/people/lantern