From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tang Ling Subject: Re: Bug: fatal when opening agenda [8.2.5h (8.2.5h-82-gd91d4b-elpaplus /home/jeffrey/.emacs.d/elpa/org-plus-contrib-20140324/)] Date: Fri, 11 Apr 2014 04:54:02 +0000 (UTC) Message-ID: References: <8761n1dmlk.fsf@Padma.dharma.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYTeN-0006Mw-8g for emacs-orgmode@gnu.org; Fri, 11 Apr 2014 01:05:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYTeG-0008M2-8e for emacs-orgmode@gnu.org; Fri, 11 Apr 2014 01:05:15 -0400 Received: from plane.gmane.org ([80.91.229.3]:36451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYTeG-0008KQ-36 for emacs-orgmode@gnu.org; Fri, 11 Apr 2014 01:05:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WYTeC-0001Sa-S0 for emacs-orgmode@gnu.org; Fri, 11 Apr 2014 07:05:04 +0200 Received: from 131.207.242.128 ([131.207.242.128]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Apr 2014 07:05:04 +0200 Received: from ling.java by 131.207.242.128 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Apr 2014 07:05:04 +0200 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: emacs-orgmode@gnu.org Jeffrey DeLeo 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.