title: emacs: How to display a buffer without switching window and without raising frames?
body: <p>I want to display something in a specific emacs buffer.  If the buffer is not already displayed in some window, I want to display it in a new window in the current frame.  If it is already displayed somewhere, I do not want to bring this window or frame up or to focus.  Things I have tried:
  <code>
    (pop-to-buffer buf nil 'norecord)
  </code>
  This does not work, since when I am in a different frame to the one that displays "buf", it will open a new window.
  <code>
    (display-buffer buf nil t)
  </code>
  This almost works, but it raises the frame showing the buffer.  I wish the frame to remain in the background.</p>
  
  <p>How to proceed?  Maybe there is a function to check whether a buffer is already displayed in <em>some</em> frame in <em>some</em> window?</p>