From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Avoid lisp error with (org-deadline nil "+1d") Date: Wed, 23 Nov 2011 07:36:40 +0100 Message-ID: <040C8B85-F131-4FE1-ABCF-AB368CF42C5A@gmail.com> References: <871ut1hzh0.fsf@micropit.couberia.bzh> <878vn73j7o.fsf@micropit.couberia.bzh> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RT6Rr-0001FT-On for emacs-orgmode@gnu.org; Wed, 23 Nov 2011 01:36:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RT6Rq-0000Nt-IX for emacs-orgmode@gnu.org; Wed, 23 Nov 2011 01:36:47 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:48772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RT6Rq-0000No-C0 for emacs-orgmode@gnu.org; Wed, 23 Nov 2011 01:36:46 -0500 Received: by bke17 with SMTP id 17so1397182bke.0 for ; Tue, 22 Nov 2011 22:36:45 -0800 (PST) In-Reply-To: <878vn73j7o.fsf@micropit.couberia.bzh> 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: =?iso-8859-1?Q?Peter_M=FCnster?= Cc: emacs-orgmode@gnu.org Fixed, thanks, please verify. - Carsten On 23.11.2011, at 07:14, Peter M=FCnster wrote: > On Tue, Nov 22 2011, Carsten Dominik wrote: >=20 >> This is not allowed, we cannot define a variable defined in another = package. >=20 > Oh, pardon. >=20 >=20 >> Can you send a backtrace of the error, please? >=20 > Of course (from "emacs -Q"): >=20 > --8<---------------cut here---------------start------------->8--- > Debugger entered--Lisp error: (void-variable parse-time-weekdays) > org-read-date-get-relative("+1d" (20172 36366 853978) (20170 55280)) > org-read-date-analyze("+1d" (20170 55280) (0 0 0 22 11 2011 2 nil = 3600)) > byte-code("=08\306>\203J. \203. ;\203J.\307\310 = \"\203J.\212\311\312!\210\212\313 \210`).\314=08\315=3D\203-.=0B= \202..\f\n\312#\203I.\316\317!.\320\321\322.!\".3.\205G.\323.!.4)=08\203y.= ;\203i.\307\310 \"\203i.\320\321\324 .3\325.3!#\"\202x. = \206x.\326\327\330\327\211.3.4&.=11.5\203\244.=08\331\235\203\244.=08\315=3D= \203\217.=0E6\202\221.=0E7\332\261.\210\333 = .8\327\211\211.9C&.\210\327.\212\214\327\211\211\211\211.:.=1E;.<.=3D\311\= 312!\210\334.>\335P!\210\317\225b\210i.=3D\336\225b\210m\203\324.\337c\210= \202\327.\317u\210=08\204\351.\334\340.?P!\204\351.\341\342\327\"\210\334.= >!\204\f.\334\343.@\344Q!\203\f.\316\317!.A\232\204\f.\336\224\336\225}\21= 0\202!.\345\337!\210\346u\210``}\210.B\203!.\347.=3D!\210=08.CB.<.<\203s.=0E= <\211A.<@\211.;\315=3D\203C.\314=0B= \327\312#\204b.=0E;\350=3D\203R.\314\f\327\312#\204b.=0E;\351=3D\203'.\314= .D\327\312#\203'.\352\353!\210\334\354!\203'.\352\353!\210\202'.\334\355!\= 203}.\352\353!\210.B\203\213.n\203\213.\347.=3D!\210=08\203\375.n\204\237.= `Sf\356=3D\204\237.\332\202\240.\353=08\315=3D\203\253.=0E6\202\276.=08\35= 0=3D\203\266.=0E7\202\276.=08\351=3D\205\276.=0EE\332\261.\210\333 = .8\206\321.=08\351=3D\205\321.=0EF=08\351=3D\327\211.9C&.=15n\204\367.`Sf\= 356=3D\204\367.\327f\357>\204\367.m\204\367.\332\202\370.\353c\210\317=7F\= 210eb\210~\210\334\360!\203.=02`Sf\361\232\203.=02`S\362 |\210..=07\207" = [what time end org-scheduled-time-regexp org-deadline-time-regexp ts = (scheduled deadline) string-match "^[-+]+[0-9]" org-back-to-heading t = outline-next-heading re-search-forward scheduled match-string 1 apply = encode-time org-parse-time-string org-get-compact-tod = org-read-date-analyze decode-time org-read-date nil to-time (scheduled = deadline) " " org-insert-time-stamp looking-at "\\( *\\)[^.\n]*" 0 "\n" = "[ ]*" throw exit "[^.\n]*?" "[^.\n]*" insert-before-markers -1 = org-indent-to-column deadline closed replace-match "" "--+<[^>]+>" "^[ = ]+" 32 (32 10) "[ ]*\n" 10 ...] 8) > org-add-planning-info(deadline "+1d" closed) > org-deadline(nil "+1d") > eval((org-deadline nil "+1d") nil) > eval-expression((org-deadline nil "+1d") nil) > call-interactively(eval-expression nil nil) > --8<---------------cut here---------------end--------------->8--- >=20 > --=20 > Peter >=20 >=20