From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Re: org-mode 7.01, error while scheduling item Date: Wed, 18 Aug 2010 10:54:11 -0500 Message-ID: References: <87wrscxbfz.fsf@altern.org> <12008.1282069449@alphaville.usa.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=53604 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Olkxz-0004e9-Rd for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 11:54:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Olkxx-00085l-Rl for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 11:54:15 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:58483) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Olkxx-00085J-J0 for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 11:54:13 -0400 Received: by pzk33 with SMTP id 33so474667pzk.0 for ; Wed, 18 Aug 2010 08:54:12 -0700 (PDT) In-Reply-To: <12008.1282069449@alphaville.usa.hp.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Bastien , Org Mode >(it would be better if you reloaded the >appropriate .el files - org.el in this case - and *then* took the >backtrace.) I am not an elisp expert, nor know the internals of orgmode, so sorry about that. >There are two select-window calls in org-eval-in-calendar: which one >fails? I presume the first one, but it might be a good idea to make >sure. Another way to ask the same thing: is there a *Calendar* buffer >popped up when you get the error? If not, why not? No calendar window pops up. I have no idea why. On Tue, Aug 17, 2010 at 1:24 PM, Nick Dokos wrote: > Marcelo de Moraes Serpa wrote: > >> Hey guys, I'm still having this issue. I've tried downloading emacs >> again from emacsformacosx.com, but the problem is still there. >> >> Any ideas? >> >> Thanks, >> >> Marcelo. >> >> On Thu, Aug 5, 2010 at 1:37 PM, Marcelo de Moraes Serpa >> wrote: >> > Hi Bastien, I've posted the backtrace, it should be in the thread, a >> > few messages earlier. >> > > > I didn't find the backtrace in gmane, but I did find it eventually in > the list archive (I guess something thought it might be spam/malware and > got rid of it?) I append it (shortened to get rid of most of the binary > crud) to this mail for reference (it would be better if you reloaded the > appropriate .el files - org.el in this case - and *then* took the > backtrace.) > > There are two select-window calls in org-eval-in-calendar: which one > fails? =A0I presume the first one, but it might be a good idea to make > sure. =A0Another way to ask the same thing: is there a *Calendar* buffer > popped up when you get the error? If not, why not? > > Can you edebug-defun the function org-eval-in-calendar and then step > through it? > > More questions than answers, but maybe something will click. > > Nick > > > Function: > (defun org-eval-in-calendar (form &optional keepdate) > =A0"Eval FORM in the calendar window and return to current window. > Also, store the cursor date in variable org-ans2." > =A0(let ((sf (selected-frame)) > =A0 =A0 =A0 =A0(sw (selected-window))) > =A0 =A0(select-window (get-buffer-window "*Calendar*" t)) > =A0 =A0(eval form) > =A0 =A0(when (and (not keepdate) (calendar-cursor-to-date)) > =A0 =A0 =A0(let* ((date (calendar-cursor-to-date)) > =A0 =A0 =A0 =A0 =A0 =A0 (time (encode-time 0 0 0 (nth 1 date) (nth 0 date= ) (nth 2 date)))) > =A0 =A0 =A0 =A0(setq org-ans2 (format-time-string "%Y-%m-%d" time)))) > =A0 =A0(move-overlay org-date-ovl (1- (point)) (1+ (point)) (current-buff= er)) > =A0 =A0(select-window sw) > =A0 =A0(org-select-frame-set-input-focus sf))) > > Backtrace: > > Debugger entered--Lisp error: (wrong-type-argument window-live-p nil) > =A0select-window(nil) > =A0org-eval-in-calendar(nil t) > =A0byte-code(... [def date offset-years year month day calendar calendar-= forward-day time-to-days calendar-current-date nil 0 error "There was no ye= ar zero" 31 2 4 23 10 abs zerop 100 400 365 (12 31 -1) org-eval-in-calendar= t current-local-map copy-keymap org-defkey " > " org-calendar-select [mouse-1] org-calendar-select-mouse [mouse-2] [(met= a shift left)] #[nil "\300\301!\207" [org-eval-in-calendar ...] 2 nil nil] = [(meta shift right)] #[nil "\300\301!\207" [org-eval-in-calendar ...] 2 nil= nil] [(meta shift up)] #[nil "\300\301!\207" [org-eval-in-calendar ...] 2 = nil nil] [(meta shift down)] #[nil "\300\301!\207" [org-eval-in-calendar ..= .] 2 nil nil] [27 (shift left)] #[nil "\300\301!\207" [org-eval-in-calendar= ...] 2 nil nil] [27 (shift right)] #[nil "\300\301!\207" [org-eval-in-cale= ndar ...] 2 nil nil] [27 (shift up)] #[nil "\300\301!\207" [org-eval-in-cal= endar ...] 2 nil nil] [27 (shift down)] ...] 9) > =A0org-read-date(nil to-time nil nil nil nil) > =A0byte-code(... [time what end org-scheduled-time-regexp org-deadline-ti= me-regexp ts (scheduled deadline) org-back-to-heading t outline-next-headin= g re-search-forward scheduled match-string 1 apply encode-time org-parse-ti= me-string org-get-compact-tod org-read-date nil to-time (scheduled deadline= ) " " org-insert-time-stamp looking-at "\\( *\\)[^ > \n]*" 0 "\n" "[ =A0 =A0 =A0 =A0 ]*" throw exit "[^ > \n]*?" "[^ > \n]*" insert-before-markers -1 org-indent-to-column deadline closed repla= ce-match "" "--+<[^>]+>" " +" 32 "[ =A0 =A0]*\n" 10 point-at-eol default-ti= me default-input org-insert-labeled-timestamps-at-point org-scheduled-strin= g ...] 7) > =A0org-add-planning-info(scheduled nil closed) > =A0org-schedule(nil) > =A0call-interactively(org-schedule nil nil) > > >