# HG changeset patch # User Chong Yidong # Date 1225394467 0 # Node ID bc878f998f434a4572e516e02ce3be83cde4a62a # Parent 75097d31c6e65cfb76238fc8757a03fbd39bc940 (vc-revert): Limit the length of the query string. diff -r 75097d31c6e6 -r bc878f998f43 lisp/vc.el --- a/lisp/vc.el Thu Oct 30 19:20:46 2008 +0000 +++ b/lisp/vc.el Thu Oct 30 19:21:07 2008 +0000 @@ -1868,7 +1868,12 @@ (unless (yes-or-no-p (format "%s seems up-to-date. Revert anyway? " file)) (error "Revert canceled")))) (when (vc-diff-internal vc-allow-async-revert vc-fileset nil nil) - (unless (yes-or-no-p (format "Discard changes in %s? " (vc-delistify files))) + (unless (yes-or-no-p + (format "Discard changes in %s? " + (let ((str (vc-delistify files))) + (if (< (length str) 50) + str + (format "%d files" (length files)))))) (error "Revert canceled")) (delete-windows-on "*vc-diff*") (kill-buffer "*vc-diff*"))