kiennq/emacs-mini-modeline

minibuffer sometimes fails to show with emacs 28

Opened this issue · 0 comments

sm2n commented

Sometimes, mini-modeline seems to fail to show multiline things in the minibuffer. It seems to happen occasionally, I haven't been able to reproduce it deterministically, though it's often enough to disrupt my workflow and causes me to turn mini-modeline-mode off sometimes.

The behavior is the following:

  1. Try to display a persistent message in the minibuffer that needs at least an extra line of space (say, by putting point on an identifier with eldoc)
  2. Usually, it works fine and the modeline moves up. But sometimes, it will briefly flash, and then the stuff that is supposed to be in the minibuffer is just gone entirely. Generally after it happens once, it'll keep happening until you disable/reenable mini-modeline-mode

I spent some time trying to track down the bug in the mini-modeline code, but could not find the culprit. The resizing code seems to try to do the right thing, at least in mini-modeline-display. I tested it by printing out what it was doing in a buggy session.

So, I'm starting to suspect it is a bug in emacs, because I didn't have this issue with emacs 27, and mini-modeline-mode doesn't seem to have changed. But I'm not sure where to look from here.

Here's my relevant emacs config:

(use-package mini-modeline
  :delight
  :config
  (setq mini-modeline-enhance-visual nil
	mini-modeline-truncate-p nil
	mini-modeline-echo-duration 1)
  (mini-modeline-mode 1))

M-x emacs-version

GNU Emacs 28.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-09

mini-modeline-version 434b98b