From mboxrd@z Thu Jan 1 00:00:00 1970 From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse) Subject: Re: [bug] org-agenda-diary-entry fails Date: Tue, 19 Feb 2013 15:54:14 +0000 Message-ID: <87obfg47vd.fsf@riseup.net> References: <87bobgtzgd.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, Eric S Fraga writes: > Hello, > > with org up to date from git repository as of a few minutes ago, trying > to insert a day diary entry from the agenda view > (org-agenda-diary-entry) fails. Debug trace is attached. > > I cannot see what could be causing this problem. Any suggestions? I > can start trying to bisect on recent changes. > > Thanks, > eric Does the `diary.org' file already exist with at least one headline in it? > Debugger entered--Lisp error: (error "Before first headline at position 1 in buffer diary.org") > signal(error ("Before first headline at position 1 in buffer diary.org")) > error("Before first headline at position %d in buffer %s" 1 #) > (condition-case nil (outline-back-to-heading invisible-ok) (error > (error "Before first headline at position %d in buffer %s" (point) > (current-buffer)))) Granted, this is an issue that the org-diary really should be able to handle, but it's worth trying this again in a file with at least one headline. I am using a datetree-formatted org file that I'd already been using for a while as an org-capture target before putting my diary entries there. So far it's been okay. Let me know how it goes, -- WGG GnuPG/PGP key: subkeys.gnupg.net 0D2D3F9E