From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Re: Text Properties And Buffer Modification Date: Wed, 05 Dec 2018 08:15:36 +0100 Message-ID: <87wooofnqf.fsf@fastmail.fm> References: <83y3948ov2.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1543994105 15480 195.159.176.226 (5 Dec 2018 07:15:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2018 07:15:05 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 26.1 Cc: "T.V Raman" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 05 08:15:01 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUROd-0003pF-8i for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2018 08:15:00 +0100 Original-Received: from localhost ([::1]:60584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gURQj-00043Q-QI for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2018 02:17:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gURPP-0003hM-IR for emacs-devel@gnu.org; Wed, 05 Dec 2018 02:15:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gURPM-00061u-Cj for emacs-devel@gnu.org; Wed, 05 Dec 2018 02:15:47 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:56173) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gURPM-0005zv-4s for emacs-devel@gnu.org; Wed, 05 Dec 2018 02:15:44 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8082D20F1D; Wed, 5 Dec 2018 02:15:42 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 05 Dec 2018 02:15:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm1; bh=N1wmZ7v418VQF2bxpxMQFAIjBN YHInN64KAmnuSDNyI=; b=jeSjU38wQgJkoFi6Fo2RWprAT0kMh2SP14WeCyjXKP kUX3DHPo4eRTjJFjXwcIooQCPFdF7t7FjPX9gwuKvKsCJH2Y2sFV/q+8btOeFhrh LwDHLU+paGdRHngdQ3nc9B0yyAZyPZXOi4NagRwzfsL+k4uQPdjPGutuM+Msinj7 sliZ7BEDB/IKlLGxOu+9qLT5TEHM+HZW64uns7UNA8dMWSKeLGh1sOHQcRxAloHx Bvq50zzF4N2pP4Jz9QwTkF7vzoZHv/2Zqzh52jhVWZ0dgaJueFoCSm0wMZ7GgXIR oYEOTLvY20ml5bOCNt5qVNaSjCa7QizczBYiTvwOJkmQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=N1wmZ7 v418VQF2bxpxMQFAIjBNYHInN64KAmnuSDNyI=; b=a49Yoz3OqNA9gHmtIDoxfi d1CaDUIguzxkRUFCIfA/USKJBN1W8EfF+KVjRjcGYglMc9iGWgAvDpslIa2y5ih6 sY+juXOLA9koqLAvdzoTBIdvnFZJkcVmAw863tuaKjtDIussZGxYSVAQrJS93l7/ gX7IUfHHxkJHCyQPxS8fyEZJloZOtyodR/1T+KUm+saz9eIrOjhuy1IOaU5yBRMP Vny7rkdmqf9zL/yK82md8oT9fLJBSa0c0ILvtLcnaNEnwBhDHYFG8JFGs+5m6uib duLuWSqKd1vmR7Tl/9O32VXbahRZoCC1KEoef2RB+8tiMsjdNONkMMNVorpeGtBQ == X-ME-Sender: X-ME-Proxy: Original-Received: from Swift.fastmail.com (unknown [46.183.103.17]) by mail.messagingengine.com (Postfix) with ESMTPA id D7EEF103B2; Wed, 5 Dec 2018 02:15:40 -0500 (EST) In-reply-to: <83y3948ov2.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.28 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:231622 Archived-At: On Wed, Dec 05 2018, Eli Zaretskii wrote: >> From: "T.V Raman" >> Date: Tue, 04 Dec 2018 15:39:31 -0800 >> >> At present, modifying text properties (adding, removing or >> changing >> properties) markes the buffer as modified. >> Since property changes are mostly cosmetic, is there a good >> reason why >> this is so? > > Because text properties are part of the buffer text: if you copy > some > of the text into another place, the properties go there as well. But isn't that at least somewhat counter-intuitive, given that they are usually not saved to the file the buffer is visiting? Up until now I've always understood the modified status of a buffer to mean that there is a discrepancy between what is on disk and what would be on disk if the buffer were saved in its current from. The Emacs Manual indeed seems to say so: "If a buffer contains changes that have not been saved, we say the buffer is 'modified'" (info "(emacs) Visiting"). Granted, buffers that are not visiting a file can also be modified, but they are essentially *always* modified, so their modification status is largely irrelevant. (Isn't it?) -- Joost Kremers Life has its moments