Re: [O] Logbook not working?

2017-02-23 Thread Lawrence Bottorff
Aaaag! I have every confidence that someday I'll stop making a fool of
myself to you good people. . . .

On Thu, Feb 23, 2017 at 2:55 PM, Nicolas Goaziou 
wrote:

> Hello,
>
> Lawrence Bottorff  writes:
>
> > 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 # > test3.org>)
> >   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: borg...@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:  > type="text/css">
> > #+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
> >
> > -
>
> Is point at "* Test" or below when you use C-c C-z ? Position 1151 seems
> to be above. You can only attach notes to headlines.
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] Logbook not working?

2017-02-23 Thread Nicolas Goaziou
Hello,

Lawrence Bottorff  writes:

> 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 # test3.org>)
>   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: borg...@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:  type="text/css">
> #+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
>
> -

Is point at "* Test" or below when you use C-c C-z ? Position 1151 seems
to be above. You can only attach notes to headlines.

Regards,

-- 
Nicolas Goaziou



Re: [O] Logbook not working?

2017-02-23 Thread Lawrence Bottorff
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: borg...@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
>


Re: [O] Logbook not working?

2017-02-23 Thread Nicolas Goaziou
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