[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: fatal when opening agenda [8.2.5h (8.2.5h-82-gd91d4b-elpap
From: |
Tang Ling |
Subject: |
Re: [O] Bug: fatal when opening agenda [8.2.5h (8.2.5h-82-gd91d4b-elpaplus <at> /home/jeff rey/.emacs.d/elpa/org-plus-contrib-20140324/)] |
Date: |
Fri, 11 Apr 2014 04:54:02 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Jeffrey DeLeo <jeffreydeleo <at> gmail.com> writes:
>
>
> 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.
> ------------------------------------------------------------------------
>
> Trying to use the org-agenda gives fatal error.
> (org-agenda) then hit 'a' or 't'
>
> Stack trace:
>
> (wrong-type-argument integer-or-marker-p nil)
> put-text-property(101818 nil org-effort "0:30")
> (save-excursion (org-back-to-heading t) (put-text-property (point-at-
bol)
> (outline-next-heading) tprop p))
> (while (re-search-forward (concat "^[ ]*:" dprop ": +\\(.*\\)[
> ]*$")
Found solution of this bug.
Due to the (outline-next-heading) method return nil value when current
heading is the last heading in document. So it cannot work correctly
during invoke (put-text-properties)
Temporary solution:
1. Add new headline at the end of org-mode document, like this:
* TODO hello
:PROPERTIES:
:Effort: 0:10
:END:
* duplicated headline
2. Modify the source code of org-mode and then re-compile it.
This need to modify the method (org-refresh-properties) in org.el
change the following line:
(put-text-property
(point-at-bol) (outline-next-heading) tprop p)
to:
(put-text-property
(point-at-bol) (or (outline-next-heading)
(point-max)) tprop p)
Hope it works.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [O] Bug: fatal when opening agenda [8.2.5h (8.2.5h-82-gd91d4b-elpaplus <at> /home/jeff rey/.emacs.d/elpa/org-plus-contrib-20140324/)],
Tang Ling <=