From 43d80dcec6b2e8275c8f9b8d6de596271ac8efc1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 9 Sep 2019 14:25:23 -0400 Subject: [PATCH] Fix #1692 & stop org-todo from monopolizing frame How org-todo manipulates the window config has changed upstream. --- modules/ui/popup/+hacks.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/ui/popup/+hacks.el b/modules/ui/popup/+hacks.el index a2851f43f..be5d2fa88 100644 --- a/modules/ui/popup/+hacks.el +++ b/modules/ui/popup/+hacks.el @@ -239,18 +239,20 @@ the command buffer." org-capture-place-template org-export--dispatch-ui org-agenda-get-restriction-and-command - org-fast-tag-selection) + org-fast-tag-selection + org-fast-todo-selection) (if +popup-mode (cl-letf (((symbol-function 'delete-other-windows) (symbol-function 'ignore))) (apply orig-fn args)) (apply orig-fn args))) - (defadvice! +popup--org-fix-tags-window-a (orig-fn &rest args) + (defadvice! +popup--org-fix-popup-window-shrinking-a (orig-fn &rest args) "Hides the mode-line in *Org tags* buffer so you can actually see its content and displays it in a side window without deleting all other windows. Ugh, such an ugly hack." - :around #'org-fast-tag-selection + :around '(org-fast-tag-selection + org-fast-todo-selection) (if +popup-mode (cl-letf* ((old-fit-buffer-fn (symbol-function 'org-fit-window-to-buffer)) ((symbol-function 'org-fit-window-to-buffer)