Function: vc-dir-maybe-narrow-and-show-more-button
vc-dir-maybe-narrow-and-show-more-button is a byte-compiled function
defined in vc-dir.el.gz.
Signature
(vc-dir-maybe-narrow-and-show-more-button &optional TEXT)
Documentation
Handle vc-dir-process-output-limit in vc-dir-process-buffer.
TEXT is passed on to vc-dir-show-more-button.
Called by VC backend dir-status-files implementations.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-dir.el.gz
(defun vc-dir-maybe-narrow-and-show-more-button (&optional text)
"Handle `vc-dir-process-output-limit' in `vc-dir-process-buffer'.
TEXT is passed on to `vc-dir-show-more-button'.
Called by VC backend `dir-status-files' implementations."
(when (and (natnump vc-dir-process-output-limit)
(> (buffer-size) vc-dir-process-output-limit))
(narrow-to-region (point-min)
(save-excursion
(goto-char (+ (point-min)
vc-dir-process-output-limit))
(pos-bol)))
(with-current-buffer vc-parent-buffer
(vc-dir-show-more-button text))))