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

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

bug#65904: 29.1.50; autorevert can't revert files in a symlink directory


From: zhanghj
Subject: bug#65904: 29.1.50; autorevert can't revert files in a symlink directory
Date: Wed, 13 Sep 2023 21:12:30 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0

Do you mean that the test file itself is a symlink file?

In my case, the test file itself is a normal file. But its parent directory is a symlink.

I just tested:  'file-symlink-p' return nil for the test file.


On 9/13/23 20:56, Eli Zaretskii wrote:
From: Zhang Haijun <ccsmile2008@outlook.com>
Date: Wed, 13 Sep 2023 03:55:15 +0000


It works in Emacs 26/27, But it doesn't work in Emacs 29.

0. emacs -Q
1. use the following code to open an existing file in a symlink directory
(progn
   (setq auto-revert-use-notify t
            auto-revert-interval 3)
   (global-auto-revert-mode 1)
   (setq find-file-hook (delq 'vc-refresh-state find-file-hook))
   (find-file "~/symlink_dir/test.txt"))

2. modify the test file in external program and save
3. emacs doesn't autorevert the file
AFAICT, we don't support autoreverting symlinks, since Dec 2013, so it
sounds strange that you say it worked in Emacs 27.

The relevant discussion is here:

   https://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00282.html

The reason for this non-support seems to be performance.

I hope Michael (CC'ed) will be able to tell more about this.

A workaround is to set auto-revert-use-notify to nil.





reply via email to

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