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.
This commit is contained in:
Lars Ingebrigtsen 2020-12-03 11:11:46 +01:00
parent 3e6eccc175
commit 6422750b4f

View file

@ -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)))))