* Re: Condition Case Before First Headline
2012-08-22 17:32 Condition Case Before First Headline Esben Stien
@ 2012-08-22 17:10 ` Bastien
2012-08-22 17:27 ` Juan Pechiar
0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2012-08-22 17:10 UTC (permalink / raw)
To: Esben Stien; +Cc: emacs-orgmode
Esben Stien <b0ef@esben-stien.name> writes:
> I've stumbled into serious trouble with my org file.
What version of org are you using?
> I C-c C-c over:
>
> #+BEGIN: clocktable :maxlevel 7 :block yesterday :scope tree1
>
> , but I get:
>
> condition-case: Before first headline at position 2408 in buffer agenda.org
>
> I cannot figure out what's wrong; there's nothing special at line 2408
>
> Is there some way to debug this?
Can you make a minimal example to help us reproduce this?
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Condition Case Before First Headline
2012-08-22 17:10 ` Bastien
@ 2012-08-22 17:27 ` Juan Pechiar
2012-08-22 17:45 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Juan Pechiar @ 2012-08-22 17:27 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode, Esben Stien
I can reproduce this (latest git version) if the clocktable
declaration lies before the first heading.
Minimal example:
============================================================
bla bla
#+BEGIN: clocktable :maxlevel 7 :block yesterday :scope tree1
#+END:
bla bla
* heading1
:LOGBOOK:
CLOCK: [2012-08-22 Wed 14:18]--[2012-08-22 Wed 14:18] => 0:00
:END:
** heading2
* otherheading1
============================================================
Position 2048 refers to the (character) position of the clocktable
declaration.
Debug trace:
============================================================
signal(error ("Before first headline at position 83 in buffer pepe.org"))
error("Before first headline at position %d in buffer %s" 83 #<buffer pepe.org>)
(condition-case nil (outline-back-to-heading invisible-ok) (error (error "Before first headline at position %d in buffer %s" (point) (current-buffer))))
org-back-to-heading(t)
(let (start-level re) (org-back-to-heading t) (setq start-level (funcall outline-level)) (if (equal start-level 1) nil (setq re (concat "^\\*\\{1," (number-to-string (1- start-level)) "\\} ")) (if (re-search-backward re nil t) (funcall outline-level))))
org-up-heading-safe()
...
============================================================
On Wed, Aug 22, 2012 at 07:10:10PM +0200, Bastien wrote:
> Esben Stien <b0ef@esben-stien.name> writes:
>
> > I've stumbled into serious trouble with my org file.
>
> What version of org are you using?
>
> > I C-c C-c over:
> >
> > #+BEGIN: clocktable :maxlevel 7 :block yesterday :scope tree1
> >
> > , but I get:
> >
> > condition-case: Before first headline at position 2408 in buffer agenda.org
> >
> > I cannot figure out what's wrong; there's nothing special at line 2408
> >
> > Is there some way to debug this?
>
> Can you make a minimal example to help us reproduce this?
>
> Thanks,
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Condition Case Before First Headline
@ 2012-08-22 17:32 Esben Stien
2012-08-22 17:10 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Esben Stien @ 2012-08-22 17:32 UTC (permalink / raw)
To: emacs-orgmode
I've stumbled into serious trouble with my org file.
I C-c C-c over:
#+BEGIN: clocktable :maxlevel 7 :block yesterday :scope tree1
, but I get:
condition-case: Before first headline at position 2408 in buffer agenda.org
I cannot figure out what's wrong; there's nothing special at line 2408
Is there some way to debug this?
--
Esben Stien is b0ef@e s a
http://www. s t n m
irc://irc. b - i . e/%23contact
sip:b0ef@ e e
jid:b0ef@ n n
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Condition Case Before First Headline
2012-08-22 17:27 ` Juan Pechiar
@ 2012-08-22 17:45 ` Bastien
0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2012-08-22 17:45 UTC (permalink / raw)
To: Juan Pechiar; +Cc: emacs-orgmode, Esben Stien
Juan Pechiar <juan@pechiar.com> writes:
> I can reproduce this (latest git version) if the clocktable
> declaration lies before the first heading.
If the clocktable is before the first heading, the :scope tree1
parameter does not make sense anyway.
Esben, does that explain your problem?
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-22 17:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-22 17:32 Condition Case Before First Headline Esben Stien
2012-08-22 17:10 ` Bastien
2012-08-22 17:27 ` Juan Pechiar
2012-08-22 17:45 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.