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: master e8488bcc9c: Avoid having font locking triggering unnecessary auto-saving Date: Sat, 07 May 2022 19:40:42 +0300 Message-ID: <83czgpxpmd.fsf@gnu.org> References: <165191796540.22789.3432288633082546349@vcs2.savannah.gnu.org> <20220507100605.B7CA7C051FF@vcs2.savannah.gnu.org> <83ilqhxr1b.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16449"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 07 18:42:16 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 1nnNVX-00045S-Do for ged-emacs-devel@m.gmane-mx.org; Sat, 07 May 2022 18:42:15 +0200 Original-Received: from localhost ([::1]:59180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnNVW-0001Y5-3m for ged-emacs-devel@m.gmane-mx.org; Sat, 07 May 2022 12:42:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnNUC-0000Mt-J0 for emacs-devel@gnu.org; Sat, 07 May 2022 12:40:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnNUC-00079j-A6; Sat, 07 May 2022 12:40:52 -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=9K3ntkAINjVj26EBbNd4k+2KWd5fwn200jwbQYMgQEk=; b=A2j/l+Hrwehz 32vMiWGf447oCXCfsyl5Mm+yov9TDY/UDt11lCkVjqPCCObgWnOvX1SHe/db5jG2wn5pELJUWcZNf 1Ov0UMNc7ZQIeypK22iiiXrGs369QkFHmmDtRn20bWcmz/8fOQXCpXHR8SblgCfY02zNgQQnM08oY JYeWEUaHpdzfQmnKiEKqoitJl5H7RIoFJbrsMQecVPKy2OxaKHLEmxb1WLbJtlRCAZ30rBwzLv48q /HrWuB3bkwEqDHFS6emYSqAlrWKkB4Ny7n4Pq2X1yKJS47BfLmuG9JPjhVQ/jd6cQVTohBsbhLvKt 0r30OXTLQkGWCKB/w0zecQ==; Original-Received: from [87.69.77.57] (port=4255 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 1nnNUB-0006LA-4x; Sat, 07 May 2022 12:40:52 -0400 In-Reply-To: (message from Stefan Monnier on Sat, 07 May 2022 12:27:04 -0400) 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:289409 Archived-At: > From: Stefan Monnier > Cc: larsi@gnus.org, emacs-devel@gnu.org > Date: Sat, 07 May 2022 12:27:04 -0400 > > Eli Zaretskii [2022-05-07 19:10:08] wrote: > >> BTW, I wonder if the auto-save mechanism should use the CHARS_MODIFF > >> ticks instead? > > Why would we want to change how auto-save have worked for decades?? > > For the same reason we just changed the way `with-silent-modifications` > (and lots of other code which either used `with-silent-modifications` > or used their own local copy of basically the same code)? Not good enough: auto-saving is a critical feature, and I object to changes that could make it less reliable, because it could mean users will lose their edits. By contrast, with-silent-modifications is just a convenience device, to avoid annoying users with redundant "changes" of the buffer. What practical problem do you want to solve by that change in auto-save?