diff options
| -rw-r--r-- | lisp/vc.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 995bcc25692..9757161b7ad 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1553,7 +1553,7 @@ first backend that could register the file is used." | |||
| 1553 | (interactive "P") | 1553 | (interactive "P") |
| 1554 | (when (and (null fname) (null buffer-file-name)) (error "No visited file")) | 1554 | (when (and (null fname) (null buffer-file-name)) (error "No visited file")) |
| 1555 | 1555 | ||
| 1556 | (let ((bname (if fname (get-file-buffer fname) buffer-file-name))) | 1556 | (let ((bname (if fname (get-file-buffer fname) (current-buffer)))) |
| 1557 | (unless fname (setq fname buffer-file-name)) | 1557 | (unless fname (setq fname buffer-file-name)) |
| 1558 | (when (vc-backend fname) | 1558 | (when (vc-backend fname) |
| 1559 | (if (vc-registered fname) | 1559 | (if (vc-registered fname) |