From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problem inserting date Date: Tue, 13 Nov 2012 00:47:07 -0500 Message-ID: <3987.1352785627@alphaville> References: <50A13DCE.10909@gmail.com> <50A1860D.8010903@gmail.com> <8573.1352764542@alphaville.americas.hpqcorp.net> <50A19F37.7030105@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TY9L7-0000Pi-FV for emacs-orgmode@gnu.org; Tue, 13 Nov 2012 00:47:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TY9L4-0007HO-Dj for emacs-orgmode@gnu.org; Tue, 13 Nov 2012 00:47:13 -0500 Received: from g6t0187.atlanta.hp.com ([15.193.32.64]:8559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TY9L4-0007HG-8f for emacs-orgmode@gnu.org; Tue, 13 Nov 2012 00:47:10 -0500 In-Reply-To: Message from Sean Lynch of "Mon, 12 Nov 2012 20:15:35 EST." <50A19F37.7030105@gmail.com> 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: Sean Lynch Cc: Jude DaShiell , emacs-orgmode@gnu.org Sean Lynch wrote: > > > C-c C-d is bound to org-deadline as it should be. I was thinking that I > might have something wacky in my setup that is screwing this up, but I > haven't found anything so far. > > > > You should be able to get a backtrace then by doing M-x toggle-debug-on-error > > and retrying the problematic command. > > > I get the following backtrace: > > Debugger entered--Lisp error: (error "Before first headline at position > 1 in buffer org-test.org") > signal(error ("Before first headline at position 1 in buffer > org-test.org")) > error("Before first headline at position %d in buffer %s" 1 # org-test.org>) > byte-code("\300\301`p#\207" [error "Before first headline at position > %d in buffer %s"] 4) > org-back-to-heading(t) > ... > org-add-planning-info(deadline nil closed) > org-deadline(nil) > call-interactively(org-deadline nil nil) > > > Also... I just found something very interesting with this behaviour that > will probably help debug this. > > If I have a frame with two windows split horizontally (two windows > side-by-side with C-x 3) with one window containing the org file I get > this error > > If I have a frame with only one window containing the org file, > everything works fine. > > If I have a frame with two windows split vertically (one above the other > with C-x 2) with one window containing the org file, everything works fine. > > Sorry, I still can't reproduce it. The backtrace is consistent with point being before the first headline, but not with point being at the end of the first second-level headline. Nick