emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Fix typographical errors in stuck project help
@ 2007-04-24  1:04 Bernt Hansen
  2007-04-24  6:50 ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2007-04-24  1:04 UTC (permalink / raw)
  To: emacs-orgmode

Hi Carsten,

I stumbled across some typos today in version 4.71 when reading through
the org-stuck projects messages.  Patch follows.

I'm having difficulty getting org-stuck-projects working correctly.
When I use the default settings C-a # still wants to include DONE
projects in my stuck project view.  It's probably something silly I'm
not getting right.

Here's my test org file:

---- test.org
#+SEQ_TODO: TODO NEXT | DONE
* First Heading
** TODO Project 1A
** DONE Project 1B
   CLOSED: [2007-04-23 Mon 20:29]
* Second Heading
** Project 2A
*** NEXT Task 1
*** TODO Task 2
** Project 2B
*** TODO Task 1
*** TODO Task 2
---- end of test.org

org-stuck-projects is defined as:

(setq org-stuck-projects
  '("+LEVEL=2/-DONE" ("NEXT") ("INFO")))

but when I ask for stuck projects on this file I get:

List of stuck projects:
  test:       .TODO Project 1A
  test:       .DONE Project 1B
  test:       .Project 2B

Why does project 1B show up in the list?  It's DONE.
I'm confused. :)

Thanks for a great tool!
Bernt

diff -ru orig/org.el new/org.el
--- orig/org.el 2007-04-23 20:39:46.000000000 -0400
+++ new/org.el  2007-04-23 20:45:14.000000000 -0400
@@ -1815,12 +1815,12 @@
 This is a list of three items:
 1. A tags/todo matcher string that is used to identify a project.
    The entire tree below a headline matched by this is considered a project.
-2. A list of TODO keywords itentifying non-stuck projects.
+2. A list of TODO keywords identifying non-stuck projects.
    If the project subtree contains any headline with one of these todo
-   keywords, the project is consitered to be not stuck.
+   keywords, the project is considered to be not stuck.
 3. A list of tags identifying non-stuck projects.
    If the project subtree contains any headline with one of these tags,
-   the project is consitered to be not stuck.
+   the project is considered to be not stuck.
 
 After defining this variable, you may use \\[org-agenda-list-stuck-projects]
 or `C-c a #' to produce the list."

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Fix typographical errors in stuck project help
  2007-04-24  1:04 [PATCH] Fix typographical errors in stuck project help Bernt Hansen
@ 2007-04-24  6:50 ` Carsten Dominik
  2007-04-24 13:39   ` Bernt Hansen
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2007-04-24  6:50 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode


On Apr 24, 2007, at 3:04, Bernt Hansen wrote:

> Hi Carsten,
>
> I stumbled across some typos today in version 4.71 when reading through
> the org-stuck projects messages.  Patch follows.

Thanks.

>
> I'm having difficulty getting org-stuck-projects working correctly.
> When I use the default settings C-a # still wants to include DONE
> projects in my stuck project view.  It's probably something silly I'm
> not getting right.

I cannot reproduce this.  I get no projects listed at all, which is 
correct because each of them is either DONE or has a TODO entry.

Are you sure you have not modified org-stuck-projects?  What is its 
value?

- Carsten


>
> Here's my test org file:
>
> ---- test.org
> #+SEQ_TODO: TODO NEXT | DONE
> * First Heading
> ** TODO Project 1A
> ** DONE Project 1B
>    CLOSED: [2007-04-23 Mon 20:29]
> * Second Heading
> ** Project 2A
> *** NEXT Task 1
> *** TODO Task 2
> ** Project 2B
> *** TODO Task 1
> *** TODO Task 2
> ---- end of test.org
>
> org-stuck-projects is defined as:
>
> (setq org-stuck-projects
>   '("+LEVEL=2/-DONE" ("NEXT") ("INFO")))
>
> but when I ask for stuck projects on this file I get:
>
> List of stuck projects:
>   test:       .TODO Project 1A
>   test:       .DONE Project 1B
>   test:       .Project 2B
>
> Why does project 1B show up in the list?  It's DONE.
> I'm confused. :)
>
> Thanks for a great tool!
> Bernt
>
> diff -ru orig/org.el new/org.el
> --- orig/org.el 2007-04-23 20:39:46.000000000 -0400
> +++ new/org.el  2007-04-23 20:45:14.000000000 -0400
> @@ -1815,12 +1815,12 @@
>  This is a list of three items:
>  1. A tags/todo matcher string that is used to identify a project.
>     The entire tree below a headline matched by this is considered a 
> project.
> -2. A list of TODO keywords itentifying non-stuck projects.
> +2. A list of TODO keywords identifying non-stuck projects.
>     If the project subtree contains any headline with one of these todo
> -   keywords, the project is consitered to be not stuck.
> +   keywords, the project is considered to be not stuck.
>  3. A list of tags identifying non-stuck projects.
>     If the project subtree contains any headline with one of these 
> tags,
> -   the project is consitered to be not stuck.
> +   the project is considered to be not stuck.
>
>  After defining this variable, you may use 
> \\[org-agenda-list-stuck-projects]
>  or `C-c a #' to produce the list."
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Fix typographical errors in stuck project help
  2007-04-24  6:50 ` Carsten Dominik
@ 2007-04-24 13:39   ` Bernt Hansen
  2007-04-24 14:27     ` Bernt Hansen
  0 siblings, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2007-04-24 13:39 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <dominik@science.uva.nl> writes:

> On Apr 24, 2007, at 3:04, Bernt Hansen wrote:
>> I'm having difficulty getting org-stuck-projects working correctly.
>> When I use the default settings C-a # still wants to include DONE
>> projects in my stuck project view.  It's probably something silly I'm
>> not getting right.
>
> I cannot reproduce this.  I get no projects listed at all, which is
> correct because each of them is either DONE or has a TODO entry.
>
> Are you sure you have not modified org-stuck-projects?  What is its
> value?
>

M-x describe-variable
org-stuck-projects

shows:

org-stuck-projects is a variable defined in `org.el'.
Its value is 
("+LEVEL=2/-DONE"
 ("NEXT")
 ("INFO"))

I'm using Org-mode version 4.71
and Debian's emacs-snapshot version 20060302-1

The stuck project view has never worked for me.  I'm not a lisp
programmer but is there anything I can do to track down what is going on
here?

Bernt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Fix typographical errors in stuck project help
  2007-04-24 13:39   ` Bernt Hansen
@ 2007-04-24 14:27     ` Bernt Hansen
  2007-04-25  6:46       ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2007-04-24 14:27 UTC (permalink / raw)
  To: emacs-orgmode

Bernt Hansen <bernt@norang.ca> writes:

> Carsten Dominik <dominik@science.uva.nl> writes:
>
>> On Apr 24, 2007, at 3:04, Bernt Hansen wrote:
>>> I'm having difficulty getting org-stuck-projects working correctly.
>>> When I use the default settings C-a # still wants to include DONE
>>> projects in my stuck project view.  It's probably something silly I'm
>>> not getting right.
>>
>> I cannot reproduce this.  I get no projects listed at all, which is
>> correct because each of them is either DONE or has a TODO entry.
>>
>> Are you sure you have not modified org-stuck-projects?  What is its
>> value?
>>
>

> I'm using Org-mode version 4.71
> and Debian's emacs-snapshot version 20060302-1
>
> The stuck project view has never worked for me.  I'm not a lisp
> programmer but is there anything I can do to track down what is going on
> here?

Carsten,

I've stripped my .emacs down to only org-related settings

Using org-4.72 exhibits the same behaviour with
GNU Emacs 22.0.95.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2007-03-02 on pacem, modified by Debian

I'm not sure what to try next...

Thanks for looking at it
Bernt

---- .emacs ----
(add-to-list 'load-path (expand-file-name "~/org-4.72"))

(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)

;;
;; Enable color highligthing
;;
(global-font-lock-mode 1)

(setq org-stuck-projects
  '("+LEVEL=2/-DONE" ("NEXT") ("INFO")))

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(org-agenda-files (quote ("~/org/test.org"))))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )
---- end .emacs ----

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [PATCH] Fix typographical errors in stuck project help
  2007-04-24 14:27     ` Bernt Hansen
@ 2007-04-25  6:46       ` Carsten Dominik
  2007-04-25 12:33         ` Bernt Hansen
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2007-04-25  6:46 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode


On Apr 24, 2007, at 16:27, Bernt Hansen wrote:
> I've stripped my .emacs down to only org-related settings
>
> Using org-4.72 exhibits the same behaviour with
> GNU Emacs 22.0.95.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) 
> of
> 2007-03-02 on pacem, modified by Debian
>
> I'm not sure what to try next...

Bernt,

thanks for insisting.  I did find and fix the bug.  Don't know why I 
could not see it before.

- Carsten



--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [PATCH] Fix typographical errors in stuck project help
  2007-04-25  6:46       ` Carsten Dominik
@ 2007-04-25 12:33         ` Bernt Hansen
  0 siblings, 0 replies; 6+ messages in thread
From: Bernt Hansen @ 2007-04-25 12:33 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik <dominik@science.uva.nl> writes:

> I did find and fix the bug.  Don't know why I
> could not see it before.

Thanks!
-- 
Bernt

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-04-25 12:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-24  1:04 [PATCH] Fix typographical errors in stuck project help Bernt Hansen
2007-04-24  6:50 ` Carsten Dominik
2007-04-24 13:39   ` Bernt Hansen
2007-04-24 14:27     ` Bernt Hansen
2007-04-25  6:46       ` Carsten Dominik
2007-04-25 12:33         ` Bernt Hansen

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).