diff options
| -rw-r--r-- | lisp/vc/vc.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 211feddc55d..b1599915007 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -2422,6 +2422,8 @@ When called interactively with a prefix argument, prompt for REMOTE-LOCATION." | |||
| 2422 | (file buffer-file-name) | 2422 | (file buffer-file-name) |
| 2423 | (backend (vc-backend file)) | 2423 | (backend (vc-backend file)) |
| 2424 | (buf (get-buffer-create "*VC-history*"))) | 2424 | (buf (get-buffer-create "*VC-history*"))) |
| 2425 | (unless backend | ||
| 2426 | (error "Buffer is not version controlled")) | ||
| 2425 | (with-current-buffer buf | 2427 | (with-current-buffer buf |
| 2426 | (setq-local vc-log-view-type 'long)) | 2428 | (setq-local vc-log-view-type 'long)) |
| 2427 | (vc-call region-history file buf lfrom lto) | 2429 | (vc-call region-history file buf lfrom lto) |