From unknown Sun Jun 15 08:48:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76564: [RFE] (message) should be printing colors Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Feb 2025 18:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 76564@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174050777311106 (code B ref -1); Tue, 25 Feb 2025 18:23:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Feb 2025 18:22:53 +0000 Received: from localhost ([127.0.0.1]:48427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tmzZx-0002t1-M6 for submit@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 ) id 1tmzZs-0002sh-2f for submit@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 ) id 1tmzZm-0000Ee-18 for bug-gnu-emacs@gnu.org; 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 ) id 1tmzZi-0004nj-F4 for bug-gnu-emacs@gnu.org; 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 ; 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@yandex.ru> From: Konstantin Kharlamov 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@yandex.ru; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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? From unknown Sun Jun 15 08:48:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76564: [RFE] (message) should be printing colors Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Feb 2025 23:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Konstantin Kharlamov , 76564@debbugs.gnu.org Received: via spool by 76564-submit@debbugs.gnu.org id=B76564.17405256612596 (code B ref 76564); Tue, 25 Feb 2025 23:21:02 +0000 Received: (at 76564) by debbugs.gnu.org; 25 Feb 2025 23:21:01 +0000 Received: from localhost ([127.0.0.1]:48987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tn4EX-0000fn-1y for submit@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 ) id 1tn4ET-0000fJ-7n for 76564@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@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 In-Reply-To: <55c6dba39f9269786c38f2b16e27fa3a29b6201d.camel@yandex.ru> References: <55c6dba39f9269786c38f2b16e27fa3a29b6201d.camel@yandex.ru> MIME-Version: 1.0 Date: Tue, 25 Feb 2025 23:20:49 +0000 X-Gm-Features: AQ5f1JpjED3wHCM4LGcFOyZRIoPYIBWkKdlWQcDCw7_CbfaqLKYcBtgJfpqfE4w Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 76564 wishlist tags 76564 + confirmed thanks Konstantin Kharlamov 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.