bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#44420: 28.0.50; vc-register, under vc-dir buffer, says file already


From: Pankaj Jangid
Subject: bug#44420: 28.0.50; vc-register, under vc-dir buffer, says file already registered
Date: Sun, 08 Nov 2020 08:28:40 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin)

Dmitry Gutov <dgutov@yandex.ru> writes:

> Does this work for y'all?
>
> diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
> index 8def7da377..32664bcd25 100644
> --- a/lisp/vc/vc.el
> +++ b/lisp/vc/vc.el
> @@ -1391,7 +1391,7 @@ vc-register
>       (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

Yes. This is fine. User can then take action accordingly.






reply via email to

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