emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [elpa] externals/ivy-posframe d6b3722 2/4: Fix display-function warn


From: Stefan Monnier
Subject: Re: [elpa] externals/ivy-posframe d6b3722 2/4: Fix display-function warn
Date: Sun, 04 Oct 2020 11:49:27 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi,

> --- a/ivy-posframe.el
> +++ b/ivy-posframe.el
> @@ -353,17 +353,17 @@ This variable is useful for `ivy-posframe-read-action' 
> .")
>  (defun ivy-posframe-read-action ()
>    "Ivy-posframe version `ivy-read-action'"
>    (interactive)
> -  (let* ((ivy-read-action-function #'ivy-posframe-read-action-by-key)
> -         (caller (ivy-state-caller ivy-last))
> -         (display-function
> -          (or ivy--display-function
> -              (cdr (or (assq caller ivy-display-functions-alist)
> -                       (assq t ivy-display-functions-alist))))))
> +  (let* ((ivy-read-action-function #'ivy-posframe-read-action-by-key))
>      (call-interactively #'ivy-read-action)))
>  
>  (defun ivy-posframe-read-action-by-key (actions)
>    "Ivy-posframe's `ivy-read-action-by-key'."
>    (let* ((set-message-function nil)
> +         (caller (ivy-state-caller ivy-last))
> +         (display-function
> +          (or ivy--display-function
> +              (cdr (or (assq caller ivy-display-functions-alist)
> +                       (assq t ivy-display-functions-alist)))))
>           (hint (funcall ivy-read-action-format-function (cdr actions)))
>           (resize-mini-windows t)
>           (key "")

Ah, much better!


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]