Permalink
Browse files

* helm-regexp.el (helm-c-source-moccur): Update delayed attr when mod…

…ifying helm-m-occur-idle-delay.

* helm-grep.el: Add comment.
  • Loading branch information...
1 parent fb3195d commit 517b7291e0edc1686d059c96495ad9f2b13f665a @thierryvolpiatto thierryvolpiatto committed Aug 20, 2012
Showing with 6 additions and 2 deletions.
  1. +4 −1 helm-grep.el
  2. +2 −1 helm-regexp.el
View
@@ -673,7 +673,10 @@ in recurse, search beeing made on `helm-zgrep-file-extension-regexp'."
(defun helm-c-grep-split-line (line)
"Split a grep output line."
- ;; Don't print until grep line is valid.
+ ;; The output of grep may send a truncated line in this chunk,
+ ;; so don't split until grep line is valid, that is
+ ;; once the second part of the line comes with next chunk
+ ;; send by process.
(when (string-match "^\\(.*\\):\\([0-9]+\\):\\(.*\\)" line)
;; Don't use split-string because buffer/file name or string
;; may contain a ":".
View
@@ -266,7 +266,8 @@ arg METHOD can be one of buffer, buffer-other-window, buffer-other-frame."
(defvar helm-c-source-moccur
`((name . "Moccur")
(init . (lambda ()
- (helm-m-occur-init buffers)))
+ (helm-m-occur-init buffers)
+ (helm-attrset 'delayed helm-m-occur-idle-delay)))
(candidates-in-buffer)
(filtered-candidate-transformer . helm-m-occur-transformer)
(nohighlight)

0 comments on commit 517b729

Please sign in to comment.