From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Org-Agenda doesn't work Date: Sat, 12 Apr 2014 09:17:21 -0400 Message-ID: <877g6uk7q6.fsf@gmail.com> References: <86ppknb14d.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYxoT-0006nh-0L for emacs-orgmode@gnu.org; Sat, 12 Apr 2014 09:17:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYxoM-0005G8-OW for emacs-orgmode@gnu.org; Sat, 12 Apr 2014 09:17:40 -0400 Received: from plane.gmane.org ([80.91.229.3]:53768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYxoM-0005Fo-HY for emacs-orgmode@gnu.org; Sat, 12 Apr 2014 09:17:34 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WYxoK-0002xe-Qr for emacs-orgmode@gnu.org; Sat, 12 Apr 2014 15:17:32 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Apr 2014 15:17:32 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Apr 2014 15:17:32 +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 David Masterson writes: > I got most of Org working again, but then the following error came up in > org-agenda. I removed the ELC files to try to make the error more > clear. Anyone know what the problem is? > > Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) > put-text-property(23003 nil org-effort "15") > ... > org-refresh-properties("Effort" org-effort) > ... > org-agenda-prepare("TODO") > ... > org-todo-list(nil) > call-interactively(org-todo-list) > ... It's the same error that Ken Mankoff encountered: http://thread.gmane.org/gmane.emacs.orgmode/84826 I believe there was one more instance of this but I couldn't find it in gmane. Try this patch: --8<---------------cut here---------------start------------->8--- diff --git a/lisp/org.el b/lisp/org.el index f8615a2..bd9c05e 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9393,7 +9393,7 @@ property to set." (save-excursion (org-back-to-heading t) (put-text-property - (point-at-bol) (outline-next-heading) tprop p)))))))) + (point-at-bol) (or (outline-next-heading) (point-max)) tprop p)))))))) ;;;; Link Stuff --8<---------------cut here---------------end--------------->8--- Untested and based on some assumptionts that I have not verified: that outline-next-heading returns a buffer position, except when there is no next heading, in which case it returns nil. put-text-property wants buffer positions though, so in that case we return the end-of-buffer position. -- Nick