emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Error in org-agenda-get-deadlines
@ 2014-01-25 12:41 Thorsten Jolitz
  2014-01-25 12:48 ` Thorsten Jolitz
  2014-01-25 13:51 ` Bastien
  0 siblings, 2 replies; 5+ messages in thread
From: Thorsten Jolitz @ 2014-01-25 12:41 UTC (permalink / raw)
  To: emacs-orgmode


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

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

end of thread, other threads:[~2014-01-25 18:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-25 12:41 Error in org-agenda-get-deadlines Thorsten Jolitz
2014-01-25 12:48 ` Thorsten Jolitz
2014-01-25 13:51 ` Bastien
2014-01-25 18:30   ` Thorsten Jolitz
2014-01-25 18:43     ` Thorsten Jolitz

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