Re: master 268e055e051: Limit VC-Dir status process output processing

Dmitry Gutov <[email protected]>
Newsgroups gmane.emacs.devel
Message-ID <[email protected]>
On 14/08/2026 14:01, Sean Whitton wrote:
> Sorry about that.  How about this:

This looks reasonable as far as workarounds go. Thanks.

Though maybe a cleaner approach would be not to call 
vc-dir-maybe-narrow-and-show-more-button directly in the 
dir-status-files implementations, but have a new hook which vc-dir would 
set up.

Or a similar separate "output limit" variable which would be honored by 
the backends if set, instead of a hook.

> diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el
> index d75dce77493..d0711da91c8 100644
> --- a/lisp/vc/vc-dir.el
> +++ b/lisp/vc/vc-dir.el
> @@ -1801,7 +1801,10 @@ vc-dir-maybe-narrow-and-show-more-button
>   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))
> +             (> (buffer-size) vc-dir-process-output-limit)
> +             vc-parent-buffer
> +             (with-current-buffer vc-parent-buffer
> +               (derived-mode-p 'vc-dir-mode)))
>       (narrow-to-region (point-min)
>                         (save-excursion
>                           (goto-char (+ (point-min)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.