From: Carsten Dominik <carsten.dominik@gmail.com>
To: piyo@users.sourceforge.net
Cc: Emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Re: Ignoring non-existent agenda files
Date: Fri, 4 Jun 2010 12:52:31 +0200 [thread overview]
Message-ID: <25BE72A0-E8C7-4A98-B31F-A0C4C9E2A2CB@gmail.com> (raw)
In-Reply-To: <AANLkTik3SCbmAWfYgnDgAaqELy6gdQZAf8ylrbUXZM84@mail.gmail.com>
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 <filename>.. [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
next prev parent reply other threads:[~2010-06-04 11:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-24 12:34 Ignoring non-existent agenda files Clifford Caoile
2010-06-04 10:52 ` Carsten Dominik [this message]
2010-06-04 13:57 ` Clifford Caoile
-- strict thread matches above, loose matches on Subject: below --
2009-09-09 7:53 ignoring " Daniel Clemente
2009-09-09 12:50 ` Carsten Dominik
2009-09-14 8:44 ` andrea Crotti
2009-09-17 15:17 ` Daniel Clemente
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=25BE72A0-E8C7-4A98-B31F-A0C4C9E2A2CB@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=piyo@users.sourceforge.net \
/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).