From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Error in org-agenda-get-deadlines
Date: Sat, 25 Jan 2014 13:41:27 +0100 [thread overview]
Message-ID: <87y524qlmw.fsf@gmail.com> (raw)
Hi List,
this is probably not a bug but rather a problem with my configuration
(since nobody else complained about it so far).
When calling the agenda with 'C-a a' I get the following error
,----------------------------------------------------------------
| Debugger entered--Lisp error: (wrong-type-argument stringp nil)
| re-search-forward(nil nil t)...
| org-agenda-get-deadlines()...
| org-agenda-get-day-entries("/home...")
| org-agenda-list(nil) ...
| org-agenda(nil)
| call-interactively(org-agenda nil nil)
`----------------------------------------------------------------
and an empty agenda buffer. Debugging reveals that in the following
function 'regexp' is nil because both 'org-deadline-time-hour-regexp'
and 'org-deadline-time-regexp'are nil, causing the error later on in the
re-search-forward call:
,-----------------------------------------------------------------
| (defun org-agenda-get-deadlines (&optional with-hour)
| "Return the deadline information for agenda display.
| When WITH-HOUR is non-nil, only return deadlines with an hour
| specification like [h]h:mm."
| (let* ([...]
| (regexp (if with-hour
| org-deadline-time-hour-regexp
| org-deadline-time-regexp)) ; => nil
| [...] )
| (goto-char (point-min))
| (while (re-search-forward regexp nil t) [...]) ; => error
| ...))
`-----------------------------------------------------------------
I wonder why these variables, defined in org.el, are nil? I don't seem
to set them anywhere, and they should be defined once org.el is loaded,
shouldn't they?
--
cheers,
Thorsten
next reply other threads:[~2014-01-25 12:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-25 12:41 Thorsten Jolitz [this message]
2014-01-25 12:48 ` Error in org-agenda-get-deadlines Thorsten Jolitz
2014-01-25 13:51 ` Bastien
2014-01-25 18:30 ` Thorsten Jolitz
2014-01-25 18:43 ` Thorsten Jolitz
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=87y524qlmw.fsf@gmail.com \
--to=tjolitz@gmail.com \
--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).