Skip to content

Commit

Permalink
* helm-grep.el (helm-c-grep-init): Use helm-process-deferred-sentinel…
Browse files Browse the repository at this point in the history
…-hook.

(helm-do-grep-1): Remove idle delay setting in helm args.
  • Loading branch information
thierryvolpiatto committed Jan 31, 2013
1 parent 0cd6a4a commit c3de5b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helm-grep.el
Expand Up @@ -354,6 +354,9 @@ It is intended to use as a let-bound variable, DON'T set this globaly.")
(get-process "grep")
#'(lambda (process event)
(let ((noresult (= (process-exit-status process) 1)))
(unless noresult
(helm-process-deferred-sentinel-hook
process event helm-ff-default-directory))
(cond ((and noresult
;; [FIXME] This is a workaround for zgrep
;; that exit with code 1
Expand Down Expand Up @@ -836,9 +839,6 @@ in recurse, search being made on `helm-zgrep-file-extension-regexp'."
(delayed)))
:buffer (format "*helm %s*" (if zgrep "zgrep" "grep"))
:keymap helm-c-grep-map ; [1]
:input-idle-delay (if (and helm-ff-default-directory
(file-remote-p helm-ff-default-directory))
3 helm-input-idle-delay)
:history 'helm-c-grep-history)))


Expand Down

0 comments on commit c3de5b6

Please sign in to comment.