muffinmad / emacs-mini-frame

Show minibuffer in child frame on read-from-minibuffer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Canceling the mini-buffer causes annoying glash

jsyjr opened this issue · comments

After solving #39 mini-frame is working quite nicely now.
One annoyance remains. If, rather than complete some
action, I cancel (C-g) out of the mini-buffer, I see white
flash, corresponding to the mini-buffer line.
Peek 2021-04-04 13-14

Is there anyway to eliminate that flash?

Can you please check this in emacs -Q?

I've checked it with this minimal setup and didn't notice any flashing:

(setq mini-frame-standalone t)
(setq mini-frame-show-parameters (lambda ()
				   (let ((sf (selected-frame)))
                                     `((left . ,(frame-parameter sf 'left))
                                       (width . ,(frame-parameter sf 'width))
                                       (top   . ,(frame-parameter sf 'top))))))

This is may be GTK version specific.

Solved it. I forgot about visible-bell, in part because it is rendered more attractively when the minibuffer does not disappear before the flash.

This stackoverflow thread provided inspiration for a solution. I had to add abort-minibuffers to the list of suppressed commands.