From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Fran=E7ois?= Gannaz Newsgroups: gmane.emacs.help Subject: Re: file modified on opening Date: Wed, 28 Jun 2006 20:24:41 +0200 Message-ID: <20060628182441.GD24395@free.fr> References: Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1151519136 30286 80.91.229.2 (28 Jun 2006 18:25:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Jun 2006 18:25:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 28 20:25:19 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 1Fveif-00042k-Fc for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Jun 2006 20:24:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fveie-0000w4-UQ for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Jun 2006 14:24:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FveiS-0000tm-Kg for help-gnu-emacs@gnu.org; Wed, 28 Jun 2006 14:24:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FveiQ-0000rD-Mp for help-gnu-emacs@gnu.org; Wed, 28 Jun 2006 14:24:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FveiQ-0000r0-EF for help-gnu-emacs@gnu.org; Wed, 28 Jun 2006 14:24:42 -0400 Original-Received: from [194.158.96.107] (helo=relay-av.club-internet.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fveun-0000NG-Ts for help-gnu-emacs@gnu.org; Wed, 28 Jun 2006 14:37:30 -0400 Original-Received: from pandion (d02m-89-83-205-119.d4.club-internet.fr [89.83.205.119]) by relay-av.club-internet.fr (Postfix) with ESMTP id 3EEB52562B; Wed, 28 Jun 2006 20:24:40 +0200 (CEST) Original-Received: from zamansky by pandion with local (Exim 4.62) (envelope-from ) id 1FveiP-0006YF-Ve; Wed, 28 Jun 2006 20:24:42 +0200 Original-To: Mickey Ferguson Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 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:35711 Archived-At: Le mer 28 jun 09:43, Mickey Ferguson a =E9crit : > >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. >=20 > 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 woul= d > comment out everything in your .emacs, and then add back in, piece by > piece, until you might find a cause that way. 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-htm= l)) 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. I tried debugging the wole process, I even learned to use edebug as the p= lain 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. -- Fran=E7ois