Subject: bug#46155: 28.0.50; Regression: buffer contents flicker on macOS frames when

From: Andrii Kolomoiets <[email-masked]>
Date: Tue, 09 Feb 2021 11:55:20 +0200

martin rudalics <[email-masked]> writes:

>> emacs -Q
>> M-: (setq resize-mini-frames t)
>> M-: (make-frame '((minibuffer . only)))
>> M-x
>> Type random letters
>
> Where do you type those letters?  Into the normal frame?

No, into the minibuffer-only frame.  After `make-frame` the
minibuffer-only frame became focused and accept input.

> I suppose 'fit-frame-to-buffer' is to blame here.  What happens when
> you set 'resize-mini-frames' to 'ignore?

The minibuffer-only frame doesn't resized and the text is not flicker.

> Some other function that resizes the frame more conservatively or
> sporadically?

I've set the `resize-mini-frames` to this function:

    (defun test/resize (frame)
      (modify-frame-parameters
       frame `((width . ,(+ 80 (random 20))))))

After each letter typed, the minibuffer-only frame is resized several
times.  The text is not visible during resize.