[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] non-existent agenda file ~/file.txt. [R]emove from list or [A]bo
From: |
Nick Dokos |
Subject: |
Re: [O] non-existent agenda file ~/file.txt. [R]emove from list or [A]bort? |
Date: |
Mon, 21 May 2012 12:05:16 -0400 |
Nick Dokos <address@hidden> wrote:
> François Pinard <address@hidden> wrote:
>
> > Bastien <address@hidden> writes:
> >
> > > "Sebastien Vauban"
> > > <address@hidden> writes:
> >
> > >> These last days, I've observed that, whenever creating a new Org file
> > >> (to be precise, when saving it), I'm asked:
> > >>
> > >> non-existent agenda file ~/file.txt. [R]emove from list or [A]bort?
> > >>
> > >> I'm then forced to answer `R' for the save to be done. Do you see
> > >> that behavior as well?
> >
> > > Nope. Any help on how to reproduce this? Since which commit do you
> > > see this?
> >
> > I'm not fully sure, but I think I saw this diagnostic already. It was
> > quite a while ago, and the problem disappeared by upgrading. Could it be
> > that, by some operational error, Sebastien is using some old Org code?
> >
>
> The message is generated from org-check-agenda-file, so just
> edebug-defun this function (C-u M-C-x), try the operation and when (if)
> it stops, get a backtrace with ``d''.
>
It's better to add a (debug) call before the (message ...) call
instead. That way, existing files will not clutter the chase:
--8<---------------cut here---------------start------------->8---
(defun org-check-agenda-file (file)
"Make sure FILE exists. If not, ask user what to do."
(when (not (file-exists-p file))
(debug)
(message "non-existent agenda file %s. [R]emove from list or [A]bort?"
(abbreviate-file-name file))
...
--8<---------------cut here---------------end--------------->8---
> Nick
>
> PS. I don't see this bahavior at all.
>