unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 65904@debbugs.gnu.org, Zhang Haijun <ccsmile2008@outlook.com>
Subject: bug#65904: 29.1.50; autorevert can't revert files in a symlink directory
Date: Wed, 13 Sep 2023 15:33:50 +0200	[thread overview]
Message-ID: <87fs3ib3k1.fsf@gmx.de> (raw)
In-Reply-To: <83cyymnsg4.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 13 Sep 2023 15:55:23 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

Hi,

>> 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.

Yes, we don't support autorevert of files in a symlinked directory via
file notifications. There are other bugs with the same topic, see
bug#16113, bug#18883 and bug#64061. I'll merge this bug with the other
ones.

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

Yep.

Best regards, Michael.





  parent reply	other threads:[~2023-09-13 13:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-13  3:55 bug#65904: 29.1.50; autorevert can't revert files in a symlink directory Zhang Haijun
2023-09-13 12:55 ` Eli Zaretskii
2023-09-13 13:12   ` zhanghj
2023-09-13 13:28     ` Eli Zaretskii
2023-09-13 13:33   ` Michael Albinus [this message]
2023-09-13 14:16     ` zhanghj
2023-09-14 11:58       ` Michael Albinus
2023-09-18 21:08         ` zhanghj
2023-09-19  7:18           ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fs3ib3k1.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=65904@debbugs.gnu.org \
    --cc=ccsmile2008@outlook.com \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).