From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: "James B. Crigler" <crigler@seo.com>, zsh-users@math.gatech.edu
Subject: Re: problem with GNU Emacs shell mode
Date: Thu, 27 Feb 1997 09:43:00 -0800 [thread overview]
Message-ID: <970227094300.ZM19654@candle.brasslantern.com> (raw)
In-Reply-To: "James B. Crigler" <crigler@seo.com> "Re: problem with GNU Emacs shell mode" (Feb 27, 9:38am)
On Feb 27, 9:38am, James B. Crigler wrote:
} Subject: Re: problem with GNU Emacs shell mode
}
} >>>>> "Bart" == Bart Schaefer <schaefer@candle.brasslantern.com> 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
next prev parent reply other threads:[~1997-02-27 17:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-26 21:00 Jerry Jackson
1997-02-27 1:22 ` Bart Schaefer
1997-02-27 14:38 ` James B. Crigler
1997-02-27 14:58 ` Peter Stephenson
1997-02-27 15:18 ` James B. Crigler
1997-02-27 17:43 ` Bart Schaefer [this message]
1997-02-27 19:15 ` James B. Crigler
1997-02-27 20:48 ` Bart Schaefer
1997-02-27 14:37 Alain Caron
1997-02-27 17:35 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=970227094300.ZM19654@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=crigler@seo.com \
--cc=schaefer@nbn.com \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).