Mac OS X installation of emacs doesn't auto-load certain libraries (?)
===

It seems that some emacs installations on Mac OS X do not auto-load certain libraries. Here's a specific example of what I'm talking about:

When I eval the elisp command "(tool-bar-mode -1)" I get the error:
"Debugger entered--Lisp error: (void-function tool-bar-mode)"

This is just one instance. I get similar errors for example with "(scroll-bar-mode -1)" and others.

Ok, which emacs installations am I using? I have noticed this issue with:

 - the default emacs 22 installation that comes with Mac OS X 10.6 and 10.7
 - emacs 23; both the MacPorts and Fink installations on Mac OS X 10.6 and 10.7
 - emacs 23 MacPorts installation on Mac OS X 10.6 and 10.7
 - (all of the above were terminal, i.e. non-windowed, emacs) - 

I have NOT noticed this issue with the following installations:

  - any linux installation of emacs 22+
  - the Cocoa-based Emacs.app installation (available here: http://emacsformacosx.com/)

In order to deal with this I've had to add to include library calls such as "(require 'tool-bar)" in my ".emacs" file just to ward off the errors. Why is this happening? What is effectively different between these installations?


