From: Tang Ling <ling.java@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: fatal when opening agenda [8.2.5h (8.2.5h-82-gd91d4b-elpaplus <at> /home/jeffrey/.emacs.d/elpa/org-plus-contrib-20140324/)]
Date: Fri, 11 Apr 2014 04:54:02 +0000 (UTC) [thread overview]
Message-ID: <loom.20140411T064536-506@post.gmane.org> (raw)
In-Reply-To: 8761n1dmlk.fsf@Padma.dharma.lan
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.
next prev parent reply other threads:[~2014-04-11 5:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-26 15:08 Bug: fatal when opening agenda [8.2.5h (8.2.5h-82-gd91d4b-elpaplus @ /home/jeffrey/.emacs.d/elpa/org-plus-contrib-20140324/)] Jeffrey DeLeo
2014-04-11 4:54 ` Tang Ling [this message]
2014-04-11 9:30 ` Bastien
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=loom.20140411T064536-506@post.gmane.org \
--to=ling.java@gmail.com \
--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).