Subject: bug#24285: 25.1; Overlay doesn't work as expected when more than one frame exists

From: martin rudalics <[email-masked]>
Date: Mon, 22 Aug 2016 10:11:40 +0200

> 5. Evaluate minibuffer-with-setup-hook again, overlay does not appear as
 > expected. (Only appearing after some user interaction *typing* *mouse
 > press*)

This gets me here

Debugger entered--Lisp error: (error "Command attempted to use minibuffer while in minibuffer")
   read-from-minibuffer(">>> ")
   (let ((read-value (read-from-minibuffer ">>> "))) (or t read-value))
   (progn (add-hook (quote minibuffer-setup-hook) setup-hook) (let ((read-value (read-from-minibuffer ">>> "))) (or t read-value)))
   (unwind-protect (progn (add-hook (quote minibuffer-setup-hook) setup-hook) (let ((read-value (read-from-minibuffer ">>> "))) (or t read-value))) (remove-hook (quote minibuffer-setup-hook) setup-hook))
   (let ((fun (function (lambda nil (setq truncate-lines t) (let* ((hookfun ...) (exitfun ...)) (add-hook (quote minibuffer-exit-hook) exitfun nil t) (add-hook (quote post-command-hook) hookfun nil t))))) setup-hook) (setq setup-hook (function (lambda nil (remove-hook (quote minibuffer-setup-hook) setup-hook) (funcall fun)))) (unwind-protect (progn (add-hook (quote minibuffer-setup-hook) setup-hook) (let ((read-value (read-from-minibuffer ">>> "))) (or t read-value))) (remove-hook (quote minibuffer-setup-hook) setup-hook)))
   eval((let ((fun (function (lambda nil (setq truncate-lines t) (let* ((hookfun ...) (exitfun ...)) (add-hook (quote minibuffer-exit-hook) exitfun nil t) (add-hook (quote post-command-hook) hookfun nil t))))) setup-hook) (setq setup-hook (function (lambda nil (remove-hook (quote minibuffer-setup-hook) setup-hook) (funcall fun)))) (unwind-protect (progn (add-hook (quote minibuffer-setup-hook) setup-hook) (let ((read-value (read-from-minibuffer ">>> "))) (or t read-value))) (remove-hook (quote minibuffer-setup-hook) setup-hook))) nil)
   elisp--eval-last-sexp(nil)
   eval-last-sexp(nil)
   funcall-interactively(eval-last-sexp nil)
   call-interactively(eval-last-sexp nil nil)
   command-execute(eval-last-sexp)

Don't you see that?

martin