From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: file modified on opening Date: Wed, 28 Jun 2006 14:55:41 -0600 Organization: IHS Message-ID: References: <20060628182441.GD24395@free.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1151528221 31997 80.91.229.2 (28 Jun 2006 20:57:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Jun 2006 20:57:01 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 28 22:56:59 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fvh5W-0005pX-Ty for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Jun 2006 22:56:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fvh5V-0000Kj-Kl for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Jun 2006 16:56:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fvh5K-0000KU-Fe for help-gnu-emacs@gnu.org; Wed, 28 Jun 2006 16:56:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fvh5J-0000KI-2D for help-gnu-emacs@gnu.org; Wed, 28 Jun 2006 16:56:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fvh5I-0000KF-Te for help-gnu-emacs@gnu.org; Wed, 28 Jun 2006 16:56:28 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FvhHh-00046w-GZ for help-gnu-emacs@gnu.org; Wed, 28 Jun 2006 17:09:17 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fvh5B-0005mh-Pp for help-gnu-emacs@gnu.org; Wed, 28 Jun 2006 22:56:21 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Jun 2006 22:56:21 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Jun 2006 22:56:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 46 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) In-Reply-To: <20060628182441.GD24395@free.fr> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35715 Archived-At: François Gannaz wrote: > Le mer 28 jun 09:43, Mickey Ferguson a écrit : >>> I'm using a mmm-mode for HTML and PHP files (mixing html-helper-mode, >>> php-mode, css-mode, etc.). When I open some files, they are marked as >>> modifed ("**" in status bar), even if I just view them from Dired. Of >>> course, the content isn't really modified. >> Is there any chance that something that your .emacs is doing is causing >> the butter to be modified? One example I can think of is if you >> automatically enter and exit picture-mode. A buffer that has any >> trailing spaces at the end of a line will then be modified by trimming >> the trailing spaces. Now this is only one possible example, but I would >> comment out everything in your .emacs, and then add back in, piece by >> piece, until you might find a cause that way. I would suspect that text properties are being added. Mickey could find out with `M-: (goto-char (next-property-change (point-min)))' followed by `C-u C-x ='. > At first, I thought it was this, but I've already narrowed my .emacs to > > (require 'mmm-mode) > (setq mmm-global-mode 'maybe) > (mmm-add-group > 'fancy-html > '( > (html-php-embedded > :submode php-mode > :face mmm-code-submode-face > :front "<\\?\\(php\\)?" > :back "\\?>") > )) > (add-to-list 'mmm-mode-ext-classes-alist '(html-helper-mode nil fancy-html)) > > And with such a tiny config, my file is still tagged as modified (at > least with Emacs22, it's OK with Emacs 21). Maybe it's because of > Debian's initialization, but I doubt it. It's easy enough to check: Start Emacs 22 with the -Q option, then paste that code into *scratch* and `M-x eval-buffer'. > I tried debugging the wole process, I even learned to use edebug as the plain > backtracing wasn't enough, but I can't find anything for now. I'll try > debugging once again as I can't think of anything better. -- Kevin