From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike McLean Subject: Re: Strange Custom Agenda Problem Date: Mon, 21 May 2012 12:06:19 -0400 Message-ID: References: <3CDE3A9D-C8AE-4DB4-B3AD-4BF888DA152F@pobox.com> <87mx57qrmv.fsf@gnu.org> <87bolmaff7.fsf@altern.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=e89a8f2345676be81804c08e1641 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWV8s-0000EQ-2e for emacs-orgmode@gnu.org; Mon, 21 May 2012 12:07:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWV8k-0007Qb-4f for emacs-orgmode@gnu.org; Mon, 21 May 2012 12:07:29 -0400 Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:33614 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWV8j-0007AI-QF for emacs-orgmode@gnu.org; Mon, 21 May 2012 12:07:22 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 11744AE75 for ; Mon, 21 May 2012 12:06:43 -0400 (EDT) Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 0A3FAAE74 for ; Mon, 21 May 2012 12:06:43 -0400 (EDT) Received: from mail-lb0-f169.google.com (unknown [209.85.217.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id F0891AE70 for ; Mon, 21 May 2012 12:06:41 -0400 (EDT) Received: by lbjn8 with SMTP id n8so4529997lbj.0 for ; Mon, 21 May 2012 09:06:40 -0700 (PDT) In-Reply-To: <87bolmaff7.fsf@altern.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode Mode --e89a8f2345676be81804c08e1641 Content-Type: multipart/alternative; boundary=e89a8f2345676be81404c08e163f --e89a8f2345676be81404c08e163f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 =E2=80=9Creal=E2=80=9D environment uses this only in a block a= genda 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.or= g 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=3D"A"+LEVEL=3D4-{.*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=3D"A"+LEVEL=3D4-{.*Backlog$= } Working Test Case - Switch to Org Mode version just prior to Commit 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=3D"A"+LEVEL=3D4-{.*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=3D"A"+LEVEL=3D4-{.*Backlog$= } test: WIP [#A] Level 4 - should be in agenda :noexport:Outcome:: On Thu, May 17, 2012 at 1:25 PM, Bastien wrote: > Mike McLean 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 > --e89a8f2345676be81404c08e163f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I have attached a minimal Org Mode setup that replicates this problem. T= he files are=C2=A0minimal-org.el=C2=A0and=C2=A0test.org. = The lisp file is the minimum configuration for=C2=A0org-mode=C2=A0and the org-file= is a simplified test file.

The minimal configuration assumes:

  • A working directory of=C2= =A0~/tmp/tags-= test=C2=A0when it sets=C2=A0org-agenda-files
  • The Git Checkout of Org-Mode is located in=C2=A0~/.emacs.d/el-get/org-mode/lisp

Additionally, the minimal configuration has the troublesome a= genda command both as one block in a Block Agenda and listed separately as = its one agenda command. (My =E2=80=9Creal=E2=80=9D environment uses this on= ly 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 f= rom 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/.e=
    macs.d/el-get/org-mode/lisp/)
    
  • M-x org-agena=C2=A0followed by=C2=A0t
  • Org Agenda Buffer contains j= ust the following
    
    Headlines with TAGS match: +Outcome+PRIORITY=3D"A"+LEVEL=3D4-{.*B=
    acklog$}
    Press `C-u r' to search again with new search string
    
  • M-x org-agena=C2=A0followed by=C2=A0b
  • Org Agenda Buffer contains j= ust the following
    
    Headlines with TAGS match: +Outcome+PRIORITY=3D"A"+LEVEL=3D4-{.*B=
    acklog$}
    

Working Test Case

  • Switch to Org Mode version= just prior to=C2=A0Commit 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 f= rom 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=C2=A0followed by=C2=A0t
  • Org Agenda Buffer contains t= he following (note that the correct Level 4 outline item is selected)
    
    Headlines with TAGS match: +Outcome+PRIORITY=3D"A"+LEVEL=3D4-{.*B=
    acklog$}
    Press `C-u r' to search again with new search string
      test:       WIP [#A] Level 4 - should be in agenda         :noexport:Outc=
    ome::
    
  • M-x org-agena=C2=A0followed by=C2=A0b
  • Org Agenda Buffer contains j= ust the following
    
    Headlines with TAGS match: +Outcome+PRIORITY=3D"A"+LEVEL=3D4-{.*B=
    acklog$}
      test:       WIP [#A] Level 4 - should be in agenda         :noexport:Outc=
    ome::
    


On Thu,= May 17, 2012 at 1:25 PM, Bastien <bzg@altern.org> wrote:
Mike McLean <= mike.mclean@pobox.com> writes:

> =C2=A0 =C2=A0 I will, but I'm booked in meetings today so it may t= ake 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?

--
=C2=A0Bastien

--e89a8f2345676be81404c08e163f-- --e89a8f2345676be81804c08e1641 Content-Type: application/octet-stream; name="minimal-org.el" Content-Disposition: attachment; filename="minimal-org.el" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h2hq8mp70 KGFkZC10by1saXN0ICdsb2FkLXBhdGggIn4vLmVtYWNzLmQvZWwtZ2V0L29yZy1tb2RlL2xpc3Ai KQoocmVxdWlyZSAnb3JnLWluc3RhbGwpCihjYWxsLWludGVyYWN0aXZlbHkgJ2VtYWNzLXZlcnNp b24pCihjYWxsLWludGVyYWN0aXZlbHkgJ29yZy12ZXJzaW9uKQooc2V0cSBvcmctYWdlbmRhLWZp bGVzICcoIn4vdG1wL3RhZ3MtdGVzdC90ZXN0Lm9yZyIpKQooc2V0cSBvcmctdG9kby1rZXl3b3Jk cwogICAgICAnKAoJKHNlcXVlbmNlICJUT0RPKHQhKSIgIlBPU1RQT05FRChwQC8hKSIgIlZFUklG WSh2QC8hKSIgIkVSUkFORFMoRSEpIiAifCIgIkNPTVBMRVRFRChjISkiICJET05FKGQhKSIpIDsg VE9ET3MKCShzZXF1ZW5jZSAiUExBTk5JTkcobiEpIiAiV0lQKHchLyEpIiAiSU5BQ1RJVkUoaSEp IiAiQkxPQ0tFRChiISkiICJ8IiAiQ09NUExFVEVEKGMhKSIpICAgICAgICAgICAgICA7IFByb2pl Y3RzCgkpCiAgICAgICkKCihzZXRxIG9yZy1hZ2VuZGEtY3VzdG9tLWNvbW1hbmRzCiAgICAgICco CgkoImIiICJUZXN0IEJsb2NrIEFnZW5kYSIKCSAoCgkgICh0YWdzLXRvZG8gIitPdXRjb21lK1BS SU9SSVRZPVwiQVwiK0xFVkVMPTQtey4qQmFja2xvZyR9IgoJCSAgICAgKAoJCSAgICAgIChvcmct YWdlbmRhLXNraXAtZnVuY3Rpb24gJyhvcmctYWdlbmRhLXNraXAtZW50cnktaWYgJ3RvZG8gJygi UE9TVFBPTkVEIiAiVkVSSUZZIiAiSU5BQ1RJVkUiICJCTE9DS0VEIiAiRVJSQU5EUyIgIlRPRE8i ICJXSUxMX0RPIikpKSA7OyBza2lwIFRhc2sgc3RhdGVzLCBwcm9qZWN0cyBvbmx5CgkJICAgICAg KQoJCSAgICAgKSkpCgkoInQiICJUZXN0IE5vbi1CbG9jayBBZ2VuZGEiCgkgdGFncy10b2RvICIr T3V0Y29tZStQUklPUklUWT1cIkFcIitMRVZFTD00LXsuKkJhY2tsb2ckfSIKCSAoCgkgIChvcmct YWdlbmRhLXNraXAtZnVuY3Rpb24gJyhvcmctYWdlbmRhLXNraXAtZW50cnktaWYgJ3RvZG8gJygi UE9TVFBPTkVEIiAiVkVSSUZZIiAiSU5BQ1RJVkUiICJCTE9DS0VEIiAiRVJSQU5EUyIgIlRPRE8i ICJXSUxMX0RPIikpKSA7OyBza2lwIFRhc2sgc3RhdGVzLCBwcm9qZWN0cyBvbmx5CgkgICkKCSAp KSkK --e89a8f2345676be81804c08e1641 Content-Type: application/octet-stream; name="test.org" Content-Disposition: attachment; filename="test.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h2hq8mpa1 KiBMZXZlbCAxIAkJCQkJCQkgICA6bm9leHBvcnQ6CioqIExldmVsIDIJCQkJCQkJICAgIDpPdXRj b21lOgoqKiogTGV2ZWwgMwoqKioqIFdJUCBbI0FdIExldmVsIDQgLSBzaG91bGQgYmUgaW4gYWdl bmRhCioqKiogV0lQIFNob3VsZCBub3QgYmUgaW4gYWdlbmRhIChub3QgcHJpb3JpdHkgQSkKKioq KiBTaG91bGQgbm90IGJlIGluIGFnZW5kYSAoQmFja2xvZyBUYWcpCQkgICAgOlByb2plY3RfQmFj a2xvZzoKKioqKiBUT0RPIFsjQV0gU2hvdWxkIG5vdCBiZSBpbiBhZ2VuZGEgKFRPRE8sIG5vdCBQ cm9qZWN0KQo= --e89a8f2345676be81804c08e1641--