From 87c6e8900ca56b6a80aea55d8fcd99daab0593ea Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 22 Sep 2019 13:06:16 -0400 Subject: [PATCH] Fix org-insert-link desc prompt for helm users #1710 A change upstream causes the prompt to be suppressed if the current command wasn't run interactively. The check for interactivity gets tricky when advice are involved. --- modules/ui/popup/+hacks.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/popup/+hacks.el b/modules/ui/popup/+hacks.el index c2549d993..ae046ae96 100644 --- a/modules/ui/popup/+hacks.el +++ b/modules/ui/popup/+hacks.el @@ -188,7 +188,7 @@ the command buffer." ;; But it must exist for org to clean up later. (get-buffer-create "*Org Links*")) (apply old-org-completing-read args)))) - (apply orig-fn args))) + (apply #'funcall-interactively orig-fn args))) ;; Fix left-over popup window when closing persistent help for `helm-M-x' (defadvice! +popup--helm-elisp--persistent-help-a (candidate _fun &optional _name)