From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: external process modifying buffers Date: Sat, 13 Oct 2012 18:27:50 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN4Z6-0003Om-OO for emacs-orgmode@gnu.org; Sat, 13 Oct 2012 12:27:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TN4Z5-0002Nv-FT for emacs-orgmode@gnu.org; Sat, 13 Oct 2012 12:27:52 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:63261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN4Z5-0002Nr-AG for emacs-orgmode@gnu.org; Sat, 13 Oct 2012 12:27:51 -0400 Received: by mail-ie0-f169.google.com with SMTP id 10so7732433ied.0 for ; Sat, 13 Oct 2012 09:27:50 -0700 (PDT) In-Reply-To: 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: Moritz Ulrich Cc: Org-mode Hi Moritz, On Tue, Sep 18, 2012 at 2:28 PM, Moritz Ulrich wrote: > Please note that `global-auto-revert-mode' reverts ALL Emacs buffers > when the underlaying file changes. This isn't just active for the > iCal.org buffer, but for all open buffers. > > If you like this behavior, ok, but if you prefer it for the iCal.org > buffer only, enable auto-revert-mode (without global-) via a file-local > variable in it: > > http://www.gnu.org/software/emacs/manual/html_node/emacs/File-Variables.html You are right, global revert-mode causes other issues. Can you suggest how to have it as a local file variable when the command that generates the file over-writes it? I have modified the code that produces the iCal.org file so the top line now is: # -*- coding: utf-8; auto-revert-mode: t; -*- But emacs does not seem to be obeying the command. I've restarted emacs, but when I modify that file with an external command, I still get the "changed on disk" warning. If I ESC-x auto-revert-mode it toggles to off, implying it was on. If I do that again, toggling to on, it then works correctly. Thanks, -k.