From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: zhanghj Newsgroups: gmane.emacs.bugs Subject: bug#65904: 29.1.50; autorevert can't revert files in a symlink directory Date: Wed, 13 Sep 2023 22:16:23 +0800 Message-ID: References: <83cyymnsg4.fsf@gnu.org> <87fs3ib3k1.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12281"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Cc: 65904@debbugs.gnu.org To: Michael Albinus , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 13 16:17:14 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 1qgQg5-0002zQ-Jq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Sep 2023 16:17:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgQfq-0001uU-Ju; Wed, 13 Sep 2023 10:16:58 -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 1qgQfo-0001tf-RS for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 10:16:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgQfo-0007K8-J4 for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 10:16:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgQft-000188-QJ for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 10:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: zhanghj Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Sep 2023 14:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65904 X-GNU-PR-Package: emacs Original-Received: via spool by 65904-submit@debbugs.gnu.org id=B65904.16946146064315 (code B ref 65904); Wed, 13 Sep 2023 14:17:01 +0000 Original-Received: (at 65904) by debbugs.gnu.org; 13 Sep 2023 14:16:46 +0000 Original-Received: from localhost ([127.0.0.1]:35505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgQfd-00017W-NM for submit@debbugs.gnu.org; Wed, 13 Sep 2023 10:16:46 -0400 Original-Received: from mail-os0jpn01olkn2091.outbound.protection.outlook.com ([40.92.98.91]:61766 helo=JPN01-OS0-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgQfb-00017H-52 for 65904@debbugs.gnu.org; Wed, 13 Sep 2023 10:16:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nIUyjqcz8Pax+uXynrZRHFstCzmlL8GUuNN5+95oHfCzTTwjiIy7Bm59a/NUyP6ppgz0c6RIvE5R6eiz+RzmA7vNPoHQr9O5K1o/w74yXmPt6wFME6q9iePDcYLIMymej8h0O0uFtEWBHpTHfL8zckrZHPdyvGVrAm+wUywYMkUa3Uh4ZI40RmOJlfePMw1yH7HIvC5ayXZ8HxHRq129ca/f6Cn0ZwdwQh/8obJJ+Gh8PupiOsDjFl59ip3PbLxl33IqaQoN3u5EqZ+bK8Bok+UiLQxVASPwO/xsgcp7VQgVEQSeHjdoH5eO2PjtRsy5x39sXkAsv+NbG+kBcxaUlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TLQyVlPp/xVvSAVtghB1FboAFnHOXVM+vew0JtZBhbM=; b=Z4BijIQIBMGrSoxEX/3lngFsMnysJXv9I+Sl2CCSV1ooeiWgQ01soIPhHs8P1Ssf2u4PW730smExmVUgzNnY6/rXBMQ1SW5ojEo0fHnCqFGRSKSUPZ28wKNAVQOk9C/5GvbOCbdX4A75LhOl4mRmy7D3fvHMGwZnCc/cpURIvHg4HMUMwOhQNh0IvV6M/Iqb7IZE2QmPuthTgG0S1ff8khAHJ8cq9I/uy7LKxgg4lW2Q6LYYjqq3IedWLvCaGIUE1TIAbJy7cW2qWOcgNv2L9yszVqjTjcVRkg7IwjQeCdacMsLQKUSaNi/MiOTtCrT+cT5MHIh4g/ZbPeEoz4gcYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TLQyVlPp/xVvSAVtghB1FboAFnHOXVM+vew0JtZBhbM=; b=m8qOJOFOntGZx7IyBMg6xnAbJ8+X0VjFhu5VKPASGUNcdi2J6Rv6EfEMk56oQkD4gEBKWz+pM/Zetq2Lc7DIlqHDhUrU8p+x3AZgkrMjOH0Z8MEaA1S4NzQmhWxMKYEpgmMVRPFto+7dX8CEKFZPS+qBl4v19/e+sze3QCbPznQFgoRSiFJhyrER04gFKbWRix9ndD/dYbDKkTNjLnQCKaSfmB32IOwLEeWGIrHmwFwwgc/vnqMkUJsjM+ZirqnGanK/WrD9RYJLVAMAtYLEyjcu8SGvi1Txui8/Ka5eqBVHWHPEUYvlxLaFwOFTtNlgzEvHRs8D1aPPkhvgBIO1Vg== Original-Received: from OS3P286MB2199.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:19f::13) by TY3P286MB2689.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:254::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.20; Wed, 13 Sep 2023 14:16:30 +0000 Original-Received: from OS3P286MB2199.JPNP286.PROD.OUTLOOK.COM ([fe80::97c3:1179:f612:ab7b]) by OS3P286MB2199.JPNP286.PROD.OUTLOOK.COM ([fe80::97c3:1179:f612:ab7b%3]) with mapi id 15.20.6792.020; Wed, 13 Sep 2023 14:16:30 +0000 Content-Language: en-US In-Reply-To: <87fs3ib3k1.fsf@gmx.de> X-TMN: [9HlKL/6gTdVbWqzH3jckKYRiehiouxJuwpNNiAloayA8YpCby0cLcNJjUZVAlqMg] X-ClientProxiedBy: SE2P216CA0033.KORP216.PROD.OUTLOOK.COM (2603:1096:101:116::19) To OS3P286MB2199.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:19f::13) X-Microsoft-Original-Message-ID: X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3P286MB2199:EE_|TY3P286MB2689:EE_ X-MS-Office365-Filtering-Correlation-Id: 682d70b0-1739-476f-88c9-08dbb4640677 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2u9VIUz9PNiHJNv68s1X88WwWyP532PhRFgQfg8rMl6KaYvYo4KqXwcZIc5tLu90zD0y7xENGXDFcs5hOEfF+G7dJ763/5vKD1vh3UrnQ+8ELrD9wqT2MLla3tptlI/irrx7OKn78j2aQwRCK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GeEuytmprgLH+Rei2X7vyJAyJGo9fIa/21N7v47yFms87CNVSna80fSGlah5xz3MnkfMFrZ3I5ebnl7HuHUfLWQNkUyxOvMwEZCOmman9ER7URa0CGb2IZg8/1V5CCh/mnDUMxXsLmn4LjvWJ22xln+C8tsNQJ5UZ1ETv3xcMph2lcAB6xNKYMdnCebaC3wMIeMtHTJqs/u2cUrSk1Bd/Ep7grKZ3si+TWS8j7 v8OXYNIAr6J7FlM19ppWXyR/XZbguSPj9neP8fabH4HkjpTMreoWiKebQ+duPIEFGuP6K41ptb6/fV1gajAlQVg7ewpiM1lLQa X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 682d70b0-1739-476f-88c9-08dbb4640677 X-MS-Exchange-CrossTenant-AuthSource: OS3P286MB2199.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2023 14:16:30.3055 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3P286MB2689 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:270291 Archived-At: How does it work in Emacs 26/27? Why don't you let it keep the old behavior? I just tried again with the following test code(with auto-revert-interval be a big value). There was a long delay(about 30s) before the first reverting. But the following ones were instant. (progn   (setq auto-revert-use-notify t         auto-revert-interval 30)   (global-auto-revert-mode 1)   (setq find-file-hook (delq 'vc-refresh-state find-file-hook))   (find-file "~/symlink_dir/abc.txt")) On 9/13/23 21:33, Michael Albinus wrote: > Eli Zaretskii 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.