From mboxrd@z Thu Jan 1 00:00:00 1970 From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Subject: Re: [PATCH] Avoid lisp error with (org-deadline nil "+1d") Date: Wed, 23 Nov 2011 07:14:10 +0100 Message-ID: <878vn73j7o.fsf@micropit.couberia.bzh> References: <871ut1hzh0.fsf@micropit.couberia.bzh> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RT66I-0005Q2-SZ for emacs-orgmode@gnu.org; Wed, 23 Nov 2011 01:14:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RT66H-0005F0-Nk for emacs-orgmode@gnu.org; Wed, 23 Nov 2011 01:14:30 -0500 Received: from lo.gmane.org ([80.91.229.12]:55834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RT66H-0005Et-Cj for emacs-orgmode@gnu.org; Wed, 23 Nov 2011 01:14:29 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RT66F-0005Vl-Uf for emacs-orgmode@gnu.org; Wed, 23 Nov 2011 07:14:27 +0100 Received: from arennes-359-1-145-187.w86-214.abo.wanadoo.fr ([86.214.84.187]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Nov 2011 07:14:27 +0100 Received: from pmlists by arennes-359-1-145-187.w86-214.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Nov 2011 07:14:27 +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 On Tue, Nov 22 2011, Carsten Dominik wrote: > This is not allowed, we cannot define a variable defined in another packa= ge. Oh, pardon. > Can you send a backtrace of the error, please? Of course (from "emacs -Q"): --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("\306>\203J. \203.=00 ;\203J.\307\310 \"\203J.\212\311\312!\21= 0\212\313 \210`).\314\315=3D\203-.=0B\202..\f\n\312#\203I.\316\317!.\320\3= 21\322.!\".3.\205G.\323.!.4)\203y. ;\203i.\307\310 \"\203i.\320\321\324 .3= \325.3!#\"\202x. \206x.\326\327\330\327\211.3.4&.=11.5\203\244.\331\235\20= 3\244.\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.>\335= P!\210\317\225b\210i.=3D\336\225b\210m\203\324.\337c\210\202\327.\317u\210= \204\351.\334\340.?P!\204\351.\341\342\327\"\210\334.>!\204\f.\334\343.@\34= 4Q!\203\f.\316\317!.A\232\204\f.\336\224\336\225}\210\202!.\345\337!\210\34= 6u\210``}\210.B\203!.\347.=3D!\210.CB.<.<\203s.=0E<\211A.<@\211.;\315=3D\2= 03C.\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\203\375.n\20= 4\237.`Sf\356=3D\204\237.\332\202\240.\353\315=3D\203\253.=0E6\202\276.\3= 50=3D\203\266.=0E7\202\276.\351=3D\205\276.=0EE\332\261.\210\333 .8\206\32= 1.\351=3D\205\321.=0EF\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\210eb\210~\210\33= 4\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) stri= ng-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 o= rg-get-compact-tod org-read-date-analyze decode-time org-read-date nil to-t= ime (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 Peter