chiark / gitweb /
el/dot-emacs.el: Suppress `/dev/null' filename when running `git grep'.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 12 May 2018 09:30:05 +0000 (10:30 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 12 May 2018 09:32:48 +0000 (10:32 +0100)
Yay.  It works again.

el/dot-emacs.el

index 24d076d2e05477c4c1fb5ccd08e9eaf33fa20a6e..77d604ce7c4dd86925ab34c081efa3d5c16bd832 100644 (file)
@@ -4016,7 +4016,8 @@ (defun git-grep (command-args)
   (interactive
    (list (read-shell-command "Run git grep (like this): "
                             git-grep-command 'git-grep-history)))
-  (grep command-args))
+  (let ((grep-use-null-device nil))
+    (grep command-args)))
 
 ;;;--------------------------------------------------------------------------
 ;;; Magit configuration.