emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: display-buffer-other-frame - useful? doc string?


From: Drew Adams
Subject: RE: display-buffer-other-frame - useful? doc string?
Date: Mon, 7 Apr 2008 09:52:08 -0700

> Can you give us some code to test?

Stefan's code. Load cl.el, then eval this:

(lexical-let ((f pop-up-frame-function))
    (setq pop-up-frame-function
      (lambda ()
        (let ((win (selected-window)))
          (unwind-protect
              (funcall f)
            (when (window-live-p win)
              (select-window win)
              (select-frame-set-input-focus (window-frame win))))))))

Then try `C-x 5 C-o' (`display-buffer-other-frame'). 

If the code works, it should make `display-buffer' (and so
`display-buffer-other-frame') use the redefined `pop-up-frame-function', which
should display the buffer without selecting it.

What I see instead is that the displayed buffer gets selected - its frame gets
the focus, which is not the intention.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]