branch: elpa/helm commit fe73536ebeaeaf48d4b3fe76f1c2c47f25a2c65c Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Ensure popup-info fn is called even when helm-window is not ready --- helm-core.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/helm-core.el b/helm-core.el index 3b5ca1ae4b..684c65bfa9 100644 --- a/helm-core.el +++ b/helm-core.el @@ -5190,6 +5190,13 @@ Argument OVERLAY is a ref-cell." :follow t) (forward-line 1) (helm-mark-current-line) + ;; If we are here, it is because helm-window is not ready, if one of the + ;; functions in `helm-move-selection-after-hook' is called with + ;; `with-helm-window' (it shouldn't but never know) we will have an error. + (condition-case-unless-debug _err + (helm-log-run-hook "helm--update-move-first-line" + 'helm-move-selection-after-hook) + (error nil)) (helm-follow-execute-persistent-action-maybe))) (cl-defun helm-force-update (&optional preselect (recenter t))