Re: master 1d91d9b717d: project-vc-dir: Use truenames

João Távora <[email protected]>
Newsgroups gmane.emacs.devel
Message-ID <CALDnm518B601fux=KspRwTXALiZ-ayrUQMXBidp2+dYrR8J0Nw@mail.gmail.com>
On Fri, Jul 24, 2026, 03:51 Dmitry Gutov <[email protected]> wrote:

> Hi,
>
> On 23/07/2026 19:42, João Távora wrote:
> >
> > under which it does. Maybe the fact that it fooled two programmers
> > already justifies a comment?
>
> Anyway, how about this? Does it feel a bit repeating itself? I would
> rather remove the last sentence but as the author I'm probably not the
> best judge for that.
>
>
> -    ;;
> -                                       nil))
> +    (let ((dir (read-directory-name "VC status for directory: "
> +                                    (vc-root-dir) nil t
> +                                    nil))
> +          truename)
> +      ;; Try to match the result of `vc-refresh-state' in a file buffer.
> +      ;; Otherwise if you do C-x v d -> C-x C-f -> C-x v d you may get a
> +      ;; new *vc-dir* buffer, different from the original.
> +      ;; We use the truename if the DIR has no VC backend detected, but
> +      ;; its truename differs, and has a VC backend.


If I follow correctly,  this is the grammatically simpler:

"If DIR has no VC backend but its truename does, use that instead of DIR."

Right? If so, then I think it's an improvement. Except I don't understand
when it can ever be true, but that's my fault for not understanding the
precise semantics of "having a VC backend", and explaining those probably
has no place in this comment.

João
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.