all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: [bug] org-agenda view fails if I have missed a deadline
Date: Mon, 30 Nov 2015 08:41:33 +0000	[thread overview]
Message-ID: <87oaebhoaq.fsf@pinto.chemeng.ucl.ac.uk> (raw)

(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

             reply	other threads:[~2015-11-30  8:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-30  8:41 Eric S Fraga [this message]
2015-11-30 14:48 ` [bug] org-agenda view fails if I have missed a deadline Nicolas Goaziou
2015-11-30 14:55   ` Eric S Fraga

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oaebhoaq.fsf@pinto.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.