From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#37163: 27.0.50; grep command no colors Date: Fri, 23 Aug 2019 19:19:00 +0200 Message-ID: <20190823171900.z4b5h6xgwrzaedaz@Ergus> Reply-To: Ergus Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="108007"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 To: 37163@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 23 19:20:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i1DEW-000RtG-8P for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Aug 2019 19:20:16 +0200 Original-Received: from localhost ([::1]:59950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1DEU-0006YH-Ae for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Aug 2019 13:20:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57168) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1DEK-0006VH-6D for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2019 13:20:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1DEI-0001so-R3 for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2019 13:20:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1DEI-0001sj-Ms for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2019 13:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i1DEI-0000v0-Gg for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2019 13:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ergus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Aug 2019 17:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37163 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15665807553416 (code B ref -1); Fri, 23 Aug 2019 17:20:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Aug 2019 17:19:15 +0000 Original-Received: from localhost ([127.0.0.1]:41080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1DDW-0000sz-EL for submit@debbugs.gnu.org; Fri, 23 Aug 2019 13:19:15 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1DDT-0000sp-Qy for submit@debbugs.gnu.org; Fri, 23 Aug 2019 13:19:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57008) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1DDS-00061l-8q for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2019 13:19:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1DDQ-0001R1-4v for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2019 13:19:09 -0400 Original-Received: from sonic306-20.consmr.mail.ir2.yahoo.com ([77.238.176.206]:46211) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1DDP-0001N6-EZ for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2019 13:19:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1566580745; bh=aEDziFzTRIAmxtqgrHtbkx6ZeNYWD8+eVghp36bQokA=; h=Date:From:To:Subject:From:Subject; b=cEQM0oWx7NP8WdZ2O++Nm6a3maLef8O9jwX31NgruIeV1uJ+ivY6j+Z6DMgPYpcTwRHgOb4f0cp+31yheaO0ZQWD2eZiFvBfRDA0wIdRIjiXIcpc4ThhDAE/L/d71DGzzyu71SLMsbZBVBBN1CSPkvrqmHglnlQdfm5NbaYg1yeahwwkz1NHRirTPWbBr6WTvRCKCjq6Qcl2CZYODpNXoiMz9ug2JKMCQOPm+swshpomZu1r/WlluGynOKX38gAQfXWVaESQ0gQseP50thVdLUW89SvZM8Uh5eI/+EBy8XfzggEE4rpUN6SS8skQZRw2R6ZBt80XO2tah6F2tovN+Q== X-YMail-OSG: YPsclPQVM1ljogBmq6R_bH9adiPjBxCW8qCwp1Vofj7NCTGKveM2Zt8rZt7A0kL 2qmonq.XSS5Zg10akU6TWS20hL95BFE.Uzoc3ySeqm8DyzStrhFj_Wyu974Pt4NGl_pB0dBoC414 IpHYN9FeHkn14t0ioCsl7hZzYfZHLPekYn.AogkXrXSI_dZaTj1wiGlw6HsaOfRzQsF6qf5y1b1z Sa5hWwcBkYzC4qzqtyjxaIpF3qDPQD1tLKkXaeAewNMcZqUjM08FPifRYSZY74XHQ2vOs6GMZEgo pROLdFzDKdjdJTTw1OJD1dviYRhHVJUnDRO7ZK6eXlRSWhxhqryAPk6fEC9LEnVn.dP.hULZXhWP n84lCVwTGqAyI1fLr1eKvweMef91jjKkb3s2_kvUkdG9tF6nuFkNFFQACryQtuAfPXo21lmw3xG1 aYvj2LbhcF49cItHFp6NH4PCvXi4Q6PGlJgvom6zh3w9B5AXwwt7pJitteroSEFkNZk_K3VHnbL_ ugXaA9fkHuQiy6L2WGpiQgyWaJnIo0OgKOwm1NHq_dLLss6wxP4IWlmLRg5hsMERk6AFztCkyEmU 6KYXFCckNiT4wbHDHCCIveOcST9SKkaQJfDs1YBzCTZPzngz.8o6n5RFnl4zpQyUB5VTbj.QqlMF 99Gpj5qTSKkqRyu9L4rS.NiWO_qNhxcWI49nA8j8aWyiDPzNgZ5pRjEWf0maVSB6_bR7iLsJ6U2c duYcnptjsW3J99ywKkvaZU.uJE7v8PSLUd0Mb5Uk2UGXKjYLZo9NRqo7K04rYUV1SF9TJV1un7Xu HnbkJOkTxGxrLH0oABAzwxpHfk6XwRS8s4C1dl3OV_ Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ir2.yahoo.com with HTTP; Fri, 23 Aug 2019 17:19:05 +0000 Original-Received: by smtp426.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0bb67c7e0f9d77a32b26e56761fe2680; Fri, 23 Aug 2019 17:19:03 +0000 (UTC) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165704 Archived-At: --text follows this line-- In the current emacs master breanch I am trying to use the grep command and the execution is fine but the output *grep* buffer doesn't contain the colors, it shows the scape sequences. I have tried in my actual installation of emacs 26 and the issue is not there, only in emacs 27. In gui and tui the behavior is the same. Example: M-x grep REP grep --color -nH --null -e display xdisp.c=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D -*- mode: grep; default-directory: "~/gits/emacs/src/" -*- Grep started at Fri Aug 23 19:08:10 grep --color -nH --null -e display xdisp.c=20 xdisp.c=0021:/* New re=1B[01;31mdisplay=1B[m written by Gerd Moellmann . xdisp.c=0023: Re=1B[01;31mdisplay=1B[m. xdisp.c=0025: Emacs separates the task of updating the =1B[01;31mdisplay= =1B[m from code xdisp.c=0028: the =1B[01;31mdisplay=1B[m. xdisp.c=0030: Updating the =1B[01;31mdisplay=1B[m is triggered by the Lis= p interpreter when it xdisp.c=0033: calling Lisp functions like `sit-for'. The C function `re= =1B[01;31mdisplay=1B[m' xdisp.c=0034: in xdisp.c is the only entry into the inner re=1B[01;31mdis= play=1B[m code. xdisp.c=0036: The following diagram shows how re=1B[01;31mdisplay=1B[m co= de is invoked. As you xdisp.c=0037: can see, Lisp calls re=1B[01;31mdisplay=1B[m and vice versa. xdisp.c=0039: Under window systems like X, some portions of the re=1B[01;= 31mdisplay=1B[m code xdisp.c=0043: re=1B[01;31mdisplay=1B[m via expose_frame and/or note_mouse= _highlight, if X events =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D In GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.10) of 2019-08-23 built on Ergus Repository revision: b4065de33cf397b80e15c22740d34b4a03cfdc17 Repository branch: master System Description: Arch Linux Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Quit start-file-process-shell-command: Invalid function: with-connection-local-v= ariables Configured using: 'configure --prefix=3D/mnt/casa/install_arch/emacs --with-x-toolkit=3Dgtk3 --with-xft --with-modules --with-mailutils' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: C/*l Minor modes in effect: shell-dirtrack-mode: t bug-reference-prog-mode: t tooltip-mode: t global-eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils files-x shell pcomplete thingatpt grep compile comint ansi-color ring vc-git diff-mode easy-mmode bug-reference cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib term/tmux term/xterm xterm byte-opt gv bytecomp byte-compile cconv tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 91980 7054) (symbols 48 9859 1) (strings 32 26288 2139) (string-bytes 1 963910) (vectors 16 12708) (vector-slots 8 132886 5840) (floats 8 31 471) (intervals 56 2931 0) (buffers 992 13))