Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Emacs in 10.6.2 Terminal

I recently upgraded from Leopard to Snow Leopard. Under 10.5.8, Emacs in a terminal window worked fine, but after upgrading, it appears to be broken:

% which emacs
/usr/bin/emacs

% emacs -version
GNU Emacs 23.1.50.1
...

% emacs
emacs: Cannot open termcap database file

Any ideas?

MacBook Pro, Mac OS X (10.6.2)

Posted on Nov 15, 2009 8:38 PM

Reply
7 replies

Nov 16, 2009 7:06 AM in response to Gary Schiltz

I do not think Mac OS X has a TERMCAP database. I think it only uses terminfo. Then again, emacs may be using termcap in a generic sense.

Personally I build my own editor (which for me happens to be Vim; please don't hold it against me).

If you are a hardcore emacs user, I would suggets either building your own version with the options you prefer, or finding one of the pre-build versions which has build-in Mac OS X GUI support (or even build-in X11 support). Google is your friend here.

Apple is not really into the traditional text editors, so they tend to leave a lot of the good stuff out.

Nov 16, 2009 7:49 AM in response to Gary Schiltz

I'm not an emacs user, but on my iMac (10.6.2):

$ /usr/bin/emacs -version
GNU Emacs 22.1.1
...
$ ls -l /usr/bin/emacs
-r-xr-xr-x 1 root wheel 26135456 8 1 14:50 /usr/bin/emacs
-rwxr-xr-x 1 root wheel 7802784 8 1 14:50 /usr/bin/emacs-undumped
-rwxr-xr-x 1 root wheel 105216 8 1 14:50 /usr/bin/emacsclient

I guess you have installed your own emacs?

Nov 16, 2009 3:42 PM in response to BobHarris

I can currently access only one 10.6 Mac, but I did clean install of Snow Leopard on it.

The source code of open source softwares installed in 10.6.2 can be found in [Mac OS X 10.6.2 - Source|http://www.opensource.apple.com/release/mac-os-x-1062>. Emacs is in [emacs-78.2|http://www.opensource.apple.com/source/emacs/emacs-78.2>, which contains emacs-21.1. So I guess OP's emacs is not the one preinstalled in 10.6.

Nov 16, 2009 5:59 PM in response to Jun T.

Thanks Jun (and others as well). Your response does show me that something is messed up with my system. I may have upgraded my Emacs at one point under 10.5.x, and those updates got only partially propagated when I upgraded to 10.6. For the most part, I'm a vim user myself, but I've been trying to "broaden my horizons" 🙂 and learn Emacs. I have many other options, including the Cocoa native GUI version of Emacs. I was mostly just curious, and seeing Jun's response helps me see, like I said before, that something is messed up with my Emacs installation. I hope nobody wastes any more time digging into this.

Just for grins, I will post for the record a couple of observations:

For some reason, I also have an emacs-i386 file, but the other three files are identical size to Juns' files:

$ ls -l /usr/bin/ emacsls -l /usr/bin/ emacs
-r-xr-xr-x 1 root wheel 26135456 Aug 1 00:50 /usr/bin/emacs
-rwxr-xr-x 1 root wheel 13072480 Aug 13 09:57 /usr/bin/emacs-i386
-rwxr-xr-x 1 root wheel 7802784 Aug 1 00:50 /usr/bin/emacs-undumped
-rwxr-xr-x 1 root wheel 105216 Aug 1 00:50 /usr/bin/emacsclient

And this is really wierd:

$ /usr/bin/emacs -version
GNU Emacs 22.1.1

$ which emacs
/usr/bin/emacs

Okay, so just typing emacs should execute /usr/bin/emacs, right?

$ emacs -version
GNU Emacs 23.1.50.1
...

Well, that's wierd. Maybe something in my environment (i.e. .bash_profile)?

$ bash -norc
$ emacs -version
GNU Emacs 22.1.1
...

It would appear so. For posterity's sake, I'll post a follow-up if I find out what it is.

Nov 16, 2009 6:28 PM in response to Gary Schiltz

Well, shucks, I found out what the problem was. Somewhere in the past I read that one way to "update emacs" was to install the Cocao GUI application, and then add the following alias to my environment:

alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs -nw --debug-init'

which did not work, but I neglected to remove from my .bash_profile.

Unfortunately, /usr/bin/which does not show aliased commands (I'm used to Solaris, which if I remember correctly, would have said something like "aliased to '/Applications/Emacs.app/Contents/MacOS/Emacs -nw --debug-init'"). So, this did not show up.

Removing the above alias from my .bash_profile fixed the problem.

I hope this helps someone.

Emacs in 10.6.2 Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.