From: Maurice Boucher <maurice@mboucher.info>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: agenda does not call file
Date: Thu, 09 Dec 2010 17:31:53 +0100 [thread overview]
Message-ID: <878vzy9abq.fsf@lonovo.maison.ici> (raw)
In-Reply-To: <40046F48-F51A-4931-AA17-B654E04F4B77@gmail.com> (Carsten Dominik's message of "Thu, 9 Dec 2010 11:13:25 +0100")
Hi Carsten,
Carsten Dominik <carsten.dominik@gmail.com> écrivit :
> you have discovered that in a block agenda view, it
> is only possible to *restrict* the range of files
> used in a block, not to widen it. I was not aware
> myself of this restriction, but looking at the code
> I see it is there.
>
> The reason for this is that, in order to speed things up,
> Org does some prep work on the agenda files before parsing
> for the different blocks. At that prep stage, all the files
> are pulled in.
>
> So you can get this to work by setting the list of agenda
> files to all agenda files plus the extra file in the *global*
> option section for this custom command.
>
> The following might work (untested):
>
> ("no" "osm"
> ((tags "CATEGORY=\"openstreetmap\"+note"
> ((org-agenda-remove-tags t)))
> (tags "CATEGORY=\"openstreetmap\"+note"
> ((org-agenda-files '("/home/momo/org/ordi/carto.org"))
> (org-agenda-remove-tags t)
> )))
> ((org-agenda-files (cons "/home/momo/org/ordi/carto.org" (org-agenda-
> files)))))
>
>
> This should work because the values in option sections are
> evaluated before use (which is why you normally would
> have to quote them).
Thanks for your answer.
Your code is right but it gives twice the same agenda and it was not my
goal.
I want to recognize which are the files my notes come from.
I add a filetag "carto" on my file carto.org to separate the agenda view
and with your example, I rewrite my command :
("no" "osm"
((tags "CATEGORY=\"openstreetmap\"+note"
((org-agenda-remove-tags t)))
(tags "CATEGORY=\"openstreetmap\"+carto"
((org-agenda-files '("/home/momo/org/ordi/carto.org"))
(org-agenda-remove-tags t)
)))
((org-agenda-files (cons "/home/momo/org/ordi/carto.org"
(org-agenda-files)))))
I use to put notes about the same subject in different files or sections
like "answer mail", "program". I just keep important and definitive
notes in special files (here "carto.org"). By this way I can see and
reorganize all of them.
I think the most difficult about org-mode is not about configuration -
documentation, faqs, tutorials are very good - but about organizing
files, todo, tags, etc. in the best way to keep these objects small,
simple and well structured.
Bye,
Maurice
next prev parent reply other threads:[~2010-12-09 16:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-06 17:20 agenda does not call file maurice
2010-12-09 10:13 ` Carsten Dominik
2010-12-09 16:31 ` Maurice Boucher [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-12-01 15:48 Maurice
2011-02-03 13:47 ` Bastien
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878vzy9abq.fsf@lonovo.maison.ici \
--to=maurice@mboucher.info \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.