emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#35418: closed ([PATCH] Don't poll auto-revert file


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#35418: closed ([PATCH] Don't poll auto-revert files that use notification)
Date: Mon, 20 May 2019 19:20:02 +0000

Your message dated Mon, 20 May 2019 21:19:37 +0200
with message-id <address@hidden>
and subject line Re: bug#35418: [PATCH] Don't poll auto-revert files that use 
notification
has caused the debbugs.gnu.org bug report #35418,
regarding [PATCH] Don't poll auto-revert files that use notification
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
35418: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35418
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] Don't poll auto-revert files that use notification Date: Wed, 24 Apr 2019 20:14:46 +0200
It is a waste of power, on battery-powered devices in particular, to poll files 
in auto-revert mode periodically when change notification is used. The change 
is straightforward (attached patch); the main concern is whether the 
notification system is reliable enough.

In general, it probably is. There is a comment in w32notify.c about SMB-mounted 
file systems from Samba servers; while Samba does support notification 
nowadays, there are probably older systems still be deficient in that regard. 
However, isn't this what `auto-revert-notify-exclude-dir-regexp' is for? I'm 
not familiar with the way Emacs is used on Windows, but would adding something 
like

 (rx bos
     (or "\\\\" "//")
     (one-or-more (not (any "/:\\")))
     (any "/\\"))

to `auto-revert-notify-exclude-dir-regexp' be a good start?

Another note about what this patch does not do: global-auto-revert-mode will 
still use polling. This could be added later on, if there is a good place to 
hook into for buffer creation.

Attachment: 0001-Don-t-poll-auto-revert-files-that-use-notification.patch
Description: Binary data


--- End Message ---
--- Begin Message --- Subject: Re: bug#35418: [PATCH] Don't poll auto-revert files that use notification Date: Mon, 20 May 2019 21:19:37 +0200
20 maj 2019 kl. 09.30 skrev Michael Albinus <address@hidden>:
> 
> From my POV, the patch is fine, and could be committed. Whether it is
> successful will be told us by emba.gnu.org (and hydra.nixos.org).

Thanks for your diligence and patience; closing.



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]