GNU bug report logs -
#11912
24.1; 'M' in Dired on a symlink does not refresh the display
Previous Next
Full log
Message #10 received at 11912 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> On a system that supports symlinks, do this:
>
> emacs -Q
> C-x d RET
>
> Go to any file and type
>
> S foobar RET
>
> This creates a symlink named 'foobar' to the file on whose line you
> were when you typed S. Now go to the line of 'foobar' and type this:
>
> M 0444 RET
>
> Emacs says "Redisplaying...done", but the mode bits of the target of
> the symlink do not reflect the change. Type 'g', and they will.
>
>>From a cursory look at the code (dired-do-redisplay), it sounds like
> Dired assumes that the file to be refreshed is necessarily on the
> current line (or marked). This is false for symlinks and the 'M'
> command (and probably a few others, like 'O'), because the file that
> changes is the target of the symlink.
>
> I think this bug was in Emacs since about forever; I tried as far back
> as Emacs 22.1, and the problem was still there.
hi,
I can reproduce this in 27.1 but in 28.0.50 i get the following message:
Doing chmod: Operation not supported, /tmp/foobar
chmod on the symlinked file itself works ("Redisplaying..." too)
perhaps this functionality was disabled/removed for symlinks on purpose?
or is it a new bug?
Michalis
This bug report was last modified 3 years and 322 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.