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


Message #8 received at 64061 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Vladimir Nikishkin <lockywolf <at> gmail.com>,
 Michael Albinus <michael.albinus <at> gmx.de>
Cc: 64061 <at> debbugs.gnu.org
Subject: Re: 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 <at> 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.




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.