bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64061: 30.0.50; auto-revert-mode is not working for files with symli


From: Eli Zaretskii
Subject: bug#64061: 30.0.50; auto-revert-mode is not working for files with symlinked directories in path
Date: Wed, 14 Jun 2023 14:29:52 +0300

> From: Vladimir Nikishkin <lockywolf@gmail.com>
> Date: Wed, 14 Jun 2023 13:06:29 +0800
> 
> 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.





reply via email to

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