emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Ken Mankoff <mankoff@gmail.com>
Cc: Charles Philip Chan <cpchan@bell.net>, Org-mode <emacs-orgmode@gnu.org>
Subject: Re: external process modifying buffers
Date: Sun, 16 Sep 2012 23:34:44 -0400	[thread overview]
Message-ID: <26788.1347852884@alphaville> (raw)
In-Reply-To: Message from Ken Mankoff <mankoff@gmail.com> of "Sun, 16 Sep 2012 14:24:14 PDT." <CAFdBzEopVJ1exkFwWpxr2UKL4rmAS9zCAGJim9iBhF=ndjBSuQ@mail.gmail.com>

Ken Mankoff <mankoff@gmail.com> wrote:

> 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.
> 

Two points:

o the doc says 

,----
| Setting this variable directly does not take effect;
| either customize it (see the info node `Easy Customization')
| or call the function `global-auto-revert-mode'.
`----

o I've pointed out some possible gotcha's with setting
  global-auto-revert-mode before - see
  http://thread.gmane.org/gmane.emacs.orgmode/58053.

Nick

> 
> On Sun, Sep 16, 2012 at 2:08 PM, Charles Philip Chan <cpchan@bell.net> wrote:
> > Ken Mankoff <mankoff@gmail.com> 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
> > (ksh@cis.ufl.edu put this on Tshirts in '93)
> 

  reply	other threads:[~2012-09-17  3:34 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 [this message]
2012-09-18 12:28     ` Moritz Ulrich
2012-10-13 16:27       ` Ken Mankoff
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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=26788.1347852884@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=cpchan@bell.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=mankoff@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).