I'm using emacs 24.1 from http://emacsformacosx.com/ on mac os 10.7. It works well but for some reason I'm unable to minimize emacs window. When I press the yellow button in the upper left corner window goes to the dock but then immediately restores on the same place.
In my case this behaviour was caused by mouse-avoidance-mode line in my
I changed it to:
and now everything works fine.