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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Konstantin Kharlamov <Hi-Angel@HIDDEN>; Keywords: confirmed; dated Tue, 25 Feb 2025 18:23:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 76564 <at> debbugs.gnu.org:


Received: (at 76564) by debbugs.gnu.org; 25 Feb 2025 23:21:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 25 18:21:01 2025
Received: from localhost ([127.0.0.1]:48987 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tn4EX-0000fn-1y
	for submit <at> debbugs.gnu.org; Tue, 25 Feb 2025 18:21:01 -0500
Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:46256)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tn4ET-0000fJ-7n
 for 76564 <at> debbugs.gnu.org; Tue, 25 Feb 2025 18:20:58 -0500
Received: by mail-ej1-x62e.google.com with SMTP id
 a640c23a62f3a-abbda4349e9so906964566b.0
 for <76564 <at> debbugs.gnu.org>; Tue, 25 Feb 2025 15:20:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1740525650; x=1741130450; darn=debbugs.gnu.org;
 h=content-transfer-encoding:to:subject:message-id:date:mime-version
 :references:in-reply-to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=Q6nmXgACKroqN5jKArz/+5sjzHMuzyKt0ynOCKxq7Xc=;
 b=K1d/ZL1k6ASIwtu23joD2kuBuW0bLSadkOzRtRSSGtoDkBkMDHq2CZ7bL0VWRdfJ6I
 WrflncVFa6JnEREjIjajCHPQhf8jUaXSbFJxkzQeaTZ7RRoctEIzWJhaQJnorzHdz4R7
 yf5wqdtoUZ6gvSrEGkrXyUau1/SkJN+EKp0PgHh9f5gTd8zdivAv0f5zol3T7f78d3OY
 BmyD9JYkU/kAMHbei+G5FsGIrmQOMSqdPNfFWqAglfecWPzCKLvYjPC3sGFFUxEtqlxk
 0PS5b0CFTHK3QvysSK/XobVnTQPDLt7LNNAMs+NaguqSbPMhpu/Q/ImDDDWw5LevOkCo
 quFQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740525650; x=1741130450;
 h=content-transfer-encoding:to:subject:message-id:date:mime-version
 :references:in-reply-to:from:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=Q6nmXgACKroqN5jKArz/+5sjzHMuzyKt0ynOCKxq7Xc=;
 b=VaZX/eMm1JfVlQoQJ5rMUBvFxETJEdhUZ24m4VSh3oazZj8MnSo9gVUckDGTDecplR
 rwmbbzFdLg9bs68DR8SVeUlm0MyXuullTTsBRxaj8hcmJy6eyNg6v61k2yPZrKmT46T7
 p/vG1WijuT1nL84ncMHv207Xy3kJBCzZe7gyP2dCQaXq+KqWwpccD6f5mB0TUutXwlA8
 BYurcI88RBA0ND0gVqFVuc8fFzwx9XB7U8RLVjBlg9PdZIi1HetsIbmyQzNBZ6TdD9or
 T3K9mQQiWqM8xfjv64FDIrrd83UfhtLoHl0nr6pgwtHlzocEbN1Bib5rQOTcZA7KPjTl
 p22A==
X-Forwarded-Encrypted: i=1;
 AJvYcCWeBFsOtizbFmbJHQRxz6NSu32fc3OZJJdsujWMqwNzvfbnRZwi55/6ZFrXUeN+3NXgHa9UIA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxG2ygk33iN3620sAhVa5yxkVobAGdijWihU0P4YIZLUn09tITn
 BMDDcYIINgP1tuJSNnmXT8OxfExpO5/HBTJYI5fsIxt9GUDO2+nWOKzyCMxVO2+1+yk2HrKZZem
 f5nhoLhSQk7PpU1A3qBBWV9cqmrE=
X-Gm-Gg: ASbGncsQmILVHSMs/n5YrzeBppQREdZzHmb3tJiw+KxibnX1ixQ0n2SHYQSYlowkspg
 RQieT2FjaU69iOUZPFEmrrrjqj1Ji7psPQCDc3vbolLiEHNBr4enIkXOIAYl956yicc4jHWutoB
 mIRckUE88=
