From 6422750b4f8cbc7d1da49b72873deeb18390e379 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 3 Dec 2020 11:11:46 +0100 Subject: [PATCH] Don't make grep arguments invisible in eshell * lisp/eshell/em-unix.el (eshell-grep): There doesn't seem to be any reason why parts of the command should be invisible, so don't do that. --- lisp/eshell/em-unix.el | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el index 18818648bc4..153000438e7 100644 --- a/lisp/eshell/em-unix.el +++ b/lisp/eshell/em-unix.el @@ -754,15 +754,12 @@ external command." (eshell-stringify-list (flatten-tree args))) " ")) - (cmd (progn - (set-text-properties 0 (length args) - '(invisible t) args) - (format "%s -n %s" - (pcase command - ("egrep" "grep -E") - ("fgrep" "grep -F") - (x x)) - args))) + (cmd (format "%s -n %s" + (pcase command + ("egrep" "grep -E") + ("fgrep" "grep -F") + (x x)) + args)) compilation-scroll-output) (grep cmd))))) -- 2.39.5