Perhaps someone has used your approach and has a forthcoming solution for you.  In the absence of that solution I can tell you that I get the development sources for Emacs using Bazaar (see the EmacsWiki for copious details) on a regular basis, build it and use it on Lion as a matter of course, as, apparently, do many others.  If you follow one of the EmacsWiki approaches and run into difficulties, you might get more joy from this, or some other, list.

Enjoy,

-pmr

On Wed, Jul 4, 2012 at 1:47 PM, Timothy Klim <klimtimothy@gmail.com> wrote:
I have this code in my init.el:
(setq default-frame-alist
      '((top . 0) (left . 20)
        (width . 100) (height . 48)
        ))



On Jul 4, 2012, at 9:04 PM, Timothy Klim wrote:

> Hi!
>
> I have Mac OS X 10.7.4 and Emacs from git sources(through homebrew). When I open any file I got screen bugs http://cl.ly/1G1R2E0H2b0F2N1V1H1Y
>
> Any ideas what is this?
>
> Thank you.