emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: Moritz Ulrich <moritz@tarn-vedra.de>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: external process modifying buffers
Date: Sat, 13 Oct 2012 18:27:50 +0200	[thread overview]
Message-ID: <CAFdBzEqUGfonHvhk7q7qpa+KGtx-7nuWAEJgW0XPUP5Szp28ow@mail.gmail.com> (raw)
In-Reply-To: <m2obl3v7lf.fsf@tarn-vedra.de>

Hi Moritz,

On Tue, Sep 18, 2012 at 2:28 PM, Moritz Ulrich <moritz@tarn-vedra.de> 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.



  reply	other threads:[~2012-10-13 16:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-16 20:47 external process modifying buffers Ken Mankoff
2012-09-16 21:08 ` Charles Philip Chan
2012-09-16 21:24   ` Ken Mankoff
2012-09-17  3:34     ` Nick Dokos
2012-09-18 12:28     ` Moritz Ulrich
2012-10-13 16:27       ` Ken Mankoff [this message]
2012-10-13 16:57         ` Sean O'Halpin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFdBzEqUGfonHvhk7q7qpa+KGtx-7nuWAEJgW0XPUP5Szp28ow@mail.gmail.com \
    --to=mankoff@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=moritz@tarn-vedra.de \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).