GNU bug report logs - #64061
30.0.50; auto-revert-mode is not working for files with symlinked directories in path

Previous Next

Package: emacs;

Reported by: Vladimir Nikishkin <lockywolf <at> gmail.com>

Date: Wed, 14 Jun 2023 05:13:02 UTC

Severity: wishlist

Merged with 16113, 18883, 65904

Found in versions 24.3.50, 24.4, 29.1.50, 30.0.50

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Vladimir Nikishkin <lockywolf <at> gmail.com>, 64061 <at> debbugs.gnu.org
Subject: bug#64061: 30.0.50; auto-revert-mode is not working for files with symlinked directories in path
Date: Fri, 16 Jun 2023 10:17:06 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

Hi,

>> cd /tmp/
>> mkdir foo
>> ln -s foo bar
>> touch bar/test.txt
>> emacs bar/test.txt &
>> in emacs: M-x auto-revert-mode RET
>> then in bash
>> echo "test001" >> bar/test.txt
>>
>> Emacs will never see those changes and will not revert the buffer.
>> However, opening foo/text.txt does not have this problem.
>>
>> I tried inotifywait -m on both foo/text.txt, and on bar/text.txt, and
>> both seem to receive editing events as they should.
>
> Emacs watches the directory of the file, not the file itself.  Does
> inotify report events when you watch the directory of that file?  Does
> auto-revert-mode work for that file if you disable
> auto-revert-use-notify?
>
> I'm guessing inotify doesn't report such directories, or reports them
> under a name we don't recognize, which would mean that we need another
> condition for not activating file-watch for files whose directory is a
> symlink.

This is a duplicate of bug#16113 and bug#18883, I've merged them with
this bug. I'll see whether I could work on this next time (matter of time).

Best regards, Michael.




This bug report was last modified 1 year and 274 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.