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.
This commit is contained in:
Henrik Lissner 2019-09-22 13:06:16 -04:00
parent bc1c16605f
commit 87c6e8900c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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