emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] org-agenda view fails if I have missed a deadline
@ 2015-11-30  8:41 Eric S Fraga
  2015-11-30 14:48 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2015-11-30  8:41 UTC (permalink / raw)
  To: emacs-orgmode

(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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-30 14:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-30  8:41 [bug] org-agenda view fails if I have missed a deadline Eric S Fraga
2015-11-30 14:48 ` Nicolas Goaziou
2015-11-30 14:55   ` Eric S Fraga

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).