* Re: [elpa] externals/ivy-posframe d6b3722 2/4: Fix display-function warn
[not found] ` <20201003225715.5F51320781@vcs0.savannah.gnu.org>
@ 2020-10-04 15:49 ` Stefan Monnier
0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2020-10-04 15:49 UTC (permalink / raw)
To: emacs-devel; +Cc: Feng Shu
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-04 15:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20201003225712.29619.95459@vcs0.savannah.gnu.org>
[not found] ` <20201003225715.5F51320781@vcs0.savannah.gnu.org>
2020-10-04 15:49 ` [elpa] externals/ivy-posframe d6b3722 2/4: Fix display-function warn Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).