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.devel Subject: Re: Auto-revert/notify behavior changed? Date: Thu, 19 May 2022 08:03:18 +0300 Message-ID: <83czgadsh5.fsf@gnu.org> References: <87tu9mwngl.fsf@wavexx.thregr.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30793"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuri D'Elia Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 19 07:04:09 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nrYKX-0007oQ-Fa for ged-emacs-devel@m.gmane-mx.org; Thu, 19 May 2022 07:04:09 +0200 Original-Received: from localhost ([::1]:47838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrYKV-0005hF-W7 for ged-emacs-devel@m.gmane-mx.org; Thu, 19 May 2022 01:04:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrYJn-0004yx-TV for emacs-devel@gnu.org; Thu, 19 May 2022 01:03:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51128) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrYJm-0003YV-QK; Thu, 19 May 2022 01:03:22 -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=dQYfbirUd7W71gU5rB3om5XkADiZ7HAhMZuvdHXlKws=; b=fOBS8b11cJWk rMB7kcPZf97seSQE8JLLTuA2H9+wpEXc38phiJSSpVL4xmUQO/McoGvSa6qkG5YLJ8PcYPVf0j/p6 qMMkubiQ1hBJY8uMN/2iHD7sPSCsQ0we3VV1soq2ZSpltcidG1CzCIOqcAsCUXv0RX0CFgG7aLcLW svq9wjPlDCoSBxisn5clJM4GrMKzputFGBNiRBHeZoukSA2JwcwREbnF3jLR0Y6irobO0OCN3AwQh Uo7qVbD7MSDTtZUdQ9X0jLqNq4cBBngHg2o0uy7FvVx6JVnVUaP8rB7+ITy1SiFT5R2w7d+SttEPG T1DIye0Pta4alWmasP9dGQ==; Original-Received: from [87.69.77.57] (port=4179 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 1nrYJl-0002GO-Va; Thu, 19 May 2022 01:03:22 -0400 In-Reply-To: <87tu9mwngl.fsf@wavexx.thregr.org> (message from Yuri D'Elia on Wed, 18 May 2022 23:16:42 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289950 Archived-At: > From: Yuri D'Elia > Date: Wed, 18 May 2022 23:16:42 +0200 > > I'm using auto-revert-mode for a few specific files (the mode is enabled > via dir-locals.el). > > A few months ago the files were reverted pretty much instantaneously > when changes occurred on disk, as expected. > > This doesn't seem to be the case in the current master anymore despite > me not changing or seeing anything related in the latest changes in > autorevert.el. Can you be a bit more quantitative here? What is the auto-revert delays you see now, and what were they before? > Setting a shorter auto-revert-interval seems to work, which (I guess) > notifications are not working as expected, despite these buffers being > associated to boring regular files. So if you set auto-revert-avoid-polling to nil, files aren't auto-reverted at all? It is easy to check whether notifications work: e.g., use the test suite. > I double-checked my config, and emacs is always built with notification > support (inotify). > > I'm not sure where to start looking... Could it be that something in your system changed, something related to inotify?