Fix #1692 & stop org-todo from monopolizing frame

How org-todo manipulates the window config has changed upstream.
This commit is contained in:
Henrik Lissner 2019-09-09 14:25:23 -04:00
parent 9d775ca798
commit 43d80dcec6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)