emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8dab619: Mention which exact file is already registered


From: Dmitry Gutov
Subject: master 8dab619: Mention which exact file is already registered
Date: Sun, 8 Nov 2020 07:03:20 -0500 (EST)

branch: master
commit 8dab61958daa8973ab8e7d7d2f829cc2ea4c8f8a
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Mention which exact file is already registered
    
    * lisp/vc/vc.el (vc-register):
    Mention which exact file is already registered (bug#44420).
---
 lisp/vc/vc.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 8def7da..32664bc 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1391,7 +1391,7 @@ first backend that could register the file is used."
        (unless fname
          (setq fname buffer-file-name))
        (when (vc-call-backend backend 'registered fname)
-         (error "This file is already registered"))
+         (error "This file is already registered: %s" fname))
        ;; Watch out for new buffers of size 0: the corresponding file
        ;; does not exist yet, even though buffer-modified-p is nil.
        (when bname



reply via email to

[Prev in Thread] Current Thread [Next in Thread]