From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel Subject: Re: Confusion about first-change-hook Date: Tue, 18 Dec 2012 22:00:54 +0100 Message-ID: <874njjhy7t.fsf@engster.org> References: <878v8vi11x.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355864464 18460 80.91.229.3 (18 Dec 2012 21:01:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Dec 2012 21:01:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 18 22:01:18 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tl4Ht-0004z3-8D for ged-emacs-devel@m.gmane.org; Tue, 18 Dec 2012 22:01:17 +0100 Original-Received: from localhost ([::1]:35537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl4He-0002TO-VH for ged-emacs-devel@m.gmane.org; Tue, 18 Dec 2012 16:01:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl4Hb-0002Sy-Ew for emacs-devel@gnu.org; Tue, 18 Dec 2012 16:01:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tl4Ha-00081b-Bi for emacs-devel@gnu.org; Tue, 18 Dec 2012 16:00:59 -0500 Original-Received: from randomsample.de ([83.169.19.17]:39842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl4HZ-00081R-Q6 for emacs-devel@gnu.org; Tue, 18 Dec 2012 16:00:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=6CQ1d9cW7var/rUBYUZK0gGwwNT90ygvMVmdaK5esK4=; b=ctikc7dP49hIbiHC+/pOUdfhvRStRmXxwjIvTTX2q/XlG5V/iSHdeXbZ97sPTMARpCX1YgLS9WPGGK5aHQ5GSJcNnWDlyNteYp7XZ3m/C2U2eS31rDUfq/J6n8EUpsX2; Original-Received: from dslc-082-083-045-171.pools.arcor-ip.net ([82.83.45.171] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Tl4HX-0002f7-7B; Tue, 18 Dec 2012 22:00:55 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 18 Dec 2012 15:43:11 -0500") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) Mail-Followup-To: Stefan Monnier , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 83.169.19.17 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155663 Archived-At: Stefan Monnier writes: >> However, I soon saw that whitespace-mode got immediately activated in my >> C++ buffers. The reason is that changing a text property apparently >> already counts as "changing the buffer". Is this really the desired >> behavior? If so, what else is there to achieve the above? Should I file >> a wishlist-bug for something like 'buffer-modified-hook'? > > I think the bug is in the major mode that sets the text-property without > proper protection (e.g. with-silent-modifications). Oh. I didn't know that putting text properties on an unmodified buffer should be protected like that. I guess I will have to look at some of my own packages... Anyway, thanks for the pointer. I'll see to it that I file a bug for cc-mode. -David