From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joost Helberg Subject: Re: all org-buffers modified Date: Tue, 07 Aug 2012 16:28:59 +0200 (CEST) Message-ID: <20120807.162859.246422802805923672.joost@snow.nl> References: <20120807.155407.1319342334695091190.joost@snow.nl> <16864.1344348439@alphaville> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SykmO-0000kG-BE for emacs-orgmode@gnu.org; Tue, 07 Aug 2012 10:29:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SykmM-0007MW-T9 for emacs-orgmode@gnu.org; Tue, 07 Aug 2012 10:29:04 -0400 Received: from mx.snow.nl ([213.154.248.146]:60523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SykmM-0007MI-HZ for emacs-orgmode@gnu.org; Tue, 07 Aug 2012 10:29:02 -0400 In-Reply-To: <16864.1344348439@alphaville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Nick, I did that, but didn't quite get to covering all customizations. It now turns out that the following makes the symptoms happen: (add-hook 'org-mode-hook (lambda () (set-buffer-file-coding-system 'utf-8))) The documentation of set-buffer-file-coding-system clearly states that it leaves the buffer modified _on purpose_. A third parameter controls this behaviour. Hence, my .emacs should contain: (add-hook 'org-mode-hook (lambda () (set-buffer-file-coding-system 'utf-8 nil t))) Solved. regards, Joost >>>>> "Nick" == Nick Dokos writes: > Subject: Re: [O] all org-buffers modified > From: Nick Dokos > To: Joost Helberg > cc: emacs-orgmode@gnu.org > Date: Tue, 07 Aug 2012 10:07:19 -0400 > Joost Helberg wrote: >> Hi, >> >> upon startup of emacs (and load of desktop), all my freshly opened >> org-buffers end up being modified. There's no undo information >> available and debugging the org-mode function doesn't give me any clue >> as (buffer-modified-p) returns false the whole time. >> > That shouldn't happen (and it does *not* happen in my case): the files are > opened but the buffers are *not* modified. But I'm confused about what > you are saying: (buffer-modified-p) returns nil the whole time, so that meant > they are unmodified. When do they become modified? >> Once in a while (twice a month) I have to stop and start emacs and the >> nuisance of answering `y' to all questions about modified buffers. >> >> In my .emacs org-mode is treated very much the same way as txt or tex >> buffers, but these don't end up being modified right after initial >> load. Also org-startup-align-all-tables and >> org-insert-mode-line-in-empty-file are set to off. >> >> Has anyone any clue where to look for a solution as I obviously like >> freshly loaded buffers to be not modified. >> > That's what I see in any case, so it must be an artifact of your setup. > Have you tried starting with emacs -q and a minimal org init file? > If that works, then bisecting your way through your .emacs seems like > the next step. In particular, starting without loading desktop seems > like a worthwhile experiment. > Nick >> regards, >> >> Joost >> >> -- >> Snow B.V. http://snow.nl >> -- Snow B.V. http://snow.nl