(set (make-local-variable 'vlf-batch-size) batch-size)
(vlf-mode 1)
(goto-char (point-min))
+ (run-hook-with-args 'vlf-before-batch-functions 'occur)
(vlf-with-undo-disabled
- (vlf-build-occur regexp vlf-buffer))))
+ (vlf-build-occur regexp vlf-buffer))
+ (run-hook-with-args 'vlf-after-batch-functions 'occur)))
+ (run-hook-with-args 'vlf-before-batch-functions 'occur)
(let ((start-pos vlf-start-pos)
(end-pos vlf-end-pos)
(pos (point)))
(goto-char (point-min))
(unwind-protect (vlf-build-occur regexp (current-buffer))
(vlf-move-to-chunk start-pos end-pos)
- (goto-char pos))))))
+ (goto-char pos))))
+ (run-hook-with-args 'vlf-after-batch-functions 'occur)))
(defun vlf-build-occur (regexp vlf-buffer)
"Build occur style index for REGEXP over VLF-BUFFER."
- (let ((tramp-verbose (min 2 tramp-verbose))
+ (let ((tramp-verbose (if (boundp 'tramp-verbose)
+ (min tramp-verbose 2)))
(case-fold-search t)
(line 1)
(last-match-line 0)