From 85e837e06a96490756f802c62d0dca500064e8cc Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 7 Aug 2018 12:57:21 +0200 Subject: [PATCH] Fix wrong-type-arg: integerp by posframe Due to destructive advice. Fixes #787 --- modules/completion/helm/config.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/completion/helm/config.el b/modules/completion/helm/config.el index 77ed800ef..7d5203224 100644 --- a/modules/completion/helm/config.el +++ b/modules/completion/helm/config.el @@ -81,7 +81,9 @@ be negative.") helm-display-buffer-default-height 0.42 helm-echo-input-in-header-line t) ;; Fix "Specified window is not displaying the current buffer" error - (advice-add #'posframe--get-font-height :override #'ignore)) + (defun +helm*fix-get-font-height (orig-fn position) + (ignore-errors (funcall orig-fn position))) + (advice-add #'posframe--get-font-height :around #'+helm*fix-get-font-height)) (let ((fuzzy (featurep! +fuzzy))) (setq helm-mode-fuzzy-match fuzzy