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#53432: [PATCH] Avoid losing keyboard input when inotify is too busy [and 1 more messages] Date: Sun, 23 Jan 2022 07:50:47 +0200 Message-ID: <83y237knk8.fsf@gnu.org> References: <25067.17249.604070.872185@chiark.greenend.org.uk> <838rv8nua8.fsf@gnu.org> <87r190wqo1.fsf@yahoo.com> <25068.23625.512978.147194@chiark.greenend.org.uk> <8335lfmu0q.fsf@gnu.org> <7c4167fc-6c60-5888-cd16-6c6bd4ad210d@yandex.ru> <87o843rwwk.fsf@yahoo.com> <87k0errwl6.fsf@yahoo.com> <9a0d361b-b052-f613-8279-624c2c8b16be@yandex.ru> <87fspfrv35.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16827"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53432@debbugs.gnu.org, ijackson@chiark.greenend.org.uk, dgutov@yandex.ru To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 23 06:52:28 2022 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 1nBVnf-0004DS-SX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 06:52:28 +0100 Original-Received: from localhost ([::1]:46642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBVne-0001fO-OZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 00:52:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBVnG-0001fE-D5 for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 00:52:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45509) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBVnG-0000W1-0O for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 00:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBVnF-0005GZ-Ky for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 00:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jan 2022 05:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53432 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 53432-submit@debbugs.gnu.org id=B53432.164291708520197 (code B ref 53432); Sun, 23 Jan 2022 05:52:01 +0000 Original-Received: (at 53432) by debbugs.gnu.org; 23 Jan 2022 05:51:25 +0000 Original-Received: from localhost ([127.0.0.1]:38412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBVmf-0005Ff-8y for submit@debbugs.gnu.org; Sun, 23 Jan 2022 00:51:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBVmc-0005FQ-Vy for 53432@debbugs.gnu.org; Sun, 23 Jan 2022 00:51:24 -0500 Original-Received: from [2001:470:142:3::e] (port=37280 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBVmM-0000Oe-C7; Sun, 23 Jan 2022 00:51:13 -0500 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=AT8cOh6v34BrUJqI5pJsXGaGuVkvFYYqtipMFa1NJT4=; b=QKI2x2B2CAJP jxKiO6whD0w9iFJN/dvs1k/BrWPB/4N21i5NteuruJ13fEh4C3tcjkFQUYVITKSQR3l4poqj7fMPy 1OOB8FyY6sXU/szBL/ugqqdKH+IIEGIE4WJVzbhUjHO9TIUEFRsvUKWSBDCeCeGqBq7Ahs4QK6h+k QDRVfbGquMG/KfPCO4/rqEkSp6yO1rLHSy5h3wGCb8KvJLJPPF5Tv+g87dhtzejG5lBn6PNunFJJy L/MvredS4QyWq/kwQVOTChyC8Gs9hNeOZUc6kfvXSE9Jl/hrfxM0RpHwhv0muv5aSIAsjnyzg+H9h N7VMxlwqkWt3ayUkjb3csw==; Original-Received: from [87.69.77.57] (port=2825 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 1nBVmK-00065N-8n; Sun, 23 Jan 2022 00:51:05 -0500 In-Reply-To: <87fspfrv35.fsf@yahoo.com> (message from Po Lu on Sun, 23 Jan 2022 11:26:22 +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" Xref: news.gmane.io gmane.emacs.bugs:224888 Archived-At: > From: Po Lu > Cc: Eli Zaretskii , Ian Jackson > , 53432@debbugs.gnu.org > Date: Sun, 23 Jan 2022 11:26:22 +0800 > > Dmitry Gutov writes: > > > Is it? There are only two references to auto-revert-use-notify in > > autorevert.el, and neither changes that var. > > > > Also see: > > > > etc/NEWS.25 > > 1108:*** 'auto-revert-use-notify' is set to nil in > > 'global-auto-revert-mode'. > > > > etc/NEWS.26 > > 1070:** 'auto-revert-use-notify' is set back to t in > > 'global-auto-revert-mode'. > > > > The latter coming with commit 484967796755051c4045cdcc26b0d3d129cc72ad. > > > > (Which was non-trivial to figure out because vc-annotate doesn't help > > with NEWS files because of rotation.) > > Hmm, maybe we should revert that commit, since file notifications are > definitely not scalable enough to support such functionality. > > Eli? The nil setting was due to kqueue specific problem. Michael fixed that particular problem and therefore reverted the nil setting. However, my opinion is still the same: file-notifications are not scalable, so people who use and abuse them globally do that to their own cost. Not sure if it's worth forcing the notifications off, though. Perhaps we should have a PROBLEMS entry about that.