From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <83ttvauvrj.fsf@gnu.org> References: <87zg527hlt.fsf@laptop.lockywolf.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4585"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64061@debbugs.gnu.org To: Vladimir Nikishkin , Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 14 13:30:19 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q9Ohd-0000xx-Cc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Jun 2023 13:30:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9OhR-0003T3-NW; Wed, 14 Jun 2023 07:30:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9OhP-0003SY-Ik for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2023 07:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q9OhP-0002Yt-6f for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2023 07:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q9OhP-0006t9-0h for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2023 07:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Jun 2023 11:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64061 X-GNU-PR-Package: emacs Original-Received: via spool by 64061-submit@debbugs.gnu.org id=B64061.168674218126394 (code B ref 64061); Wed, 14 Jun 2023 11:30:02 +0000 Original-Received: (at 64061) by debbugs.gnu.org; 14 Jun 2023 11:29:41 +0000 Original-Received: from localhost ([127.0.0.1]:43873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9Oh2-0006re-RG for submit@debbugs.gnu.org; Wed, 14 Jun 2023 07:29:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9Oh0-0006rQ-Gq for 64061@debbugs.gnu.org; Wed, 14 Jun 2023 07:29:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9Ogu-0002Ox-RC; Wed, 14 Jun 2023 07:29:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=FrTP0hIruDTkPUw7yn4j2U4wdq24iP7RTFQH/d3MCJo=; b=Ge+9GUsetM2Y kxzAb7j+RLAuz760jLOKmEZlsifjpBaqKyaWmNA4bpa1CzIqQTelKVJWVBe8RoDd9UVVV8A7r/hMv pYsdXZ1SkwzdY1+nVO00iTFTA1PTEHaHbAiQI0arikMUTSKnnb8TZlseF2N0MWK7C5GBDg4duT+uJ 8DqiNS/jKYoSr7z/BhZGI66TnHs6Fdi81Tc0OgoX59oUPQv1r+Pn/n+RPZCtsv9QtiJD+R6vl+5b0 bU7YZaGzwnkFrWmcSgOdebcjXeHIfBCEFv6eMo5MzkeAwrNVgZzpDVNcqGrqXnky8nhVf+dlmtoLU 6btQST4K+t0euRlHtSk/Gw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9Ogu-0003Gc-BP; Wed, 14 Jun 2023 07:29:32 -0400 In-Reply-To: <87zg527hlt.fsf@laptop.lockywolf.net> (message from Vladimir Nikishkin on Wed, 14 Jun 2023 13:06:29 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263362 Archived-At: > From: Vladimir Nikishkin > 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.