diff options
| author | Chong Yidong | 2008-10-30 19:21:07 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-10-30 19:21:07 +0000 |
| commit | 904f87938bb93a0a93bc69e0d735e471d45aa585 (patch) | |
| tree | 0087af31241e02a265027ff4f85af0996de0b624 | |
| parent | e9048e4f011fb1d02b69be4e204996bd0999dfaf (diff) | |
| download | emacs-904f87938bb93a0a93bc69e0d735e471d45aa585.tar.gz emacs-904f87938bb93a0a93bc69e0d735e471d45aa585.zip | |
(vc-revert): Limit the length of the query string.
| -rw-r--r-- | lisp/vc.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index a6ef181c51b..a4e2b8e027f 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1868,7 +1868,12 @@ to the working revision (except for keyword expansion)." | |||
| 1868 | (unless (yes-or-no-p (format "%s seems up-to-date. Revert anyway? " file)) | 1868 | (unless (yes-or-no-p (format "%s seems up-to-date. Revert anyway? " file)) |
| 1869 | (error "Revert canceled")))) | 1869 | (error "Revert canceled")))) |
| 1870 | (when (vc-diff-internal vc-allow-async-revert vc-fileset nil nil) | 1870 | (when (vc-diff-internal vc-allow-async-revert vc-fileset nil nil) |
| 1871 | (unless (yes-or-no-p (format "Discard changes in %s? " (vc-delistify files))) | 1871 | (unless (yes-or-no-p |
| 1872 | (format "Discard changes in %s? " | ||
| 1873 | (let ((str (vc-delistify files))) | ||
| 1874 | (if (< (length str) 50) | ||
| 1875 | str | ||
| 1876 | (format "%d files" (length files)))))) | ||
| 1872 | (error "Revert canceled")) | 1877 | (error "Revert canceled")) |
| 1873 | (delete-windows-on "*vc-diff*") | 1878 | (delete-windows-on "*vc-diff*") |
| 1874 | (kill-buffer "*vc-diff*")) | 1879 | (kill-buffer "*vc-diff*")) |