From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: non-existent agenda file ~/file.txt. [R]emove from list or [A]bort? Date: Mon, 21 May 2012 12:05:16 -0400 Message-ID: <23598.1337616316@alphaville> References: <804nr9sqcz.fsf@somewhere.org> <87mx51fywv.fsf@gnu.org> <86bolhr1tb.fsf@mercure.progiciels-bpi.ca> <23435.1337614987@alphaville> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWV6t-0007fX-Ev for emacs-orgmode@gnu.org; Mon, 21 May 2012 12:05:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWV6n-0006Yf-3u for emacs-orgmode@gnu.org; Mon, 21 May 2012 12:05:27 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:35352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWV6m-0006Y0-Sk for emacs-orgmode@gnu.org; Mon, 21 May 2012 12:05:21 -0400 In-Reply-To: Message from Nick Dokos of "Mon\, 21 May 2012 11\:43\:07 EDT." <23435.1337614987@alphaville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: =?us-ascii?Q?=3D=3Fus-ascii=3FQ=3F=3D3D=3D3Futf-8=3D3FQ=3D3FFran=3D3DC?= =?us-ascii?Q?3=3D3DA7ois=3D5FPinard=3D3F=3D3D=3F=3D?= , emacs-orgmode@gnu.org Nick Dokos wrote: > Fran=C3=A7ois Pinard wrote: >=20 > > Bastien writes: > >=20 > > > "Sebastien Vauban" > > > writes: > >=20 > > >> 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]bo= rt? > > >> > > >> I'm then forced to answer `R' for the save to be done. Do you see > > >> that behavior as well? > >=20 > > > Nope. Any help on how to reproduce this? Since which commit do you > > > see this? > >=20 > > 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? > >=20 >=20 > 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''. >=20 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 >=20 > PS. I don't see this bahavior at all. >=20