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: Lennart Borgman (gmail)
Subject: Re: display-buffer-other-frame - useful? doc string?
Date: Mon, 07 Apr 2008 19:02:33 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Drew Adams wrote:
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.


Yes, that is what I also see.

GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-04-06




reply via email to

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