X-Google-Smtp-Source: AGHT+IE6Z06Iahds1/3Lto75jKE0zVFnAVK69m0/09O4sGDem6q6cbbbdco3FNsPj/0sk2y9PgJaFEYaEsLyy4y6gKM=
X-Received: by 2002:a17:906:3284:b0:abe:ced2:1df3 with SMTP id
 a640c23a62f3a-abeced26676mr505431266b.52.1740525649886; Tue, 25 Feb 2025
 15:20:49 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Tue, 25 Feb 2025 23:20:49 +0000
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <55c6dba39f9269786c38f2b16e27fa3a29b6201d.camel@HIDDEN>
References: <55c6dba39f9269786c38f2b16e27fa3a29b6201d.camel@HIDDEN>
MIME-Version: 1.0
Date: Tue, 25 Feb 2025 23:20:49 +0000
X-Gm-Features: AQ5f1JpjED3wHCM4LGcFOyZRIoPYIBWkKdlWQcDCw7_CbfaqLKYcBtgJfpqfE4w
Message-ID: <CADwFkmmnPZtQcdpgja_-xR52xxYoTiiPS59VutXHQ9PNjSxq5g@HIDDEN>
Subject: Re: bug#76564: [RFE] (message) should be printing colors
To: Konstantin Kharlamov <Hi-Angel@HIDDEN>, 76564 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76564
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

severity 76564 wishlist
tags 76564 + confirmed
thanks

Konstantin Kharlamov <Hi-Angel@HIDDEN> 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))
>
> =E2=80=A6in 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76564; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Feb 2025 18:22:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 25 13:22:53 2025
Received: from localhost ([127.0.0.1]:48427 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmzZx-0002t1-M6
	for submit <at> debbugs.gnu.org; Tue, 25 Feb 2025 13:22:52 -0500
Received: from lists.gnu.org ([2001:470:142::17]:59022)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <Hi-Angel@HIDDEN>)
 id 1tmzZs-0002sh-2f
 for submit <at> debbugs.gnu.org; Tue, 25 Feb 2025 13:22:47 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Hi-Angel@HIDDEN>)
 id 1tmzZm-0000Ee-18
 for bug-gnu-emacs@HIDDEN; Tue, 25 Feb 2025 13:22:38 -0500
Received: from forward103a.mail.yandex.net ([178.154.239.86])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Hi-Angel@HIDDEN>)
 id 1tmzZi-0004nj-F4
 for bug-gnu-emacs@HIDDEN; Tue, 25 Feb 2025 13:22:37 -0500
Received: from mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net
 [IPv6:2a02:6b8:c15:3805:0:640:19ad:0])
 by forward103a.mail.yandex.net (Yandex) with ESMTPS id CC72A60C5F
 for <bug-gnu-emacs@HIDDEN>; Tue, 25 Feb 2025 21:22:26 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id QMhNmx1LiCg0-iKNmwOwm; 
 Tue, 25 Feb 2025 21:22:26 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1740507746; bh=rsMgYSOpCqZmj/wdMhWuNRZG3JrKfl0R9FjQX13wHy4=;
 h=Date:To:From:Subject:Message-ID;
 b=KrM+wTS/T7O9+c9sf2iXREQ+OvC5/5bzS/WuBVMqXxFTCQhFf0wyLUFBnKL4Q7N2B
 jImvD+9SDiwpRe9q3LPqIIHnkeL7nZA9iPR2b/dIBz5+WHpba0yfS375h5so3xu7wG
 ZFPJfJOgaH9khj0QteMCh5PUmd/qUQOyTs4gOlw0=
Authentication-Results: mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Message-ID: <55c6dba39f9269786c38f2b16e27fa3a29b6201d.camel@HIDDEN>
Subject: [RFE] (message) should be printing colors
From: Konstantin Kharlamov <Hi-Angel@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Date: Tue, 25 Feb 2025 21:22:26 +0300
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.54.3 
MIME-Version: 1.0
Received-SPF: pass client-ip=178.154.239.86; envelope-from=Hi-Angel@HIDDEN;
 helo=forward103a.mail.yandex.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

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))

=E2=80=A6in 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?




Acknowledgement sent to Konstantin Kharlamov <Hi-Angel@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#76564; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 25 Feb 2025 23:30:02 UTC

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