From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: ignoring non-existent agenda files Date: Wed, 9 Sep 2009 14:50:30 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlMdF-0002WA-BI for emacs-orgmode@gnu.org; Wed, 09 Sep 2009 08:50:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlMdA-0002Ok-K0 for emacs-orgmode@gnu.org; Wed, 09 Sep 2009 08:50:40 -0400 Received: from [199.232.76.173] (port=35499 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlMdA-0002OO-Er for emacs-orgmode@gnu.org; Wed, 09 Sep 2009 08:50:36 -0400 Received: from mail-qy0-f192.google.com ([209.85.221.192]:50438) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlMd9-0003j5-TR for emacs-orgmode@gnu.org; Wed, 09 Sep 2009 08:50:36 -0400 Received: by qyk30 with SMTP id 30so3515804qyk.5 for ; Wed, 09 Sep 2009 05:50:35 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Clemente Cc: org-mode Mailinglist On Sep 9, 2009, at 9:53 AM, Daniel Clemente wrote: > Hi, I recently got this message after starting Emacs daemon: > > non-existent file ~/some/repo/index.org.. [R]emove from list or =20 > [A]bort? > > 1. It wasn't clear to me who issued this message; I thought it would > be recentf or tramp rather than org-mode. Maybe the message could give > some hint about the agenda: =84non-existent agenda file =85=93 > > 2. This question prevented emacs --daemon from starting > non-interactively; that's not nice. I think this minor question > shouldn't block emacs' startup. Maybe via (3.) > > 3. I don't mind if an agenda file doesn't exist. I have a different > set of .org files in each computer, and my org-agenda-files is a > superset of all. I would prefer a preference to request all > non-existing agenda files to be ignored. Hi Daniel, I think the real mistake here is that you call org-agenda, or maybe `org-agenda-to-appt' from .emacs, also in the case when you are only starting the daemon. Any such operaions should be avoided in the daemon, I think. Silently ignoring non-existing files on the agenda list does not seem a good idea to me. If you want to do this, you can do it lke =20= this: (eval-after-load "org" (setq org-agenda-files (delq nil (mapcar (if (file-exists-p file) file) org-agenda-files)))) Make sure this runs after ou custom-file has been loaded. (setq org-agenda-files (mapcar (if (file-exists-p file) file) HTH - Carsten > > > Thanks > -- Daniel > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode