From cc47798846e1f55c2bd10d6263bcb41d28e23092 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 25 Aug 2018 12:00:27 +0200 Subject: [PATCH] Revert 6b910392 #829 Causes other errors. Will need a better solution. --- modules/ui/popup/+hacks.el | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modules/ui/popup/+hacks.el b/modules/ui/popup/+hacks.el index 7ab69d82f..6d5f9b334 100644 --- a/modules/ui/popup/+hacks.el +++ b/modules/ui/popup/+hacks.el @@ -180,18 +180,6 @@ the command buffer." (delete-window win)))) (advice-add #'helm-elisp--persistent-help :before #'+popup*helm-elisp--persistent-help) - ;; Get rid of useless Org Links popup, which causes window selection errors - ;; with helm's persistent action. - (defun +popup*delete-org-links-popup (orig-fn &rest args) - (cl-letf* ((old-org-completing-read (symbol-function #'org-completing-read)) - ((symbol-function #'org-completing-read) - (lambda (&rest args) - (when-let* ((win (get-buffer-window "*Org Links*"))) - (delete-window win)) - (apply old-org-completing-read args)))) - (apply orig-fn args))) - (advice-add #'org-insert-link :around #'+popup*delete-org-links-popup) - ;; `helm-ag' (defun +helm*pop-to-buffer (orig-fn &rest args) (pop-to-buffer