Subject: Re: bug#76014: 31.0.50; Wrong highlighting of "All" in mode-line

From: Gerd Möllmann <[email-masked]>
Date: Mon, 03 Feb 2025 07:40:33 +0100

Gerd Möllmann <[email-masked]> writes:

> Confirmed, 71505b723c9fb9de20f6d38be7c73d595e9be3ce it is.

Don't know if this is directly related, but playing with

  (defun foo ()
    (interactive)
    (with-current-buffer (get-buffer-create "*foo*")
      (erase-buffer)
      (insert "12345")
      (put-text-property (point-min) (point)
                         'display '(min-width (5)))
      (put-text-property (point-min) (point)
                         'mouse-face 'highlight)
      (insert "abc")
      (display-buffer (current-buffer))))

shows that if the text, in this case "12345", is longer than min-width, a
space is added, and if it's equal to min-width, no space is added.