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: Andrii Kolomoiets
Subject: bug#44420: 28.0.50; vc-register, under vc-dir buffer, says file already registered
Date: Thu, 05 Nov 2020 10:05:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin)

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> Andrii Kolomoiets <andreyk.mad@gmail.com> writes:
>
>> See docstring of the `vc-deduce-fileset`:
>>
>>   If the current buffer is in `vc-dir' or Dired mode, FILESET is the
>>   list of marked files, or the current directory if no files are
>>   marked.
>
> Got it. But the second clause `or the current directory if no files are
> marked' is not accurate. Because in that case `i' (vc-register) works if
> the point is on an untracked item.

Indeed.

> Wait... is `vc-deduce-fileset' relevant for `vc-register'? I don't
> know.

Yes.  `vc-register` is calling `vc-deduce-fileset` right after `interactive`.

>> Including file name in the "File already registered" message may help to
>> understand whats going on though.
>
> This could be a long list. We can just say "Marked file(s) already
> registered".

Files in the list are checked one by one and error is returned for the
first registered file.  IMO filename will fit well in the error message.





reply via email to

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