unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Vladimir Nikishkin <lockywolf@gmail.com>,
	Michael Albinus <michael.albinus@gmx.de>
Cc: 64061@debbugs.gnu.org
Subject: 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	[thread overview]
Message-ID: <83ttvauvrj.fsf@gnu.org> (raw)
In-Reply-To: <87zg527hlt.fsf@laptop.lockywolf.net> (message from Vladimir Nikishkin on Wed, 14 Jun 2023 13:06:29 +0800)

> From: Vladimir Nikishkin <lockywolf@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.





  reply	other threads:[~2023-06-14 11:29 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 [this message]
2023-06-16  8:17   ` 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=83ttvauvrj.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=64061@debbugs.gnu.org \
    --cc=lockywolf@gmail.com \
    --cc=michael.albinus@gmx.de \
    /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).