GNU bug report logs - #76014
31.0.50; Wrong highlighting of "All" in mode-line

Previous Next

Package: emacs;

Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Date: Sun, 2 Feb 2025 16:04:02 UTC

Severity: normal

Found in version 31.0.50

Fixed in version 31.1

Done: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 76014 <at> debbugs.gnu.org
Subject: bug#76014: 31.0.50; Wrong highlighting of "All" in mode-line
Date: Tue, 04 Feb 2025 06:12:57 +0100
[Message part 1 (text/plain, inline)]
Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:

> Gerd Möllmann <gerd.moellmann <at> gmail.com> 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.

That attached patch fixes both the above problem and the the one in the
mode-line.

[0001-Fix-min-width-display-spec-handling-bug-76014.patch (text/x-patch, attachment)]

This bug report was last modified 185 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.