tumashu / vertico-posframe

GNU General Public License v3.0
106 stars 16 forks source link

Prevent running inside a minibuffer-only frame #45

Closed WuuBoLin closed 4 months ago

WuuBoLin commented 4 months ago

This PR prevents posframe from running if the currently selected frame is a minibuffer-only frame and also aborts when window-resize errors occur.

I've recently been trying to use Emacs (or more accurately Vertico) as a launcher like dmenu. However, I also use vertico-posframe to display Vertico candidates in normal Emacs frames.

I can achieve this using make-frame with the option (minibuffer . only). However, we certainly don't want a posframe inside a minibuffer.

WuuBoLin commented 4 months ago

I realized that this should be fixed in the posframe.el level with one line of code.

I have opened another PR in the posframe repo.