[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] external process modifying buffers
From: |
Moritz Ulrich |
Subject: |
Re: [O] external process modifying buffers |
Date: |
Tue, 18 Sep 2012 14:28:09 +0200 |
User-agent: |
mu4e 0.9.9-dev6; emacs 24.2.1 |
Ken Mankoff writes:
> Thanks! That makes it much cleaner. My setup is now reduced to this:
>
> (setq global-auto-revert-mode t)
> (run-at-time "2 minutes" 600 '(lambda () (shell-command "ical2org>iCal.org")))
>
> With full paths to the ical2org binary and the iCal.org file.
>
> Thanks,
>
> -k.
>
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
>
> On Sun, Sep 16, 2012 at 2:08 PM, Charles Philip Chan <address@hidden> wrote:
>> Ken Mankoff <address@hidden> writes:
>>
>> Hi Ken:
>>
>>> Right now I'm running ical2org via cron and re-generating iCal.org
>>> (redirecting stdout with ">"). When I try to regenerate the agenda,
>>> emacs complains:
>>>
>>> iCal.org changed on disk; really edit the buffer? (y, n, r or C-h)
>>
>> Set "global-auto-revert-mode" to "t".
>>
>> Cheers,
>> Charles
>>
>> --
>> linux: the choice of a GNU generation
>> (address@hidden put this on Tshirts in '93)
Cheers,
Moritz
--
Moritz Ulrich
pgpDAuaiZ0KC7.pgp
Description: PGP signature