From: Michael Albinus <michael.albinus@gmx.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Vladimir Nikishkin <lockywolf@gmail.com>, 64061@debbugs.gnu.org
Subject: bug#64061: 30.0.50; auto-revert-mode is not working for files with symlinked directories in path
Date: Fri, 16 Jun 2023 10:17:06 +0200 [thread overview]
Message-ID: <87bkhfes8t.fsf@gmx.de> (raw)
In-Reply-To: <83ttvauvrj.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Jun 2023 14:29:52 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
Hi,
>> 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 is a duplicate of bug#16113 and bug#18883, I've merged them with
this bug. I'll see whether I could work on this next time (matter of time).
Best regards, Michael.
prev parent reply other threads:[~2023-06-16 8:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-14 5:06 bug#64061: 30.0.50; auto-revert-mode is not working for files with symlinked directories in path Vladimir Nikishkin
2023-06-14 11:29 ` Eli Zaretskii
2023-06-16 8:17 ` Michael Albinus [this message]
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=87bkhfes8t.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=64061@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=lockywolf@gmail.com \
/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).