honmaple / emacs-maple-minibuffer

Show minibuffer with another frame
GNU General Public License v3.0
78 stars 4 forks source link

dead minibuffer frame #2

Closed adouzzy closed 4 years ago

adouzzy commented 4 years ago

In emacs-daemon mode, start a frame and maple works. Close the frame and start a new frame, it shows the following error. Wrong type argument: frame-live-p, #<dead frame Minibuffer 0x......> Would you please see if you can reproduce the error.

adouzzy commented 4 years ago

What I found is that switch the mode on and off fixes this. And I used the following code:


(defun my-maple-mode ()
    (interactive)
    (maple-minibuffer-mode -1)
    (maple-minibuffer-mode 1)
    )
  (add-hook 'before-make-frame-hook 'my-maple-mode)