Bug 76102

Summary: emacs terminal not recognised
Product: [Retired] Red Hat Linux Reporter: Reuben Thomas <rrt>
Component: xemacsAssignee: Jens Petersen <petersen>
Status: CLOSED CURRENTRELEASE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-11-06 01:09:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Reuben Thomas 2002-10-16 20:53:03 UTC
Description of Problem:

When I start a shell in xemacs, I get an error "terminal type emacs not recognised" from 
/etc/profile's use of tput.

Version-Release number of selected component (if applicable):


How Reproducible:

Every time.

Steps to Reproduce:
1. Start XEmacs
2. M-x shell
3. 

Actual Results:


Expected Results:


Additional Information:
	
I reported this bug in earlier releases of RH and it was apparently fixed, although I didn't 
test the fix as at the time I was using my own build of XEmacs. I'm now using the 
supplied RPM and still get this problem. I may well have missed something, but for some 
reason I can't query Bugzilla at the moment to find out the story from last time.

Comment 1 Reuben Thomas 2002-10-16 21:01:37 UTC
Sorry, I mean /etc/bashrc, not /etc/profile.

Comment 2 Jens Petersen 2002-10-17 01:43:45 UTC
Perhaps you were thinking of bug 52660?

Anyway reproduced with bash.

Comment 3 Jens Petersen 2002-10-17 01:54:24 UTC
TERM=dumb may be one possible workaround.  Or perhaps TERM
emacs could be special cased in bashrc?

I need to look into this morning.


Comment 4 Reuben Thomas 2002-10-17 09:01:04 UTC
What I've always done is added "$TERM" != "emacs" before the call of tput 
in /etc/bashrc.

But I think the real fix is to add an emacs term description to the termcap 
and/or terminfo db. How was it fixed before?

Comment 5 Jens Petersen 2003-05-19 11:33:50 UTC
I just recalled that setting `system-uses-terminfo' to `t' fixes this.

Comment 6 Jens Petersen 2003-05-19 12:00:29 UTC
Setting it in default.el in next build.

Comment 7 Reuben Thomas 2003-05-19 19:28:09 UTC
I'm happy with this solution (I've put (setq system-uses-terminfo t) in my init.el) so you can close the bug if you like.