From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Logbook not working? Date: Thu, 23 Feb 2017 14:41:43 -0500 Message-ID: References: <874lzketr8.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134fd38870297054937cd07 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgzGs-0003xB-KM for emacs-orgmode@gnu.org; Thu, 23 Feb 2017 14:41:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgzGq-0004cn-Tr for emacs-orgmode@gnu.org; Thu, 23 Feb 2017 14:41:46 -0500 Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:34985) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgzGq-0004cf-Ml for emacs-orgmode@gnu.org; Thu, 23 Feb 2017 14:41:44 -0500 Received: by mail-oi0-x232.google.com with SMTP id 62so569852oih.2 for ; Thu, 23 Feb 2017 11:41:44 -0800 (PST) In-Reply-To: <874lzketr8.fsf@nicolasgoaziou.fr> 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" To: Nicolas Goaziou Cc: emacs-orgmode Mailinglist --001a1134fd38870297054937cd07 Content-Type: text/plain; charset=UTF-8 I set `debug-on-error` to `t` and went through creating a log entry: Debugger entered--Lisp error: (error "Before first headline at position 1151 in buffer test3.org") signal(error ("Before first headline at position 1151 in buffer test3.org ")) error("Before first headline at position %d in buffer %s" 1151 #) org-back-to-heading(t) org-end-of-meta-data(nil) org-log-beginning(t) org-store-log-note() org-ctrl-c-ctrl-c(nil) funcall-interactively(org-ctrl-c-ctrl-c nil) #(org-ctrl-c-ctrl-c nil nil) ad-Advice-call-interactively(# org-ctrl-c-ctrl-c nil nil) apply(ad-Advice-call-interactively # (org-ctrl-c-ctrl-c nil nil)) call-interactively(org-ctrl-c-ctrl-c nil nil) command-execute(org-ctrl-c-ctrl-c) Here's ECM, which only contains all my (kudgy, inefficient, wrong?) header stuff: #+TITLE: \zwnj^{147}Pm #+AUTHOR: 147Pm #+EMAIL: borgauf@sdf.org #+DATE: 2017-02-08T14:26:12 #+Filetags: :CompleteReWrite: #+LANGUAGE: en # #+INFOJS_OPT: view:showall ltoc:t mouse:underline path: http://orgmode.org/org-info.js #+HTML_HEAD: #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+OPTIONS: H:15 num:15 toc:nil \n:nil @:t ::t |:t _:{} *:t ^:{} prop:t #+OPTIONS: prop:t # This makes MathJax not work # #+OPTIONS: tex:imagemagick # this makes MathJax work #+OPTIONS: tex:t #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [american] # Setup tikz package for both LaTeX and HTML export: #+LATEX_HEADER: \usepackage{tikz} #+LATEX_HEADER: \usepackage{commath} #+LaTeX_HEADER: \usepackage{pgfplots} #+LaTeX_HEADER: \usepackage{sansmath} #+LaTeX_HEADER: \usepackage{mathtools} # #+HTML_MATHJAX: align: left indent: 5em tagside: left font: Neo-Euler #+PROPERTY: header-args:latex+ :packages '(("" "tikz")) # #+PROPERTY: header-args:latex+ :exports results :fit yes # #+STARTUP: showall #+STARTUP: align #+STARTUP: indent #+STARTUP: entitiespretty #+STARTUP: logdrawer * Test ----- I'm on Emacs 25.1.1 and Org mode version 9.0.5 (9.0.5-elpaplus @ .../.emacs.d/elpa/org-plus-contrib-20170210/) On Thu, Feb 23, 2017 at 11:50 AM, Nicolas Goaziou wrote: > Hello, > > Lawrence Bottorff writes: > > > I'm trying to create Logbook entries with C-c C-z -- which has worked > fine > > in the past. But now whenever I try I get > > > > org-back-to-heading: Before first headline at position 1151 in buffer > > current.org > > > > . . . i.e., my entry doesn't show up anywhere. What have I inadvertently > > messed up? > > Could you paste a full backtrace, or, better, an ECM? > > Regards, > > -- > Nicolas Goaziou > --001a1134fd38870297054937cd07 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I set `debug-on-error` to `t` and went through creati= ng a log entry:

