From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: emacs-orgmode@gnu.org
Subject: Re: [bug] org-agenda view fails if I have missed a deadline
Date: Mon, 30 Nov 2015 15:48:53 +0100 [thread overview]
Message-ID: <87poyrlezu.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87oaebhoaq.fsf@pinto.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Mon, 30 Nov 2015 08:41:33 +0000")
Hello,
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> (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:
>
> 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))
I cannot reproduce it. What is your value for
`org-agenda-deadline-leaders'? It should consists of 3 strings.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2015-11-30 14:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87poyrlezu.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--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 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).