From: Nick Dokos <nicholas.dokos@hp.com>
Cc: =?us-ascii?Q?=3D=3Futf-8=3FQ=3FFran=3DC3=3DA7ois=5FPinard=3F=3D?=
<pinard@iro.umontreal.ca>,
emacs-orgmode@gnu.org
Subject: Re: non-existent agenda file ~/file.txt. [R]emove from list or [A]bort?
Date: Mon, 21 May 2012 12:05:16 -0400 [thread overview]
Message-ID: <23598.1337616316@alphaville> (raw)
In-Reply-To: Message from Nick Dokos <nicholas.dokos@hp.com> of "Mon\, 21 May 2012 11\:43\:07 EDT." <23435.1337614987@alphaville>
Nick Dokos <nicholas.dokos@hp.com> wrote:
> François Pinard <pinard@iro.umontreal.ca> wrote:
>
> > Bastien <bzg@gnu.org> writes:
> >
> > > "Sebastien Vauban"
> > > <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> 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.
>
next prev parent reply other threads:[~2012-05-21 16:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-21 11:52 non-existent agenda file ~/file.txt. [R]emove from list or [A]bort? Sebastien Vauban
2012-05-21 13:26 ` Bastien
2012-05-21 15:28 ` François Pinard
2012-05-21 15:43 ` Nick Dokos
2012-05-21 16:05 ` Nick Dokos [this message]
2012-06-04 12:58 ` Sebastien Vauban
2012-06-04 13:35 ` Nick Dokos
2012-06-04 14:29 ` Sylvain Rousseau
2012-06-04 14:34 ` Sebastien Vauban
2012-06-04 16:13 ` Nick Dokos
2012-06-04 16:45 ` Sebastien Vauban
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=23598.1337616316@alphaville \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=pinard@iro.umontreal.ca \
/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).