Subject: bug#15133: 24.3.50; REGRESSION: `after-make-frame-functions' now run with wrong frame selected

From: Drew Adams <[email-masked]>
Date: Tue, 20 Aug 2013 11:03:20 -0700 (PDT)

>  > Can you please tell me what to check, and how?  It's not clear to me what
>  > you are asking/suggesting; sorry.
> 
> Whether with older versions your `fit-frame' function works with plain
> `display-buffer', that is, bypassing `pop-to-buffer'.

Yes, it does.  But I cannot tell you now what part of my code takes care
of that.  If I try emacs -Q, load fit-frame.el, (setq pop-up-frames t),
and (add-hook 'after-make-frame-functions 'fit-frame) then no, it does
not work, as you expected.

But in my full setup, it does work (i.e., (display-buffer "foo") shows
buffer foo in a new frame, which is fit to the buffer contents).  Dunno
why it works, but it does.