From unknown Fri Sep 05 15:36:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65513: 29.1; Ansi colors do not work in compilation buffers Resent-From: Daniel Zurawski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Aug 2023 05:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 65513@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16929405315243 (code B ref -1); Fri, 25 Aug 2023 05:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Aug 2023 05:15:31 +0000 Received: from localhost ([127.0.0.1]:38954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZPAN-0001MN-IJ for submit@debbugs.gnu.org; Fri, 25 Aug 2023 01:15:30 -0400 Received: from lists.gnu.org ([2001:470:142::17]:55416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZGyq-0000yD-IR for submit@debbugs.gnu.org; Thu, 24 Aug 2023 16:31:01 -0400 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 1qZGyd-0004vK-PC for bug-gnu-emacs@gnu.org; Thu, 24 Aug 2023 16:30:48 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZGya-0003y6-S8 for bug-gnu-emacs@gnu.org; Thu, 24 Aug 2023 16:30:47 -0400 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-31c71898109so155557f8f.2 for ; Thu, 24 Aug 2023 13:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692909042; x=1693513842; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=IvtevRAnvZLVqiWIpIaK4DjHfQ/3ogMf8Hg6BR8ISP8=; b=XT7y4UHhDjWE20Qy8ae1q6YowOVhR2Uzd2Jtib1qtK/J1U75Aghuo1GLxIhsx/uX/L RWTR+AzUE8qlJUPwYnqPinFC/LLQVQRDiVaJvg3Sd0O+O0sQxQ1hYeoJzIhlV1F3g7l+ wY9YBFZOx7dzP8l29XttiMB/NtDOqR79Brbt5fLWcVu8iUYK8NouCzQnf4/aJ5QT6jrO yCH5KbstswQ3kKkrvMmiGIYSq8sd1fL0JkogpHLwwWPCmGhVkkZtiup2DWDee3/zqkeJ Q3NTMAUTIdNMzFcFa3V6tIeiI4t+VMSFjrtFKBcDxdy8tV6/ppjrEloAVyBWWqAK2Pyt IEXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692909042; x=1693513842; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=IvtevRAnvZLVqiWIpIaK4DjHfQ/3ogMf8Hg6BR8ISP8=; b=Pv871foFV0+stRp1OQmQyLpbTs0rMsR9yLq1UlOsxd7SoFUSN+Tq2T30Y+9HEcNDGv ehs/Z/PNNa6cfE8BPBb8+F5YzmE+H7WTzUyPcpPnu8py0G7/22jGO8am/V1cz9jnhRpR G7gcopF6+zJE7g1dXVnlFNAJigZWt5lLUk1qNUZOqj7Nc23AGKjjDLwqE7r9J7bcTju3 6/V5mvTVKsxw8LPiFWLUrsD9dcT4+uwiyHJQ/g9tBwIX+6MjgoOkEC8gu1sCsZtYs3ZH jebY1tYTeWGxMZ49PTaQEOCsOkdayooYOYeUQ2RnLpkM6tJ9mvsE6AzUtN6d1ymZMNg9 rCdQ== X-Gm-Message-State: AOJu0YyQZIAOUrpslDcGzkFAGKJAPn+zSsgsLd+hgUKRTcMLQxZsnqSm PWis0HRkRLfofccSOoZZAR8IK8qJCR6SD958lZBwRV+KDhw= X-Google-Smtp-Source: AGHT+IHQPfIpawvZe9qdl4oGWGWr0SPNkBInlEEHEjb28XqpnfsHhOWOOaExx5ceXGeDmRFCe5hD2uGD3m/c2ZTxaQU= X-Received: by 2002:a5d:68c1:0:b0:319:8dcf:5c0f with SMTP id p1-20020a5d68c1000000b003198dcf5c0fmr11973003wrw.16.1692909042335; Thu, 24 Aug 2023 13:30:42 -0700 (PDT) MIME-Version: 1.0 From: Daniel Zurawski Date: Thu, 24 Aug 2023 14:30:31 -0600 Message-ID: Content-Type: multipart/alternative; boundary="0000000000001b04ad0603b11a48" Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=djzurawski@gmail.com; helo=mail-wr1-x429.google.com 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Mailman-Approved-At: Fri, 25 Aug 2023 01:15:25 -0400 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: -0.0 (/) --0000000000001b04ad0603b11a48 Content-Type: text/plain; charset="UTF-8" Colors arent rendered in compiation buffers, the ansi color code text is displayed. I have resolved the issue but adding these lines to my init.el (require 'ansi-color) (add-hook 'compilation-filter-hook 'ansi-color-compilation-filter) In GNU Emacs 29.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-08-09 built on workstation2 System Description: Ubuntu 22.04.3 LTS Configured using: 'configure --with-native-compilation --without-compress-install --with-json 'CFLAGS=-O3 -march=znver3' 'CXXFLAGS=-O3 -march=znver3'' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBSELINUX MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: paredit-mode: t override-global-mode: t straight-use-package-mode: t straight-package-neutering-mode: t global-company-mode: t company-mode: t pyvenv-mode: t global-auto-revert-mode: t xterm-mouse-mode: t xclip-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/dan/.emacs.d/straight/build/s/s-autoloads hides /home/dan/.emacs.d/elpa/s-20220902.1511/s-autoloads /home/dan/.emacs.d/straight/build/s/s hides /home/dan/.emacs.d/elpa/s-20220902.1511/s /home/dan/.emacs.d/straight/build/dash/dash hides /home/dan/.emacs.d/elpa/dash-20230714.723/dash /home/dan/.emacs.d/straight/build/jsonrpc/jsonrpc hides /usr/local/share/emacs/29.1/lisp/jsonrpc /home/dan/.emacs.d/elpa/transient-20230723.1411/transient hides /usr/local/share/emacs/29.1/lisp/transient Features: (shadow sort mail-extr emacsbug message yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date comp comp-cstr term/xterm xterm paredit edmacro kmacro company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-cmake company-semantic company-template company-bbdb monokai-theme copilot copilot-balancer editorconfig editorconfig-core editorconfig-core-handle editorconfig-fnmatch dash jsonrpc copilot-autoloads jsonrpc-autoloads editorconfig-autoloads dash-autoloads use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key use-package-core straight-autoloads straight cl-extra yasnippet highlight-indentation flymake-proc flymake warnings thingatpt company-capf company help-fns radix-tree help-mode elpy advice elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util elpy-shell elpy-profile elpy-django s elpy-refactor diff-mode easy-mmode python rx compat pcase treesit ido hideshow grep compile text-property-search comint ansi-osc files-x etags fileloop generator xref project ring cus-edit pp cus-load icons wid-edit autorevert filenotify xt-mouse xclip ansi-color finder-inf display-line-numbers cider-autoloads clojure-mode-autoloads elpy-autoloads company-autoloads flycheck-autoloads highlight-indentation-autoloads lsp-mode-autoloads f-autoloads markdown-mode-autoloads monokai-pro-theme-autoloads monokai-theme-autoloads parseedn-autoloads parseclj-autoloads pkg-info-autoloads epl-autoloads pyvenv-autoloads queue-autoloads sesman-autoloads smartparens-autoloads spinner-autoloads transient-autoloads compat-autoloads treemacs-autoloads cfrs-autoloads posframe-autoloads ht-autoloads hydra-autoloads lv-autoloads pfuture-autoloads ace-window-autoloads avy-autoloads s-autoloads info xclip-autoloads yasnippet-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 448297 147916) (symbols 48 26308 97) (strings 32 127299 14185) (string-bytes 1 3562848) (vectors 16 46412) (vector-slots 8 1485471 200074) (floats 8 130 603) (intervals 56 478 216) (buffers 976 16)) --0000000000001b04ad0603b11a48 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Colors arent rendered in compiation buffers, the ansi = color code text is displayed.
I have resolved the issue but adding these= lines to my init.el

(require 'ansi-color)
(add-hook 'com= pilation-filter-hook 'ansi-color-compilation-filter)


In GNU = Emacs 29.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.33,
=C2=A0ca= iro version 1.16.0) of 2023-08-09 built on workstation2
System Descripti= on: Ubuntu 22.04.3 LTS

Configured using:
=C2=A0'configure --w= ith-native-compilation --without-compress-install
=C2=A0--with-json '= ;CFLAGS=3D-O3 -march=3Dznver3' 'CXXFLAGS=3D-O3 -march=3Dznver3'= '

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTL= S GSETTINGS HARFBUZZ JPEG JSON
LIBSELINUX MODULES NATIVE_COMP NOTIFY INO= TIFY PDUMPER PNG SECCOMP SOUND
THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE= XIM XINPUT2 XPM GTK3 ZLIB

Important settings:
=C2=A0 value of $L= ANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 local= e-coding-system: utf-8-unix

Major mode: ELisp/d

Minor modes i= n effect:
=C2=A0 paredit-mode: t
=C2=A0 override-global-mode: t
= =C2=A0 straight-use-package-mode: t
=C2=A0 straight-package-neutering-mo= de: t
=C2=A0 global-company-mode: t
=C2=A0 company-mode: t
=C2=A0 = pyvenv-mode: t
=C2=A0 global-auto-revert-mode: t
=C2=A0 xterm-mouse-m= ode: t
=C2=A0 xclip-mode: t
=C2=A0 global-display-line-numbers-mode: = t
=C2=A0 display-line-numbers-mode: t
=C2=A0 tooltip-mode: t
=C2= =A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren-mode:= t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2= =A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-= mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
= =C2=A0 blink-cursor-mode: t
=C2=A0 line-number-mode: t
=C2=A0 indent-= tabs-mode: t
=C2=A0 transient-mark-mode: t
=C2=A0 auto-composition-mo= de: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t<= br>
Load-path shadows:
/home/dan/.emacs.d/straight/build/s/s-autoload= s hides /home/dan/.emacs.d/elpa/s-20220902.1511/s-autoloads
/home/dan/.e= macs.d/straight/build/s/s hides /home/dan/.emacs.d/elpa/s-20220902.1511/s/home/dan/.emacs.d/straight/build/dash/dash hides /home/dan/.emacs.d/elpa= /dash-20230714.723/dash
/home/dan/.emacs.d/straight/build/jsonrpc/jsonrp= c hides /usr/local/share/emacs/29.1/lisp/jsonrpc
/home/dan/.emacs.d/elpa= /transient-20230723.1411/transient hides /usr/local/share/emacs/29.1/lisp/t= ransient

Features:
(shadow sort mail-extr emacsbug message yank-m= edia puny dired
dired-loaddefs rfc822 mml mml-sec epa derived epg rfc606= 8 epg-config
gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 = mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-u= til
mail-prsvr mail-utils time-date comp comp-cstr term/xterm xterm pare= dit
edmacro kmacro company-oddmuse company-keywords company-etags
com= pany-gtags company-dabbrev-code company-dabbrev company-files
company-cl= ang company-cmake company-semantic company-template
company-bbdb monokai= -theme copilot copilot-balancer editorconfig
editorconfig-core editorcon= fig-core-handle editorconfig-fnmatch dash
jsonrpc copilot-autoloads json= rpc-autoloads editorconfig-autoloads
dash-autoloads use-package use-pack= age-ensure use-package-delight
use-package-diminish use-package-bind-key= bind-key use-package-core
straight-autoloads straight cl-extra yasnippe= t highlight-indentation
flymake-proc flymake warnings thingatpt company-= capf company help-fns
radix-tree help-mode elpy advice elpy-rpc pyvenv e= shell esh-cmd esh-ext
esh-opt esh-proc esh-io esh-arg esh-module esh-gro= ups esh-util
elpy-shell elpy-profile elpy-django s elpy-refactor diff-mo= de easy-mmode
python rx compat pcase treesit ido hideshow grep compiletext-property-search comint ansi-osc files-x etags fileloop generator
= xref project ring cus-edit pp cus-load icons wid-edit autorevert
filenot= ify xt-mouse xclip ansi-color finder-inf display-line-numbers
cider-auto= loads clojure-mode-autoloads elpy-autoloads company-autoloads
flycheck-a= utoloads highlight-indentation-autoloads lsp-mode-autoloads
f-autoloads = markdown-mode-autoloads monokai-pro-theme-autoloads
monokai-theme-autolo= ads parseedn-autoloads parseclj-autoloads
pkg-info-autoloads epl-autoloa= ds pyvenv-autoloads queue-autoloads
sesman-autoloads smartparens-autoloa= ds spinner-autoloads
transient-autoloads compat-autoloads treemacs-autol= oads cfrs-autoloads
posframe-autoloads ht-autoloads hydra-autoloads lv-a= utoloads
pfuture-autoloads ace-window-autoloads avy-autoloads s-autoload= s info
xclip-autoloads yasnippet-autoloads package browse-url url url-pr= oxy
url-privacy url-expand url-methods url-history url-cookie
generat= e-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-sour= ce cl-seq eieio eieio-core cl-macs password-cache json subr-x
map byte-o= pt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc
iso-transl t= ooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-floa= t-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd tool-bar= dnd fontset image regexp-opt fringe
tabulated-list replace newcomment t= ext-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow = isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax= font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generi= c indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese ti= betan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek ro= manian slovak czech
european ethiopic indian cyrillic chinese composite = emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abb= rev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces c= us-face macroexp
files window text-properties overlay sha1 md5 base64 fo= rmat env
code-pages mule custom widget keymap hashtable-print-readable b= ackquote
threads dbusbind inotify dynamic-setting system-font-settingfont-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-ttymake-network-process native-compile emacs)

Memory information:
= ((conses 16 448297 147916)
=C2=A0(symbols 48 26308 97)
=C2=A0(strings= 32 127299 14185)
=C2=A0(string-bytes 1 3562848)
=C2=A0(vectors 16 46= 412)
=C2=A0(vector-slots 8 1485471 200074)
=C2=A0(floats 8 130 603)=C2=A0(intervals 56 478 216)
=C2=A0(buffers 976 16))
--0000000000001b04ad0603b11a48-- From unknown Fri Sep 05 15:36:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65513: 29.1; Ansi colors do not work in compilation buffers Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Aug 2023 06:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Zurawski Cc: 65513@debbugs.gnu.org Received: via spool by 65513-submit@debbugs.gnu.org id=B65513.169294496412838 (code B ref 65513); Fri, 25 Aug 2023 06:30:02 +0000 Received: (at 65513) by debbugs.gnu.org; 25 Aug 2023 06:29:24 +0000 Received: from localhost ([127.0.0.1]:39033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZQJw-0003L0-58 for submit@debbugs.gnu.org; Fri, 25 Aug 2023 02:29:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZQJq-0003KV-Qy for 65513@debbugs.gnu.org; Fri, 25 Aug 2023 02:29:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZQJh-0002C3-3v; Fri, 25 Aug 2023 02:29:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Znn8+3SzuJfvF5rWGq7SwATB7KfwW/2KfWJkhU82Nrk=; b=n86IevMX3NG6 2aPVIZo+hwD1tKbtbBrV6mUOOATzVDfdW6b2DTPQBoo0B+7eNhoqVvypXJhP2en9/j1UAK8eLSJLj FDlfodMM2L8keeNkMR94w3VNVzRPJBaicHgt0HtJ9laGyomQ78sBYoC/NUd8X5Bht0CWWAhBo/jxd Ti62Y+zmjsAfOegR2kkDHHl0frqweWhM48Z9k8QSg6AGU9vxc6pamWCvV5OStALCTmaEvZ5B5x1GR 4D5HOp0t0yIXc3vVRoXeG1siAU8lmmI8Syz2mewjD6EddrpWve45PL1C014+FrdM/NhxaH/fRbqH0 pG5e7IfioHyAUEN6IWUd4g==; Date: Fri, 25 Aug 2023 09:29:30 +0300 Message-Id: <83sf87ocs5.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Daniel Zurawski on Thu, 24 Aug 2023 14:30:31 -0600) References: X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Daniel Zurawski > Date: Thu, 24 Aug 2023 14:30:31 -0600 > > Colors arent rendered in compiation buffers, the ansi color code text is displayed. > I have resolved the issue but adding these lines to my init.el > > (require 'ansi-color) > (add-hook 'compilation-filter-hook 'ansi-color-compilation-filter) AFAIU, this is exactly what you need to do if you want the ANSI color sequences to be supported in compilation buffers. Emacs currently supports that automatically only in Grep buffers (set grep-highlight-matches to t to activate). From unknown Fri Sep 05 15:36:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65513: 29.1; Ansi colors do not work in compilation buffers Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Aug 2023 16:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Daniel Zurawski Cc: 65513@debbugs.gnu.org Received: via spool by 65513-submit@debbugs.gnu.org id=B65513.169297977931895 (code B ref 65513); Fri, 25 Aug 2023 16:10:01 +0000 Received: (at 65513) by debbugs.gnu.org; 25 Aug 2023 16:09:39 +0000 Received: from localhost ([127.0.0.1]:41099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZZNT-0008IN-3T for submit@debbugs.gnu.org; Fri, 25 Aug 2023 12:09:39 -0400 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:58731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZZNP-0008I0-2j for 65513@debbugs.gnu.org; Fri, 25 Aug 2023 12:09:37 -0400 Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-26f3975ddd4so702416a91.1 for <65513@debbugs.gnu.org>; Fri, 25 Aug 2023 09:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692979764; x=1693584564; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=Fk9q9Jj7Qchlc+KblJQ34m6c68z4RDR0nXPL1yR5zYU=; b=IhRUSMHuMAS1ifMVjP2qAvarS5+kgk8rFo6RfmBw40k4BEpaWlMKXMheTxftmxBdVE yDMomVS9347A7H6rPpKrTtPlCShppbwK4W8fcNcY+clFe2h9F+MpIK+3K1Ar2PRRKyfI r5vAZjiG/AIE3bUdXhM2Abm6I9mBNtoRiNnI3prLfa8Ji6ryVUF6Jlu5s7ZKRnTMCaQz KcLizQ9M+YCgdUpCKnQ+clklwIRBOjBnjdRMWJFgumvU/fgdEHanEmufN1fchW/DGVWt vxsdAtq/CX4Q0p0eND2vRcRAZne2U/wVf/vDuwInfJSJCerUCGP3quSy8ZQgu/F8XyQw jeoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692979764; x=1693584564; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Fk9q9Jj7Qchlc+KblJQ34m6c68z4RDR0nXPL1yR5zYU=; b=bJ+TJ1/QJGgpWJBPiu3sKEKxeqP7GLiWL8OWvwqQxRNFvawQRp11+Nxa/Mn6wYH9Mc M/vjW21NDBVLmvu05aknLbJLxu1dlUH3BofCvRjNbFYB/0cXKRFR7QGDTdbrCntDgFgy TjtmXND42JhPHk5huI1b/4vg+F8GP6rhTfN/a35JwpnW+VUz5f8QndWwy/4BELdRPNhq rHf/yV0RoSgy+uKIwbHb54PHE3uvSx/RVdzYT+UW+tTwVlefLHwWPkL4oVsrRuD0NZCu jEZIAa4bFVSudtoSDI3wp9ETLW8/liJlCBeD4InGKpoV0D1tEwuldPbqQohxakYfiIJB SdTw== X-Gm-Message-State: AOJu0YwaX5saoGOZc+bhSnd9tisr9wC39Y7N04Pskca54g/mIy/Lt+mo e7ElBQf0mQpMog0Rl7j254s= X-Google-Smtp-Source: AGHT+IHh0DNHkkIcGSWZeWrmYsQHjKtLSUjQntI1QN2wnmyXHcXeMh69nDqVc8X9hAwEhYCLq/+cLw== X-Received: by 2002:a17:90b:4d92:b0:26f:4685:5b5c with SMTP id oj18-20020a17090b4d9200b0026f46855b5cmr16066160pjb.31.1692979764265; Fri, 25 Aug 2023 09:09:24 -0700 (PDT) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id b15-20020a17090a7acf00b00262e604724dsm3644738pjl.50.2023.08.25.09.09.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Aug 2023 09:09:23 -0700 (PDT) Message-ID: <6d8838a4-1435-d3b4-c78f-f29c8b21db84@gmail.com> Date: Fri, 25 Aug 2023 09:09:24 -0700 MIME-Version: 1.0 Content-Language: en-US References: <83sf87ocs5.fsf@gnu.org> From: Jim Porter In-Reply-To: <83sf87ocs5.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 (-) On 8/24/2023 11:29 PM, Eli Zaretskii wrote: >> From: Daniel Zurawski >> Date: Thu, 24 Aug 2023 14:30:31 -0600 >> >> Colors arent rendered in compiation buffers, the ansi color code text is displayed. >> I have resolved the issue but adding these lines to my init.el >> >> (require 'ansi-color) >> (add-hook 'compilation-filter-hook 'ansi-color-compilation-filter) > > AFAIU, this is exactly what you need to do if you want the ANSI color > sequences to be supported in compilation buffers. Emacs currently > supports that automatically only in Grep buffers (set > grep-highlight-matches to t to activate). Yeah, I think this isn't a bug: since compilation mode adds its own highlighting to buttonize errors and such, it could be confusing if you also saw the ANSI colors in the same block of text. The hook mentioned above is the way for users to opt into this potentially-confusing behavior. For Grep buffers, I think that option is a bit different: to get the matched region from Grep output, you need to examine the ANSI sequences in the output. The Emacs Grep code then uses that to add our *own* fontification, and then we strip out the ANSI sequences (see 'grep-filter').