GNU bug report logs - #65904
29.1.50; autorevert can't revert files in a symlink directory

Previous Next

Package: emacs;

Reported by: Zhang Haijun <ccsmile2008 <at> outlook.com>

Date: Wed, 13 Sep 2023 04:01:02 UTC

Severity: wishlist

Merged with 16113, 18883, 64061

Found in versions 24.3.50, 24.4, 29.1.50, 30.0.50

Full log


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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: zhanghj <ccsmile2008 <at> outlook.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 65904 <at> debbugs.gnu.org
Subject: Re: bug#65904: 29.1.50; autorevert can't revert files in a symlink
 directory
Date: Thu, 14 Sep 2023 13:58:05 +0200
[Message part 1 (text/plain, inline)]
zhanghj <ccsmile2008 <at> outlook.com> writes:

Hi,

> How does it work in Emacs 26/27? Why don't you let it keep the old behavior?

That time, it was unspecified, whether symlinked files/directories are
watched. Some file notification backends did, other backends didn't. In
Emacs 29, this was clarified, see (info "(elisp) File Notifications")

--8<---------------cut here---------------start------------->8---
     If FILE is a symlink, it doesn’t follow that link.  Just FILE
     itself will be watched.
--8<---------------cut here---------------end--------------->8---

There is the idea to add a new flag to the `file-notify-add-watch'
function, `follow'. This would allow to follow symlinks, with different
implementations in the different backends. Buth this hasn't been
implemented yet.

If you need this feature urgently in inotify (I guess you're using this
backend), try the appended patch in filenotify.el (untested).

Best regards, Michael.

[Message part 2 (text/x-patch, attachment)]

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

Previous Next


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