From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Ignoring non-existent agenda files Date: Fri, 4 Jun 2010 12:52:31 +0200 Message-ID: <25BE72A0-E8C7-4A98-B31F-A0C4C9E2A2CB@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=47942 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKVNQ-0004wl-VW for emacs-orgmode@gnu.org; Fri, 04 Jun 2010 07:47:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKVNP-0007XQ-C1 for emacs-orgmode@gnu.org; Fri, 04 Jun 2010 07:47:52 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:49283) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKVNP-0007XA-5s for emacs-orgmode@gnu.org; Fri, 04 Jun 2010 07:47:51 -0400 Received: by wyb39 with SMTP id 39so896188wyb.0 for ; Fri, 04 Jun 2010 04:47:49 -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: piyo@users.sourceforge.net Cc: Emacs-orgmode mailing list On May 24, 2010, at 2:34 PM, Clifford Caoile wrote: > Hello emacs-orgmode mailing list: > > I too would like the ability for org-mode to ignore (silently) > non-existent agenda files. This has been discussed before on the > mailing list [1]. And it has been implemented since then: (setq org-agenda-skip-unavailable-files t) > > Basically my use case is with Emacs on Windows. I have one Org Agenda > file on removable storage (USB memory), which I want to use from > multiple computers, so sometimes that file is not available. I tried > modifying the org-mode elisp files as shown below. When the > interactive prompt "non-existent file .. [R]emove from list > or [A]bort?" is shown, I press the "c" key to continue. > > ---gitk output--- > [author/committer is me, but info is redacted] > Parent: 6f3026edf161ae2d721f4ac04ed50fdebb16353d (Release 6.35g) > > Continuing loading when agenda org files do not exist temporarily > (press c) > > --------------------------------- lisp/org.el > --------------------------------- > index c89c5ac..89c5d88 100644 > @@ -14896,6 +14896,8 @@ Optional argument FILE means use this file > instead of the current." > ((equal r ?r) > (org-remove-file file) > (throw 'nextfile t)) > + ((equal r ?c) > + (throw 'nextfile t)) > (t (error "Abort")))))) > > (defun org-get-agenda-file-buffer (file) > ---gitk output end--- > > Unfortunately, the above doesn't work correctly. I have to press "c" > multiple times in order to "c"ontinue. The reason why you have to press "c" several times is because you are making an agenda with several days, or several blocks. HTH - Carsten