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: buffer-modified-tick and text properties Date: Sat, 20 Apr 2024 19:10:36 +0300 Message-ID: <86mspo816r.fsf@gnu.org> References: <86r0f086t5.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34206"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: JD Smith Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 20 18:11:16 2024 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 1ryDJ6-0008gZ-1E for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Apr 2024 18:11:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryDIX-0007gZ-LD; Sat, 20 Apr 2024 12:10:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ryDIV-0007gR-Jm for emacs-devel@gnu.org; Sat, 20 Apr 2024 12:10:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ryDIV-0008PR-BB; Sat, 20 Apr 2024 12:10:39 -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=DsuNA/NOKXtcnAEEAHm8j+rJJWgtvj/Wf2WlkuIy3ew=; b=AiM31EXvn2z/ JShVxL8rZtTwGPVHMljTx6I1ix4TbnyDYntpZ/aIoztq/wYdqjM5Fp1CMoCZKZsjGNh5xniC+d2Qu EQBHgMxlGiyy6Y+4e4UTwbUYYWvUVQ9rZSLqoUXx8EO9GGyGtxu3Csvs/VGQwVhby5AnDsym9jR9J EAaTJaC4rts19HD1/6Fx3O+jUyFm5yQGok1BrRFZtaa7pYODGSONe1C0TeQQMC0uVxiqDiA5xcL9q eqntJrJMxjFs6jehYj+YfLj5pY6Tpi+PalFkrpJcXO0dNmV6Chpmf23C07ZNCTwp5bwR/PrwEa6/6 S/2H9JqXn7WqjBFSbhxBYQ==; In-Reply-To: (message from JD Smith on Sat, 20 Apr 2024 11:11:10 -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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:317886 Archived-At: > From: JD Smith > Date: Sat, 20 Apr 2024 11:11:10 -0400 > Cc: emacs-devel > > > If you want to know only about changes to characters, perhaps > > buffer-chars-modified-tick is a better function to use? > > Missed this function; it should work perfectly, thanks. I wonder, aside from text properties, are there any other changes within the buffer that cause buffer-modified-tick but not buffer-chars-modified-tick to be incremented? There's restore-buffer-modified-p and internal--set-buffer-modified-tick, but that's all, AFAICT.