From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: HG, git and others actualize the modeline when commit form the command line Date: Mon, 16 Nov 2020 22:00:56 +0200 Message-ID: <8033c405-f5ba-d6b2-717f-be933ab925ca@yandex.ru> References: <87blfxa2ww.fsf@mat.ucm.es> <4B8210EB-CA1F-43B4-8CEF-FF8949FCBDF3@gnu.org> <87o8jx8f44.fsf@mat.ucm.es> <83v9e5ryzk.fsf@gnu.org> <2006f217-d87b-eb44-0918-8327044870d6@yandex.ru> <83d00drtlq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38235"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: oub@mat.ucm.es, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 16 21:05:26 2020 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 1kekkg-0009qe-9M for ged-emacs-devel@m.gmane-mx.org; Mon, 16 Nov 2020 21:05:26 +0100 Original-Received: from localhost ([::1]:56086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kekke-0007MS-V0 for ged-emacs-devel@m.gmane-mx.org; Mon, 16 Nov 2020 15:05:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kekgU-0004GU-0r for emacs-devel@gnu.org; Mon, 16 Nov 2020 15:01:06 -0500 Original-Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:41700) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kekgP-00035r-9J; Mon, 16 Nov 2020 15:01:05 -0500 Original-Received: by mail-ej1-x629.google.com with SMTP id cw8so26150181ejb.8; Mon, 16 Nov 2020 12:01:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=mfr+RXbzwWdMqyrD6LSReqtAOjK3FnOfJqFpaJ8Vexk=; b=j8afd0l/bAx1JErcsOT3cOiu2Snhpqisr9TDx9RgUF5H72f4uJW2kzTqC7z03lhgxN VkB3LF9ydfvEUeXD+RGcBIsHV8GTMMfdm3HLFZOziD1QHDkqnN2cbxWH+/R7yBbeVrPv TK+6FCNCyCDC1USeCB4jnDj3HQlQBDaMZ4vkXJMmL8VGPWGg1pwBOQi0DEZ3wtXBLlcd Mmd2N3O8+/Tk1AXBB/PdZvwV5v54noIVU0laKnSN2C9+IgRgTOprL+LUC/GQ8gXSDoy3 lzGKauGiT8GQFjkJStiP+LITYe1fgglx74bRxI7nu0+vUs1NnNpASGGPfq+JP9DwBc/t wGuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mfr+RXbzwWdMqyrD6LSReqtAOjK3FnOfJqFpaJ8Vexk=; b=QR1udC1hPsR5dkK6aJH5MWRkiZFsTko4XEa95v33xvrelJXGatyvPV90/C6rbmvoP0 63EKwrArx+fiQuli/dFDevsoiaL1zqEzkG/2xtqRvHCi/+X4XtNqqbJqsphDEx8ajDE8 jm6mn7RpB7ebu+n+4j39jx3N6useO49OJHKkfSW1e0vOEKCXBwmITE6hfPeD+PSr5Ajf xLB48ozLy6LEVCwRQgmGMbX+Ch/z624wq7D3DEZcFvYhXRWmVpGGL910I92OPK3mOpi3 8oWHaF74K4C4qthiGNMxl7SwC4Hg3TVcwcOUbG770PKVzzLYxJElVNbcntV1fYQdVR8d wlmg== X-Gm-Message-State: AOAM532F1wLCCO4xG97lxVO/rKwyckp8NldIufRQqTT/yyu2cCdS6TTN TNoRdYt4lbFItt1MR5N6IFWVqWjEoWIi/g== X-Google-Smtp-Source: ABdhPJyn1BgCWZSrKEeU5mBjhEqCveQcQmZyssnEW1zVQ1Pre+v7EETCc8tQn1QmrTR//8NQl4gKsw== X-Received: by 2002:a17:907:94c6:: with SMTP id dn6mr15527894ejc.13.1605556859189; Mon, 16 Nov 2020 12:00:59 -0800 (PST) Original-Received: from [192.168.0.4] ([66.205.71.3]) by smtp.googlemail.com with ESMTPSA id o17sm8370914edz.10.2020.11.16.12.00.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Nov 2020 12:00:58 -0800 (PST) In-Reply-To: <83d00drtlq.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=raaahh@gmail.com; helo=mail-ej1-x629.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:259251 Archived-At: On 16.11.2020 21:26, Eli Zaretskii wrote: >> Cc: emacs-devel@gnu.org >> From: Dmitry Gutov >> Date: Mon, 16 Nov 2020 20:43:54 +0200 >> >>> You are well advised not to use auto-revert-mode in VCS repositories. >> >> Why not? > > Because a VCS repository triggers the poorly-scalable behavior of file > notifications. We watch directories, and in a repository some > directories see a lot of file activity unrelated to the files you > actually visit. I can see how that can happen (even though it never caused a big enough problem for me personally), but AFAIK all modern editors provide some sort of counterpart to auto-revert-mode (updating the contents of files when they are edited externally). And of course that also works in VCS repositories, which is the normal case these days. So if it's problematic in Emacs, I think it should be on the priority list of bugs to fix. Worst case, we can switch over from filenotify to simple polling in those cases.