From 5f01100afe3475bafa640343f6701d9b219ea70f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 18 Dec 2007 08:25:34 +0000 Subject: [PATCH] bname needs to be a buffer name, not a filename. --- lisp/vc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." (interactive "P") (when (and (null fname) (null buffer-file-name)) (error "No visited file")) - (let ((bname (if fname (get-file-buffer fname) buffer-file-name))) + (let ((bname (if fname (get-file-buffer fname) (current-buffer)))) (unless fname (setq fname buffer-file-name)) (when (vc-backend fname) (if (vc-registered fname) -- 2.39.2