refactor(org): remove +org-fix-window-excursions-a

Changes upstream (to honour display-buffer-alist) seem to have addressed
what this advice was deployed for.

Ref: #6061
This commit is contained in:
Henrik Lissner
2025-08-23 12:29:55 +02:00
parent 5217ba75a2
commit 41876aa036

View File

@@ -253,18 +253,6 @@ Also adds support for a `:sync' parameter to override `:async'."
(funcall orig-fn arg info params)
(funcall fn orig-fn arg info params)))))
;; HACK Fix #6061. Seems `org-babel-do-in-edit-buffer' has the side effect of
;; deleting side windows. Should be reported upstream! This advice
;; suppresses this behavior wherever it is known to be used.
(defadvice! +org-fix-window-excursions-a (fn &rest args)
"Suppress changes to the window config anywhere
`org-babel-do-in-edit-buffer' is used."
:around #'evil-org-open-below
:around #'evil-org-open-above
:around #'org-indent-region
:around #'org-indent-line
(save-window-excursion (apply fn args)))
(defadvice! +org-fix-newline-and-indent-in-src-blocks-a (&optional indent _arg _interactive)
"Mimic `newline-and-indent' in src blocks w/ lang-appropriate indentation."
:after #'org-return