On 14/10/2021 22:44, Max Nikulin wrote: > > I think, something should be done with `org-no-popups'. Assume a user > who has (I have no idea concerning the goal though) > >   (setq pop-up-frames t) >   (setq display-buffer-base-action >         '((display-buffer-reuse-window display-buffer-pop-up-frame) >           (reusable-frames . 0))) > > With "emacs -Q" and above settings completion e.g. for "C-h f" does not > cause creation of a new frame. Org help windows appear in new frames > though. That is why `org-no-popups' should have more code. I was wrong, (setq pop-up-frames t) leads to creation of new frame for *Completion* buffer at least in Emacs-26.3. It seems, each case of `org-no-popups' may require specific code. I have tried to take some code related to completion. It overrides display-buffer-base-action, but something more is required for pop-up-frames. That code uses `with-current-buffer-window' while org-goto uses `with-output-to-temp-buffer'. I am unsure what variant is more suitable for org-goto. I am attaching my draft with minimal changes. I do not like to rely on internal functions but I have not found high level replacement to achieve the same result. Maybe emacs code has a better variant somewhere.