delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/08/08:31:56

From: Dave Pearson <davep AT hagbard DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: newbie needs help configuring emacs
Date: Tue, 8 Apr 1997 08:33:41 GMT
Organization: Hagbard's World (A Private Internet Host)
Sender: usenet AT hagbard DOT demon DOT co DOT uk
Message-ID: <slrn5kk0n4.mo0.davep@hagbard.demon.co.uk>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970407133039 DOT 5175B-100000 AT is> <5ibf77$jnv AT gerry DOT cc DOT keele DOT ac DOT uk>
Lines: 35
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On 7 Apr 1997 18:42:47 GMT, G.W. Owen <mad14 AT cc DOT keele DOT ac DOT uk> wrote:

> Well heres a different one then.  My copy of emacs works fine under
> DOS and Windows 3.11, but under bash.exe, it complains that it
> cannot find the termcap (it doesn't exist) unless I unset the 'term'
> variable.  Is this the only workaround?

I solved this problem by adding the following to $DJDIR/DJGPP.ENV:

----------------------------------------------------------------------
[emacs]
TERM=
SHELL=c:/bin/bash -login
----------------------------------------------------------------------

As you can see I also set the SHELL so that I get exactly what I want
when I suspend emacs. 

The other possibility would be to add something like the following
to ~/[._]profile:

function emacs()
{
   ( unset TERM;emacs $* )
}

That's off the top of my head and I've not tested it, but I use
something similar in a different situation under bash on my Linux box.

-- 
Take a look in Hagbard's World: |     w3ng - The WWW Norton Guide reader.
http://www.acemake.com/hagbard/ |  ng2html - The NG to HTML converter.
Also available in the UK:       |       eg - Norton Guide reader for Linux.
http://www.hagbard.demon.co.uk/ |   dgscan - DGROUP scanner for Clipper.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019