Re: [O] Bug: agenda generation failed if there is a blank title with a timestamp [7.7]

2011-09-06 Thread Bernt Hansen
Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

 Meng Wu men...@yahoo-inc.com writes:

 if the agenda file contains the following title,

  
  2011-08-30 Tue 11:26


 which has blank title and a timestamp, then the C-c a a will fail with
 message like this:

 org-agenda-highlight-todo: Args out of range: #(  newgtd:  0 14 (org-=
 category newgtd tags nil org-highest-priority 65 org-lowest-priority 67 t=
 ime-of-day nil ...)), 27, 31


 if the title is not blank, then everything is alright.

 As far as I know, blank headlines are not officially supported. You have
 to write something which isn't a space on that headline.

It still shouldn't break the agenda...
You're probably dead in the water until you find and fix this heading
line (ie. you can't display any agendas)

I can't reproduce this with my version of org-mode Org-mode version 7.7
(release_7.7.205.gce02a) so maybe it's already fixed?

-Bernt



[O] Bug: agenda generation failed if there is a blank title with a timestamp [7.7]

2011-08-30 Thread Meng Wu

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


if the agenda file contains the following title,=20

 
 2011-08-30 Tue 11:26



which has blank title and a timestamp, then the C-c a a will fail with
message like this:

org-agenda-highlight-todo: Args out of range: #(  newgtd:  0 14 (org-=
category newgtd tags nil org-highest-priority 65 org-lowest-priority 67 t=
ime-of-day nil ...)), 27, 31


if the title is not blank, then everything is alright.


Thanks.

Emacs  : GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.5=
4)
of 2011-07-29 on braeburn.aquamacs.org - Aquamacs Distribution 2.3
Package: Org-mode version 7.7

current state:

(setq
org-log-done t
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
org-todo-keyword-faces '((TODO . org-warning) (CANCELLED . shadow)
  (DEFERRED :foreground blue :weight bold))
org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-co=
mmand-hook)
org-agenda-custom-commands '((v Marriage ((tags-todo MARRIAGE)))
  (p Projects ((tags PROJECT)))
  (A Office and Home Lists
   ((agenda 
 ((org-agenda-ndays 1)
  (org-agenda-sorting-strategy
   (quote ((agenda time-up priority-down ta=
g-up todo-state-up
  (org-deadline-warning-days 0))
 )
(tags-todo HOME) (tags-todo OFFICE) (ta=
gs-todo READING)
(tags-todo COMPUTER) (tags-todo LIFE) (=
tags-todo MARRIAGE)
(tags-todo SPORT))
   )
  (d Daily Action List
   ((agenda 
 ((org-agenda-ndays 1)
  (org-agenda-sorting-strategy
   (quote ((agenda time-up priority-down ta=
g-up todo-state-up
  (org-deadline-warning-days 0))
 )
)
   )
  (h Home Daily Action List
   ((agenda ) (tags-todo HOME) (tags-todo =
READING)
(tags-todo COMPUTER) (tags-todo LIFE) (=
tags-todo MARRIAGE)
(tags-todo SPORT))
   ((org-agenda-ndays 1)
(org-agenda-sorting-strategy
 (quote ((agenda time-up priority-down tag-=
up todo-state-up
(org-deadline-warning-days 0)
(org-agenda-filter-preset (quote (-OFFICE=

   )
  (o Office Daily Action List
   ((agenda ) (tags-todo OFFICE) (tags-todo=
READING)
(tags-todo COMPUTER) (tags-todo LIFE) (=
tags-todo MARRIAGE)
(tags-todo SPORT))
   ((org-agenda-ndays 1)
(org-agenda-sorting-strategy
 (quote ((agenda time-up priority-down tag-=
up todo-state-up
(org-agenda-filter-preset (quote (-HOME))=
))
   )
  )
org-agenda-files '(~/gtd/newgtd.org ~/gtd/someday.org)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-after-todo-state-change-hook '(org-clock-out-if-current)
outline-minor-mode-prefix [(control o)]
org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
org-export-latex-format-toc-function 'org-export-latex-format-toc-default
org-protocol-protocol-alist '((org-mac-safari-tabs :protocol safari-tab=
s :function
org-mac-safari-tabs :kill-client t)
   (org-mac-remember :protocol mac-remember=
:function
org-mac-protocol-remember :kill-client t)
   )
org-support-shift-select t
org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-comman=
d-maybe
  org-babel-hide-result-toggle-maybe)
org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-confi=
gure-edit-buffer)
org-mac-mail-account men...@yahoo-inc.com
org-confirm-shell-link-function 'yes-or-no-p
org-export-first-hook '(org-beamer-initialize-open-trackers)
org-clock-persist t

Re: [O] Bug: agenda generation failed if there is a blank title with a timestamp [7.7]

2011-08-30 Thread Nicolas Goaziou
Hello,

Meng Wu men...@yahoo-inc.com writes:

 if the agenda file contains the following title,

  
  2011-08-30 Tue 11:26


 which has blank title and a timestamp, then the C-c a a will fail with
 message like this:

 org-agenda-highlight-todo: Args out of range: #(  newgtd:  0 14 (org-=
 category newgtd tags nil org-highest-priority 65 org-lowest-priority 67 t=
 ime-of-day nil ...)), 27, 31


 if the title is not blank, then everything is alright.

As far as I know, blank headlines are not officially supported. You have
to write something which isn't a space on that headline.


Regards,

-- 
Nicolas Goaziou