Debugger entered--Lisp error: (err= or "Before first headline at position 1151 in buffer test3.org")
=C2=A0 signal(error ("Befor= e first headline at position 1151 in buffer te= st3.org"))
=C2=A0 error("Before first headline at p= osition %d in buffer %s" 1151 #<buffer test3.org>)
=C2=A0 org-back-to-heading(t)
=C2= =A0 org-end-of-meta-data(nil)
=C2=A0 org-log-beginning(t)
=C2=A0 org-store-log-note()
=C2=A0 org-ctrl-c-ctrl-c(nil)
=C2=A0 funcall-interactively(org-ctrl-c-ctrl-c nil)
=C2=A0 = #<subr call-interactively>(org-ctrl-c-ctrl-c nil nil)
=C2= =A0 ad-Advice-call-interactively(#<subr call-interactively> org-ctrl-= c-ctrl-c nil nil)
=C2=A0 apply(ad-Advice-call-interactively #<= subr call-interactively> (org-ctrl-c-ctrl-c nil nil))
=C2=A0 c= all-interactively(org-ctrl-c-ctrl-c nil nil)
=C2=A0 command-execu= te(org-ctrl-c-ctrl-c)

Here's ECM, which only c= ontains all my (kudgy, inefficient, wrong?) header stuff:

#+TITLE: \zwnj^{147}Pm
#+AUTHOR: 147Pm
#+E= MAIL: borgauf@sdf.org
#+DA= TE: 2017-02-08T14:26:12
#+Filetags: :CompleteReWrite:
#= +LANGUAGE: =C2=A0en
# #+INFOJS_OPT: view:showall ltoc:t mouse:und= erline path:http://orgmode.org/o= rg-info.js
#+HTML_HEAD: <link rel=3D"stylesheet"= href=3D"../../data/stylesheet.css" type=3D"text/css"&g= t;
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: = noexport
#+OPTIONS: H:15 num:15 toc:nil \n:nil @:t ::t |:t _:{} *= :t ^:{} prop:t
#+OPTIONS: prop:t
# This makes MathJax n= ot work
# #+OPTIONS: tex:imagemagick
# this makes MathJ= ax work
#+OPTIONS: tex:t
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [american]
# Setup tikz package for bot= h LaTeX and HTML export:
#+LATEX_HEADER: \usepackage{tikz}
<= div>#+LATEX_HEADER: \usepackage{commath}
#+LaTeX_HEADER: \usepack= age{pgfplots}
#+LaTeX_HEADER: \usepackage{sansmath}
#+L= aTeX_HEADER: \usepackage{mathtools}
# #+HTML_MATHJAX: align: left= indent: 5em tagside: left font: Neo-Euler
#+PROPERTY: header-arg= s:latex+ :packages '(("" "tikz"))
#
=
#+PROPERTY: header-args:latex+ :exports results :fit yes
#
#+STARTUP: showall
#+STARTUP: align
#+STARTUP:= indent
#+STARTUP: entitiespretty
#+STARTUP: logdrawer<= /div>

* Test

-----
<= div>
I'm on Emacs 25.1.1 and=C2=A0Org mode version 9.0.5 = (9.0.5-elpaplus @ .../.emacs.d/elpa/org-plus-contrib-20170210/)
<= br>


On Thu, Feb 23, 2017 at 11:50 AM, Nicolas Goazi= ou <mail@nicolasgoaziou.fr> wrote:
Hello,

Lawrence Bottorff <borgauf@gmail.co= m> writes:

> I'm trying to create Logbook entries with C-c C-z -- which has wor= ked fine
> in the past. But now whenever I try I get
>
> org-back-to-heading: Before first headline at position 1151 in buffer<= br> > cu= rrent.org
>
> . . . i.e., my entry doesn't show up anywhere. What have I inadver= tently
> messed up?

Could you paste a full backtrace, or, better, an ECM?

Regards,

--
Nicolas Goaziou

--001a1134fd38870297054937cd07--