|
From: | Max Nikulin |
Subject: | Re: [PATCH] [BUG] Org 9.5: org-goto UI seems broken |
Date: | Fri, 15 Oct 2021 23:37:31 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
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.
org-goto-hack-1.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |