GNU bug report logs - #76564
[RFE] (message) should be printing colors

Previous Next

Package: emacs;

Reported by: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>

Date: Tue, 25 Feb 2025 18:23:02 UTC

Severity: wishlist

Tags: confirmed

To reply to this bug, email your comments to 76564 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#76564; Package emacs. (Tue, 25 Feb 2025 18:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Konstantin Kharlamov <Hi-Angel <at> yandex.ru>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 25 Feb 2025 18:23:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: [RFE] (message) should be printing colors
Date: Tue, 25 Feb 2025 21:22:26 +0300
From what I see, both (print) and (message) print colored strings as
non-colored lists in the minibuffer. In batch-mode this information
gets stripped outright. I am not sure what was the reason for the
design decision for batch mode to be different, but since it already
is, let's please make that useful. A code like:

	(message (propertize "This is an error" 'font-lock-face 'error))

…in batch-mode should be colored red.

I am writing some tests, and this is very annoying to search among a
bunch of output the message from the failing test, and printing a
propertized string seems to be the most logical way to make message
colored. But that just doesn't work. Can we please fix that?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76564; Package emacs. (Tue, 25 Feb 2025 23:21:02 GMT) Full text and rfc822 format available.

Message #8 received at 76564 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>, 76564 <at> debbugs.gnu.org
Subject: Re: bug#76564: [RFE] (message) should be printing colors
Date: Tue, 25 Feb 2025 23:20:49 +0000
severity 76564 wishlist
tags 76564 + confirmed
thanks

Konstantin Kharlamov <Hi-Angel <at> yandex.ru> writes:

> From what I see, both (print) and (message) print colored strings as
> non-colored lists in the minibuffer. In batch-mode this information
> gets stripped outright. I am not sure what was the reason for the
> design decision for batch mode to be different, but since it already
> is, let's please make that useful. A code like:
>
> 	(message (propertize "This is an error" 'font-lock-face 'error))
>
> …in batch-mode should be colored red.
>
> I am writing some tests, and this is very annoying to search among a
> bunch of output the message from the failing test, and printing a
> propertized string seems to be the most logical way to make message
> colored. But that just doesn't work. Can we please fix that?

AFAIK, we don't support this right now.  Patches welcome.




Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 25 Feb 2025 23:21:02 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 25 Feb 2025 23:21:02 GMT) Full text and rfc822 format available.

This bug report was last modified 108 days ago.

Previous Next


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