From 41876aa0365a522eef20fd6a0cd2f11045469a0d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 23 Aug 2025 12:29:55 +0200 Subject: [PATCH] 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 --- modules/lang/org/config.el | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 10193d70c..e0f6b409a 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -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