From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Text Properties And Buffer Modification Date: Tue, 04 Dec 2018 15:39:31 -0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543966704 15200 195.159.176.226 (4 Dec 2018 23:38:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2018 23:38:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 05 00:38:20 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 1gUKGi-0003pu-4r for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2018 00:38:20 +0100 Original-Received: from localhost ([::1]:59363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUKIo-0006fB-Pq for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2018 18:40:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUKI4-0006eS-SU for emacs-devel@gnu.org; Tue, 04 Dec 2018 18:39:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUKI2-0005WM-2u for emacs-devel@gnu.org; Tue, 04 Dec 2018 18:39:43 -0500 Original-Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:45350) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gUKI0-0005Pc-Gg for emacs-devel@gnu.org; Tue, 04 Dec 2018 18:39:40 -0500 Original-Received: by mail-pf1-x432.google.com with SMTP id g62so9002397pfd.12 for ; Tue, 04 Dec 2018 15:39:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=uNQp2cT5Gu3EqQogRxYWlH3Y2dNucpBRgaxbBm9eGTs=; b=Taf99lISWlytTPoSonWArGH8oHPQNvSGGPXTvodxdMPO4a+YViVQJIsSZ97MoB6rHh wYAgSipP4GyJ4v+UreajYW3SooCwF/4fB7i4mboS1Plv67qoD2BYdIxouv1CZB994+Au e7C7tInlNNseSRkEwW0rr32t2FQ4V2ysycHqiqLJOQd388YmK3ZYPcWdsVW8zs0HOEJW gJ1AgJ9Uq+hJFZL8t7BsJHdGNelRRhrune9beMk4e586C4HEm0IrSFFci8x1QVbFaUxH UEK2tHagAuanH+MkrhZKxC7blb4CjTClpjcisG2BwziREGOPq9aQFEZ5PrdNUKxYSjbV J19Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=uNQp2cT5Gu3EqQogRxYWlH3Y2dNucpBRgaxbBm9eGTs=; b=Ys2ZqgS7VbXVJbUPWbxECESIjY9wFx6lvp6pEDrcS6T11S9mc9IQHSjVuLEYT8rxJ8 I0obz6b+RVRc32iCxdfpGzN/Mvc+Le+AOafRZneLq4K4reH5ZzT09UxEYbRUkrnZkc0/ P49rKPAnmNrFRPC3T1jtMHmxvpN+42OdK/zZft2VftCdMo+lvs8ebOammsZhdF4vUFCH 3adkPlIlmrkkghAyzmbAV3c1wGHIVrqs9HCDsjBkbmNIXR9LMGBYQptaPyZjH7TTrVbh w6bsGie37C1ejjD/RFF4rxuYZiDpF08L5z+iHYsNjPdmize4FEDHX8YNRQBs0Wtr3ns8 u4fQ== X-Gm-Message-State: AA+aEWZyYT9eulWZrR1u/J04mFXZJVby04y1qMtpVmYG478eavjc0YCN 5yBfpp+JVN8ozJRfcFFxhDJfIm9YRpY= X-Google-Smtp-Source: AFSGD/WC3kvRLgMBiVAQZoA8G3biWfpLP47E75ni4qQNSF80YedDPer9VkEhAHyHlKOItRbCAgsqdw== X-Received: by 2002:a62:6cc8:: with SMTP id h191mr22880610pfc.89.1543966775792; Tue, 04 Dec 2018 15:39:35 -0800 (PST) Original-Received: from retriever.mtv.corp.google.com ([2620:0:1000:1a11:3b2f:9fa1:a5df:f61f]) by smtp.gmail.com with ESMTPSA id q1sm23768535pfb.96.2018.12.04.15.39.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Dec 2018 15:39:33 -0800 (PST) Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 361171E257E; Tue, 4 Dec 2018 15:39:31 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::432 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:231618 Archived-At: 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? Given the present state of buffer-modified status with respect to text-properties, one has to be fairly careful e.g. naively writing (with-silent-modifications (put-text-property ...)) will work *most of the time* except when you say something like: (with-silent-modifications (put-text-property beg end 'face 'bold other-buffer)) you actually need to write this: (with-silent-modifications (with-current-buffer other-buffer (put-text-property beg end 'face 'bold other-buffer))) -- Id: kg:/m/0285kf1