Subject: bug#21535: 25.0.50; vc-follow-symlinks=ask is ineffective for directory links

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 03 Dec 2020 12:01:54 +0100

Johan Bockgård <[email-masked]> writes:

> When `vc-follow-symlinks' is `ask' (the default) Emacs follows links for
> files under version control, but fails to ask before doing so when any
> parent directory is a symlink.
>
> E.g.
> /x/y/link  (asks)
> /x/link/z  (doesn't ask)
>
> The following commit changed two occurrences of `file-chase-links' to
> `buffer-file-truename' in vc-hooks.el. A third occurrence of
> file-chase-links was left alone however, which fools the querying logic
> for files where the directory part of the name contains symlinks.

(This bug report unfortunately got no response at the time.)

Some work has been done on vc/symlinks since this bug was reported, so
this may or may not have been fixed in the development version of
Emacs.  Are you still seeing this there?

If so, could you provide a script that sets up a directory structure
that demonstrates the bug?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no