From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: [bug] org-agenda view fails if I have missed a deadline Date: Mon, 30 Nov 2015 08:41:33 +0000 Message-ID: <87oaebhoaq.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3K1s-0006sr-6J for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 03:41:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3K1o-00026C-W5 for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 03:41:48 -0500 Received: from mail-am1on0144.outbound.protection.outlook.com ([157.56.112.144]:25628 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3K1o-00025o-NS for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 03:41:44 -0500 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 (posted this to gnus mailing list by mistake... sigh) Hello, with org up to date as of a minute ago, if I try to view my current agenda, which happens to have an entry that has missed its deadline (i.e. the deadline is in the past), org fails with an error: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (wrong-type-argument stringp nil) format(nil 1) (cond ((> diff 0) (format future diff)) ((string= future past) (format past diff)) (t (format past (abs diff)))) (let ((future (nth 1 org-agenda-deadline-leaders)) (past (nth 2 org-agenda-deadline-leaders))) (cond ((> diff 0) (format future diff)) ((string= future past) (format past diff)) (t (format past (abs diff))))) (if (= diff 0) (car org-agenda-deadline-leaders) (let ((future (nth 1 org-agenda-deadline-leaders)) (past (nth 2 org-agenda-deadline-leaders))) (cond ((> diff 0) (format future diff)) ((string= future past) (format past diff)) (t (format past (abs diff)))))) (let ((diff (if (< (org-today) current) diff (- deadline current)))) (if (= diff 0) (car org-agenda-deadline-leaders) (let ((future (nth 1 org-agenda-deadline-leaders)) (past (nth 2 org-agenda-deadline-leaders))) (cond ((> diff 0) (format future diff)) ((string= future past) (format past diff)) (t (format past (abs diff))))))) (org-agenda-format-item (let ((diff (if (< (org-today) current) diff (- deadline current)))) (if (= diff 0) (car org-agenda-deadline-leaders) (let ((future (nth 1 org-agenda-deadline-leaders)) (past (nth 2 org-agenda-deadline-leaders))) (cond ((> diff 0) (format future diff)) ((string= future past) (format past diff)) (t (format past (abs diff))))))) head level category tags (and (= diff 0) timestr)) --8<---------------cut here---------------end--------------->8--- Changing the deadline in the offending entry allows the agenda to be shown. Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3beta-816-gae83b3