From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Error in org-agenda-get-deadlines Date: Sat, 25 Jan 2014 13:41:27 +0100 Message-ID: <87y524qlmw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W72Xu-00005c-Of for emacs-orgmode@gnu.org; Sat, 25 Jan 2014 07:41:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W72Xn-0000Qf-EP for emacs-orgmode@gnu.org; Sat, 25 Jan 2014 07:41:10 -0500 Received: from plane.gmane.org ([80.91.229.3]:44157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W72Xn-0000Qb-8J for emacs-orgmode@gnu.org; Sat, 25 Jan 2014 07:41:03 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W72Xj-00007Z-Io for emacs-orgmode@gnu.org; Sat, 25 Jan 2014 13:40:59 +0100 Received: from g231233196.adsl.alicedsl.de ([92.231.233.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Jan 2014 13:40:59 +0100 Received: from tjolitz by g231233196.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Jan 2014 13:40:59 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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