Skip to content

Commit

Permalink
* helm-grep.el (helm-c-grep-init): Fix grepping remote files; Thanks …
Browse files Browse the repository at this point in the history
…to Michael Albinus.

`start-file-process-shell-command' should be called with a buffer, not nil.
  • Loading branch information
thierryvolpiatto committed Jul 17, 2012
1 parent c73494f commit ff7596a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helm-grep.el
Expand Up @@ -209,7 +209,7 @@ See `helm-c-grep-default-command' for format specs.")
(insert (concat ">>> " cmd-line "\n\n"))))
(prog1 ; Start grep process.
(let ((default-directory helm-ff-default-directory))
(start-file-process-shell-command "grep-process" nil cmd-line))
(start-file-process-shell-command "grep-process" (current-buffer) cmd-line))
(helm-log "Start Grep process")
(setq mode-line-format
'(" " mode-line-buffer-identification " "
Expand Down Expand Up @@ -711,7 +711,8 @@ If a prefix arg is given run grep on all buffers ignoring non--file-buffers."
'face '((:foreground "red"))))))
(prog1
(let ((default-directory helm-ff-default-directory))
(start-file-process-shell-command "pdfgrep-process" nil cmd-line))
(start-file-process-shell-command "pdfgrep-process"
(current-buffer) cmd-line))
(message nil)
(set-process-sentinel
(get-process "pdfgrep-process")
Expand Down

0 comments on commit ff7596a

Please sign in to comment.