]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't make grep arguments invisible in eshell
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 3 Dec 2020 10:11:46 +0000 (11:11 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 3 Dec 2020 10:11:46 +0000 (11:11 +0100)
* 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

index 18818648bc40b8f09d7ab2da5c2094f3a55b15e1..153000438e716872aa14df6f33f767bf9828b9a2 100644 (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)))))