emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] ignoring non-existent agenda files


From: Carsten Dominik
Subject: Re: [Orgmode] ignoring non-existent agenda files
Date: Wed, 9 Sep 2009 14:50:30 +0200


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 [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: „non-existent agenda file …“

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 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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]