From: Mike McLean <mike.mclean@pobox.com>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode Mode <emacs-orgmode@gnu.org>
Subject: Re: Strange Custom Agenda Problem
Date: Mon, 21 May 2012 12:06:19 -0400 [thread overview]
Message-ID: <CANid5Q5OfXSVJPqPpDcmHFHOOBwhu2W8715-ngoobebevn5NVw@mail.gmail.com> (raw)
In-Reply-To: <87bolmaff7.fsf@altern.org>
[-- Attachment #1.1: Type: text/plain, Size: 3559 bytes --]
I have attached a minimal Org Mode setup that replicates this problem. The
files are minimal-org.el and test.org. The lisp file is the minimum
configuration for org-mode and the org-file is a simplified test file.
The minimal configuration assumes:
- A working directory of ~/tmp/tags-test when it sets org-agenda-files
- The Git Checkout of Org-Mode is located in
~/.emacs.d/el-get/org-mode/lisp
Additionally, the minimal configuration has the troublesome agenda command
both as one block in a Block Agenda and listed separately as its one agenda
command. (My “real” environment uses this only in a block agenda so I was
covering all bases).
In each of the two cases below I have started Emacs with:
/Applications/Emacs.app/Contents/MacOS/Emacs -Q -l ./minimal-org.el test.org
Non Working Test Case:
- Switch to Org-Mode HEAD
cd /Users/mike.mclean/.emacs.d/el-get/org-mode
git --no-pager checkout master
make clean
make autoloads
- Launch Emacs as Above
- Note the two version strings from message buffer
GNU Emacs 24.1.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2012-05-20 on bob.porkrind.org
Org-mode version 7.8.10 (release_7.8.10-579-g372948 @
/Users/mike.mclean/.emacs.d/el-get/org-mode/lisp/)
- M-x org-agena followed by t
- Org Agenda Buffer contains just the following
Headlines with TAGS match: +Outcome+PRIORITY="A"+LEVEL=4-{.*Backlog$}
Press `C-u r' to search again with new search string
- M-x org-agena followed by b
- Org Agenda Buffer contains just the following
Headlines with TAGS match: +Outcome+PRIORITY="A"+LEVEL=4-{.*Backlog$}
Working Test Case
- Switch to Org Mode version just prior to Commit
c50f0c<http://orgmode.org/w/?p=org-mode.git;a=commit;h=c50f0c>
cd /Users/mike.mclean/.emacs.d/el-get/org-mode
git co c50f0c~1
make clean
make autoloads
- Launch Emacs as Above
- Note the two version strings from message buffer
GNU Emacs 24.1.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2012-05-20 on bob.porkrind.org
release_7.8.09-33-g0ebeb
Org-mode version 7.8.09 (release_7.8.09.33.g0ebeb)
- M-x org-agena followed by t
- Org Agenda Buffer contains the following (note that the correct Level
4 outline item is selected)
Headlines with TAGS match: +Outcome+PRIORITY="A"+LEVEL=4-{.*Backlog$}
Press `C-u r' to search again with new search string
test: WIP [#A] Level 4 - should be in agenda
:noexport:Outcome::
- M-x org-agena followed by b
- Org Agenda Buffer contains just the following
Headlines with TAGS match: +Outcome+PRIORITY="A"+LEVEL=4-{.*Backlog$}
test: WIP [#A] Level 4 - should be in agenda
:noexport:Outcome::
On Thu, May 17, 2012 at 1:25 PM, Bastien <bzg@altern.org> wrote:
> Mike McLean <mike.mclean@pobox.com> writes:
>
> > I will, but I'm booked in meetings today so it may take a day ...
> >
> > Though in lieu of proper debugging and bug-reporting I reversed the
> > above referenced commit in my local copy of org and now my full,
> > complex setup works as expected as does the test case above with the
> > tag moved to level 2.
>
> I tried to replicate the problem with emacs -Q and
> `org-use-tag-inheritance' set to nil and t -- no luck.
>
> Maybe there is something weird in the format of your entries
> (the ones that do not display correctly.)
>
> Can you send some examples?
>
> --
> Bastien
>
[-- Attachment #1.2: Type: text/html, Size: 10802 bytes --]
[-- Attachment #2: minimal-org.el --]
[-- Type: application/octet-stream, Size: 1086 bytes --]
(add-to-list 'load-path "~/.emacs.d/el-get/org-mode/lisp")
(require 'org-install)
(call-interactively 'emacs-version)
(call-interactively 'org-version)
(setq org-agenda-files '("~/tmp/tags-test/test.org"))
(setq org-todo-keywords
'(
(sequence "TODO(t!)" "POSTPONED(p@/!)" "VERIFY(v@/!)" "ERRANDS(E!)" "|" "COMPLETED(c!)" "DONE(d!)") ; TODOs
(sequence "PLANNING(n!)" "WIP(w!/!)" "INACTIVE(i!)" "BLOCKED(b!)" "|" "COMPLETED(c!)") ; Projects
)
)
(setq org-agenda-custom-commands
'(
("b" "Test Block Agenda"
(
(tags-todo "+Outcome+PRIORITY=\"A\"+LEVEL=4-{.*Backlog$}"
(
(org-agenda-skip-function '(org-agenda-skip-entry-if 'todo '("POSTPONED" "VERIFY" "INACTIVE" "BLOCKED" "ERRANDS" "TODO" "WILL_DO"))) ;; skip Task states, projects only
)
)))
("t" "Test Non-Block Agenda"
tags-todo "+Outcome+PRIORITY=\"A\"+LEVEL=4-{.*Backlog$}"
(
(org-agenda-skip-function '(org-agenda-skip-entry-if 'todo '("POSTPONED" "VERIFY" "INACTIVE" "BLOCKED" "ERRANDS" "TODO" "WILL_DO"))) ;; skip Task states, projects only
)
)))
[-- Attachment #3: test.org --]
[-- Type: application/octet-stream, Size: 293 bytes --]
* Level 1 :noexport:
** Level 2 :Outcome:
*** Level 3
**** WIP [#A] Level 4 - should be in agenda
**** WIP Should not be in agenda (not priority A)
**** Should not be in agenda (Backlog Tag) :Project_Backlog:
**** TODO [#A] Should not be in agenda (TODO, not Project)
next prev parent reply other threads:[~2012-05-21 16:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-17 3:36 Strange Custom Agenda Problem Mike McLean
2012-05-17 5:54 ` Bastien
2012-05-17 12:56 ` Mike McLean
2012-05-17 13:04 ` Mike McLean
2012-05-17 17:25 ` Bastien
2012-05-21 16:06 ` Mike McLean [this message]
2012-05-23 10:17 ` Bastien
2012-05-23 11:22 ` Mike McLean
2012-05-23 12:32 ` Bastien
2012-05-22 4:18 ` Laurynas Biveinis
2012-05-23 10:17 ` Bastien
2012-05-23 15:36 ` Laurynas Biveinis
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=CANid5Q5OfXSVJPqPpDcmHFHOOBwhu2W8715-ngoobebevn5NVw@mail.gmail.com \
--to=mike.mclean@pobox.com \
--cc=bzg@altern.org \
--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 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).