From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#50207: 28.0.50; ansi-color-compilation-filter and rgrep Date: Thu, 26 Aug 2021 12:10:33 +0100 Message-ID: <87y28oh36e.fsf@tcd.ie> References: Reply-To: "Basil L. Contovounesios" Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22543"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 50207@debbugs.gnu.org To: Manuel Uberti Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 26 13:12:32 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJDJA-0005f4-3c for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Aug 2021 13:12:32 +0200 Original-Received: from localhost ([::1]:38208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJDJ7-0005rc-1j for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Aug 2021 07:12:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJDHk-0005GF-3v for bug-gnu-emacs@gnu.org; Thu, 26 Aug 2021 07:11:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36958) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJDHj-0001Mk-Rj for bug-gnu-emacs@gnu.org; Thu, 26 Aug 2021 07:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mJDHi-0001EA-Mm for bug-gnu-emacs@gnu.org; Thu, 26 Aug 2021 07:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Aug 2021 11:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50207 X-GNU-PR-Package: emacs Original-Received: via spool by 50207-submit@debbugs.gnu.org id=B50207.16299762494651 (code B ref 50207); Thu, 26 Aug 2021 11:11:02 +0000 Original-Received: (at 50207) by debbugs.gnu.org; 26 Aug 2021 11:10:49 +0000 Original-Received: from localhost ([127.0.0.1]:48496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJDHV-0001Cx-9n for submit@debbugs.gnu.org; Thu, 26 Aug 2021 07:10:49 -0400 Original-Received: from mail-wm1-f52.google.com ([209.85.128.52]:36683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJDHO-0001CO-Uv for 50207@debbugs.gnu.org; Thu, 26 Aug 2021 07:10:46 -0400 Original-Received: by mail-wm1-f52.google.com with SMTP id 79-20020a1c0452000000b002e6cf79e572so6620343wme.1 for <50207@debbugs.gnu.org>; Thu, 26 Aug 2021 04:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=e0IfrY/xkl61Wxg59V8axHw7RWR5WJ8onIVlvOvYNUo=; b=Y8cQPI+m9cDOyt62gtjvcsH7dfaYf2Kjz/GI6WLNtyZ86glAiLuDFjnGrTiVrglfr1 y1OtxdI8CwyuUvjqk1RvGj5UAqd+KsDaG+CA6L6RUNip2AL4FdKJj8+Y2yO+VjAb+C9z xzbKpR/ciHm7k8acHrpk6ZMtSLOe5df9bO3JMs/0bqxvoj/v9LinpdZToWkEU2KJMWwX TY30+xrArHy/0hhN3aN0lARqml5dhAeB6lc5gxo0ADk9n1MrYDhPHcNINqqBkqna6Oiq eBZV5o/jgM+hXHsxiGmAKsjtHK1YC/k5JkHGcCRctQjJ1Isfx7Hihz5SNulrtP2+U+mg Petw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=e0IfrY/xkl61Wxg59V8axHw7RWR5WJ8onIVlvOvYNUo=; b=tuH6Q+BgxBoIEEHdpkNzfd6NCcCEE2UngJ5/4vAU+HjSw8Uq1jsKlJei4KvWCi2Ok9 E7yj64pKHitEZRn126zzmuOGGKkrJALgil8xx63k2tsOPAvsEZp9iETszL66FXGw1BLu /bBXdImqePnW2J4O9QiLjLeJ3gMNPZkUK+B8+N0d7kEPoSd1zLiHAzxZbFUR2T6uS9FU kAKxszbS8IoGoXu/alqVcF9gSt5EtrIUycOuopic4ZG979kIUGtm72FpnZONLOU4oANn aQOxNTmMghRxbvEHcDf0pw4LPGU2JH1l4wST7/T+fy//l4IDIkDB/4R2jv6/intKUj3o MOHw== X-Gm-Message-State: AOAM5335KeLrnu6/zYmk4hHeCC9HeZR5Hdpc6AalhToSim4F9MwD0oF1 HByFMWmnGyl5xhgulLPiohqnOQ== X-Google-Smtp-Source: ABdhPJwDOlhXg37CB5a+vS5ZY7KpSlXNin5FaoS7F7UD4/kMkfsRaWo6CXT9W9Wb8jH+z2mjgN2rDw== X-Received: by 2002:a7b:c847:: with SMTP id c7mr3131964wml.1.1629976237098; Thu, 26 Aug 2021 04:10:37 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id m4sm8167079wml.28.2021.08.26.04.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Aug 2021 04:10:36 -0700 (PDT) In-Reply-To: (Manuel Uberti's message of "Thu, 26 Aug 2021 07:57:18 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212702 Archived-At: found 50207 25.1 quit Manuel Uberti [2021-08-26 07:57 +0200] wrote: > From 'emacs -Q', this is what I did: > > - (add-hook 'compilation-filter-hook #'ansi-color-compilation-filter) > - M-x rgrep RET > - setq RET > - RET > - ~/emacs RET (this is where I keep the entire Emacs source code) > > As you can see from the attached image, some of the results are red and some are > not. This is not happening without ansi-color-compilation-filter.y I can reproduce the issue in Emacs 25.1 and newer, but not in 24.5 (configuration below signature), with the following modified recipe: 0. emacs -Q 1. (add-hook 'compilation-filter-hook (lambda () (ansi-color-apply-on-region compilation-filter-start (point)))) 2. C-x C-e 3. M-x rgrep RET 4. setq RET RET /dir/of/emacs/trunk RET 5. ...twiddle thumbs... 6. C-c C-k Loading the 24.5 versions of ansi-color.el and compile.el in 25.1 between steps 0 and 1 does not seem to change anything. Thanks, -- Basil In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2021-01-02 on tia Windowing system distributor `The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: `configure CC=clang 'CFLAGS=-O2 -march=native' --prefix=/home/blc/.local --program-suffix=-24 --with-x-toolkit=lucid --with-file-notification=yes --with-x' Important settings: value of $LANG: en_IE.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Grep Minor modes in effect: tooltip-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set ((lambda nil (ansi-color-apply-on-region compilation-filter-start (point)))) Grep interrupt Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils find-dired dired grep compile comint ansi-color ring time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs) In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2021-08-26 built on tia Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure CC=clang 'CFLAGS=-O2 -march=native' --prefix=/home/blc/.local --program-suffix=-25.1 --with-x-toolkit=lucid --with-file-notification=yes --with-x --with-modules' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES Important settings: value of $LANG: en_IE.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Grep Minor modes in effect: 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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set ((lambda nil (ansi-color-apply-on-region compilation-filter-start (point)))) Mark set Grep interrupt Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils find-dired dired thingatpt grep compile comint ansi-color ring time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty make-network-process emacs)