this question is related to the question 
http://emacs.stackexchange.com/questions/2959/.

I would like to check if there exists a frame in which a given buffer is visible.
I tried the following but it gives true even if `scratch` is invisible.

    (get-buffer-window (find-buffer-visiting "*scratch*") 'visible)